Bug 215466
Summary: | Realtek ALC285, snd_hda_intel: no sound from speakers and headphones | ||
---|---|---|---|
Product: | Drivers | Reporter: | Alexander Sergeyev (sergeev917) |
Component: | Sound(ALSA) | Assignee: | Jaroslav Kysela (perex) |
Status: | NEW --- | ||
Severity: | normal | ||
Priority: | P1 | ||
Hardware: | x86-64 | ||
OS: | Linux | ||
Kernel Version: | 5.16.0 | Subsystem: | |
Regression: | No | Bisected commit-id: |
Description
Alexander Sergeyev
2022-01-08 21:45:29 UTC
I've written scripts for a reboot loop while testing speakers using an external usb microphone on each try. 51th reboot did the job, speakers are working (on this particular bootup). The only explanation I have is some race conditions in devices initialization, which I have no idea how to debug further. > 51th reboot did the job, speakers are working (on this particular bootup).
Forgot to clarify -- it's about Gentoo build with kernel v5.15.12 (case 1 in the initial description).
Re-tested with https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/tag/?h=v5.15.13 The result is the same -- generally sound does not work, but rarely works. This time on 6th bootup. I've found dynamic debug machinery. With added dyndbg="file sound/* +p" in cmdline, good (working speakers) bootups can be distinguished from bad ones by presence of additional lines: snd_hda_codec_realtek hdaudioC1D0: hda_codec_setup_stream: NID=0x3, stream=0x5, channel=0, format=0x31 snd_hda_codec_realtek hdaudioC1D0: hda_codec_setup_stream: NID=0x2, stream=0x5, channel=0, format=0x31 snd_hda_codec_realtek hdaudioC1D0: hda_codec_cleanup_stream: NID=0x3 snd_hda_codec_realtek hdaudioC1D0: hda_codec_cleanup_stream: NID=0x2 snd_hda_codec_realtek hdaudioC1D0: hda_codec_setup_stream: NID=0x3, stream=0x5, channel=0, format=0x31 snd_hda_codec_realtek hdaudioC1D0: hda_codec_setup_stream: NID=0x2, stream=0x5, channel=0, format=0x31 snd_hda_codec_realtek hdaudioC1D0: hda_codec_cleanup_stream: NID=0x3 snd_hda_codec_realtek hdaudioC1D0: hda_codec_cleanup_stream: NID=0x2 snd_hda_codec_realtek hdaudioC1D0: hda_codec_setup_stream: NID=0x3, stream=0x5, channel=0, format=0x31 snd_hda_codec_realtek hdaudioC1D0: hda_codec_setup_stream: NID=0x2, stream=0x5, channel=0, format=0x31 snd_hda_codec_realtek hdaudioC1D0: hda_codec_cleanup_stream: NID=0x3 snd_hda_codec_realtek hdaudioC1D0: hda_codec_cleanup_stream: NID=0x2 These records correlate with sound playback on speakers. I've done additional boot rounds in the background. There were 16 working-speakers bootups across 709 attempts. The previous statement was not correct -- hda_codec_setup_stream/hda_codec_cleanup_stream messages can appear on bootups with no working sound. But all good bootups had these messages. These 709 tests were done on recently released kernel v5.16.0. Continuing in https://lkml.org/lkml/2022/1/11/950 |