Re: linux-6.4 alsa sound broken
On Mon, May 01, 2023 at 11:59:12AM +0800, Jeff Chua wrote:
Latest git pull from Linus's tree ... playing a simple sound file will resulted in a lot of echo.
Running on Lenovo X1 with .. 00:1f.3 Audio device: Intel Corporation Alder Lake PCH-P High Definition Audio Controller (rev 01)
I've bisected and reverted the following patch fixed the problem.
commit 9f656705c5faa18afb26d922cfc64f9fd103c38d
Thanks for the regression report. However, where is your dmesg and/or ALSA log when the regression occurs? What is the playback test file?
FYI, 9f656705c5faa1 ("ALSA: pcm: rewrite snd_pcm_playback_silence()") is originated as [1/2] of patch series that pokes around the auto-silencer. The other patch ([2/2]) got NAKed since autofilling buffer should have been done in alsa-lib (still to be discussed) [1].
Anyway, I'm adding this to regzbot:
#regzbot ^introduced 9f656705c5faa1 #regzbot title Much echoing when playing sound files on Intel Alder Lake PCH-P Audio Controller
Thanks.
[1]: https://lore.kernel.org/all/bb342e84-b468-8adc-6688-88da2c857da1@perex.cz/
On Mon, 01 May 2023 06:36:49 +0200, Bagas Sanjaya wrote:
On Mon, May 01, 2023 at 11:59:12AM +0800, Jeff Chua wrote:
Latest git pull from Linus's tree ... playing a simple sound file will resulted in a lot of echo.
Running on Lenovo X1 with .. 00:1f.3 Audio device: Intel Corporation Alder Lake PCH-P High Definition Audio Controller (rev 01)
I've bisected and reverted the following patch fixed the problem.
commit 9f656705c5faa18afb26d922cfc64f9fd103c38d
Thanks for the regression report. However, where is your dmesg and/or ALSA log when the regression occurs? What is the playback test file?
Yes, in addition, which driver is used (provide the alsa-info.sh output at best), and which sound backend is used (pipewire, PA or dmix) with which application?
thanks,
Takashi
On Mon, May 1, 2023 at 2:35 PM Takashi Iwai tiwai@suse.de wrote:
On Mon, 01 May 2023 06:36:49 +0200, Bagas Sanjaya wrote:
On Mon, May 01, 2023 at 11:59:12AM +0800, Jeff Chua wrote:
Latest git pull from Linus's tree ... playing a simple sound file will resulted in a lot of echo.
Running on Lenovo X1 with .. 00:1f.3 Audio device: Intel Corporation Alder Lake PCH-P High Definition Audio Controller (rev 01)
I've bisected and reverted the following patch fixed the problem.
commit 9f656705c5faa18afb26d922cfc64f9fd103c38d
Thanks for the regression report. However, where is your dmesg and/or ALSA log when the regression occurs? What is the playback test file?
Yes, in addition, which driver is used (provide the alsa-info.sh output at best), and which sound backend is used (pipewire, PA or dmix) with which application?
/proc/asound# cat cards devices hwdep pcm timers version 0 [PCH ]: HDA-Intel - HDA Intel PCH HDA Intel PCH at 0x603e1c8000 irq 147 1: : sequencer 2: [ 0- 0]: digital audio playback 3: [ 0- 0]: digital audio capture 4: [ 0- 3]: digital audio playback 5: [ 0- 7]: digital audio playback 6: [ 0- 8]: digital audio playback 7: [ 0- 9]: digital audio playback 8: [ 0- 0]: hardware dependent 9: [ 0- 2]: hardware dependent 10: [ 0] : control 33: : timer 00-00: HDA Codec 0 00-02: HDA Codec 2 00-00: ALC287 Analog : ALC287 Analog : playback 1 : capture 1 00-03: HDMI 0 : HDMI 0 : playback 1 00-07: HDMI 1 : HDMI 1 : playback 1 00-08: HDMI 2 : HDMI 2 : playback 1 00-09: HDMI 3 : HDMI 3 : playback 1 G0: system timer : 10000.000us (10000000 ticks) G3: HR timer : 0.001us (1000000000 ticks) P0-0-0: PCM playback 0-0-0 : SLAVE P0-0-1: PCM capture 0-0-1 : SLAVE P0-3-0: PCM playback 0-3-0 : SLAVE P0-7-0: PCM playback 0-7-0 : SLAVE P0-8-0: PCM playback 0-8-0 : SLAVE P0-9-0: PCM playback 0-9-0 : SLAVE Advanced Linux Sound Architecture Driver Version k6.3.0.
# test playing with ... aplay /usr/share/sounds/alsa/Side_Right.wav Playing WAVE '/usr/share/sounds/alsa/Side_Right.wav' : Signed 16 bit Little Endian, Rate 48000 Hz, Mono
I'll try to capture the sound ... it's seems to just repeating every second until the last second. So, if you just play a "beep", its ok.
thanks,
Takashi
On Mon, 01 May 2023 15:16:35 +0200, Jeff Chua wrote:
On Mon, May 1, 2023 at 2:35 PM Takashi Iwai tiwai@suse.de wrote:
On Mon, 01 May 2023 06:36:49 +0200, Bagas Sanjaya wrote:
On Mon, May 01, 2023 at 11:59:12AM +0800, Jeff Chua wrote:
Latest git pull from Linus's tree ... playing a simple sound file will resulted in a lot of echo.
Running on Lenovo X1 with .. 00:1f.3 Audio device: Intel Corporation Alder Lake PCH-P High Definition Audio Controller (rev 01)
I've bisected and reverted the following patch fixed the problem.
commit 9f656705c5faa18afb26d922cfc64f9fd103c38d
Thanks for the regression report. However, where is your dmesg and/or ALSA log when the regression occurs? What is the playback test file?
Yes, in addition, which driver is used (provide the alsa-info.sh output at best), and which sound backend is used (pipewire, PA or dmix) with which application?
/proc/asound# cat cards devices hwdep pcm timers version 0 [PCH ]: HDA-Intel - HDA Intel PCH HDA Intel PCH at 0x603e1c8000 irq 147 1: : sequencer 2: [ 0- 0]: digital audio playback 3: [ 0- 0]: digital audio capture 4: [ 0- 3]: digital audio playback 5: [ 0- 7]: digital audio playback 6: [ 0- 8]: digital audio playback 7: [ 0- 9]: digital audio playback 8: [ 0- 0]: hardware dependent 9: [ 0- 2]: hardware dependent 10: [ 0] : control 33: : timer 00-00: HDA Codec 0 00-02: HDA Codec 2 00-00: ALC287 Analog : ALC287 Analog : playback 1 : capture 1 00-03: HDMI 0 : HDMI 0 : playback 1 00-07: HDMI 1 : HDMI 1 : playback 1 00-08: HDMI 2 : HDMI 2 : playback 1 00-09: HDMI 3 : HDMI 3 : playback 1 G0: system timer : 10000.000us (10000000 ticks) G3: HR timer : 0.001us (1000000000 ticks) P0-0-0: PCM playback 0-0-0 : SLAVE P0-0-1: PCM capture 0-0-1 : SLAVE P0-3-0: PCM playback 0-3-0 : SLAVE P0-7-0: PCM playback 0-7-0 : SLAVE P0-8-0: PCM playback 0-8-0 : SLAVE P0-9-0: PCM playback 0-9-0 : SLAVE Advanced Linux Sound Architecture Driver Version k6.3.0.
# test playing with ... aplay /usr/share/sounds/alsa/Side_Right.wav Playing WAVE '/usr/share/sounds/alsa/Side_Right.wav' : Signed 16 bit Little Endian, Rate 48000 Hz, Mono
I'll try to capture the sound ... it's seems to just repeating every second until the last second. So, if you just play a "beep", its ok.
There was no description about which sound backend is used. Is it PulseAudio, pipewire or dmix/dsnoop?
Takashi
On Mon, May 1, 2023 at 10:52 PM Takashi Iwai tiwai@suse.de wrote:
On Mon, 01 May 2023 15:16:35 +0200, Jeff Chua wrote:
On Mon, May 1, 2023 at 2:35 PM Takashi Iwai tiwai@suse.de wrote:
On Mon, 01 May 2023 06:36:49 +0200, Bagas Sanjaya wrote:
On Mon, May 01, 2023 at 11:59:12AM +0800, Jeff Chua wrote:
Latest git pull from Linus's tree ... playing a simple sound file will resulted in a lot of echo.
Running on Lenovo X1 with .. 00:1f.3 Audio device: Intel Corporation Alder Lake PCH-P High Definition Audio Controller (rev 01)
I've bisected and reverted the following patch fixed the problem.
commit 9f656705c5faa18afb26d922cfc64f9fd103c38d
Thanks for the regression report. However, where is your dmesg and/or ALSA log when the regression occurs? What is the playback test file?
Yes, in addition, which driver is used (provide the alsa-info.sh output at best), and which sound backend is used (pipewire, PA or dmix) with which application?
/proc/asound# cat cards devices hwdep pcm timers version 0 [PCH ]: HDA-Intel - HDA Intel PCH HDA Intel PCH at 0x603e1c8000 irq 147 1: : sequencer 2: [ 0- 0]: digital audio playback 3: [ 0- 0]: digital audio capture 4: [ 0- 3]: digital audio playback 5: [ 0- 7]: digital audio playback 6: [ 0- 8]: digital audio playback 7: [ 0- 9]: digital audio playback 8: [ 0- 0]: hardware dependent 9: [ 0- 2]: hardware dependent 10: [ 0] : control 33: : timer 00-00: HDA Codec 0 00-02: HDA Codec 2 00-00: ALC287 Analog : ALC287 Analog : playback 1 : capture 1 00-03: HDMI 0 : HDMI 0 : playback 1 00-07: HDMI 1 : HDMI 1 : playback 1 00-08: HDMI 2 : HDMI 2 : playback 1 00-09: HDMI 3 : HDMI 3 : playback 1 G0: system timer : 10000.000us (10000000 ticks) G3: HR timer : 0.001us (1000000000 ticks) P0-0-0: PCM playback 0-0-0 : SLAVE P0-0-1: PCM capture 0-0-1 : SLAVE P0-3-0: PCM playback 0-3-0 : SLAVE P0-7-0: PCM playback 0-7-0 : SLAVE P0-8-0: PCM playback 0-8-0 : SLAVE P0-9-0: PCM playback 0-9-0 : SLAVE Advanced Linux Sound Architecture Driver Version k6.3.0.
# test playing with ... aplay /usr/share/sounds/alsa/Side_Right.wav Playing WAVE '/usr/share/sounds/alsa/Side_Right.wav' : Signed 16 bit Little Endian, Rate 48000 Hz, Mono
I'll try to capture the sound ... it's seems to just repeating every second until the last second. So, if you just play a "beep", its ok.
There was no description about which sound backend is used. Is it PulseAudio, pipewire or dmix/dsnoop?
Just pure alsautils.
arecord -D hw:1,0,0 -f S16_LE -r 48000 recorded.wav aplay -D hw:1,1,0 /local/share/sounds/alsa/Side_Right.wav
[recorded.wav] attached. [Side_Right.wav] attached. aplay: version 1.2.8 by Jaroslav Kysela perex@perex.cz arecord: version 1.2.8 by Jaroslav Kysela perex@perex.cz
alsautils, alsaplugins alsalibs all using latest git pull.
On 5/1/23 22:03, Jeff Chua wrote:
There was no description about which sound backend is used. Is it PulseAudio, pipewire or dmix/dsnoop?
Just pure alsautils.
arecord -D hw:1,0,0 -f S16_LE -r 48000 recorded.wav aplay -D hw:1,1,0 /local/share/sounds/alsa/Side_Right.wav
[recorded.wav] attached. [Side_Right.wav] attached. aplay: version 1.2.8 by Jaroslav Kysela perex@perex.cz arecord: version 1.2.8 by Jaroslav Kysela perex@perex.cz
alsautils, alsaplugins alsalibs all using latest git pull.
Are you sure you build alsa tools straight from the git repo? Can you also reproduce with latest stable version of these? Otherwise it's anyone's guess due to moving parts...
Thanks.
On Wed, May 3, 2023 at 12:40 PM Bagas Sanjaya bagasdotme@gmail.com wrote:
On 5/1/23 22:03, Jeff Chua wrote:
There was no description about which sound backend is used. Is it PulseAudio, pipewire or dmix/dsnoop?
Just pure alsautils.
arecord -D hw:1,0,0 -f S16_LE -r 48000 recorded.wav aplay -D hw:1,1,0 /local/share/sounds/alsa/Side_Right.wav
[recorded.wav] attached. [Side_Right.wav] attached. aplay: version 1.2.8 by Jaroslav Kysela perex@perex.cz arecord: version 1.2.8 by Jaroslav Kysela perex@perex.cz
alsautils, alsaplugins alsalibs all using latest git pull.
Are you sure you build alsa tools straight from the git repo? Can you also reproduce with latest stable version of these? Otherwise it's anyone's guess due to moving parts...
All cloned from ... https://github.com/alsa-project/alsa-lib.git https://github.com/alsa-project/alsa-utils.git https://github.com/alsa-project/alsa-plugins.git
arecord is symbolic link to aplay.
I just recompiled all the alsa-lib, utils and plugins, and retest and it's the same issue.
GNU C Library (GNU libc) development release version 2.37.9000. gcc version 11.3.1 20230315 (GCC) binutils-2.40
Linux kernel is ... commit 348551ddaf311c76b01cdcbaf61b6fef06a49144 (HEAD -> master, origin/master, origin/HEAD) Merge: 7df047b3f0aa b7badd752de0 Author: Linus Torvalds torvalds@linux-foundation.org Date: Tue May 2 15:40:41 2023 -0700
Thanks, Jeff
On Mon, May 1, 2023 at 12:36 PM Bagas Sanjaya bagasdotme@gmail.com wrote:
On Mon, May 01, 2023 at 11:59:12AM +0800, Jeff Chua wrote:
Latest git pull from Linus's tree ... playing a simple sound file will resulted in a lot of echo.
Running on Lenovo X1 with .. 00:1f.3 Audio device: Intel Corporation Alder Lake PCH-P High Definition Audio Controller (rev 01)
I've bisected and reverted the following patch fixed the problem.
commit 9f656705c5faa18afb26d922cfc64f9fd103c38d
Thanks for the regression report. However, where is your dmesg and/or ALSA log when the regression occurs? What is the playback test file?
There's no error in dmesg.
Test file is /usr/share/sounds/alsa/Side_Right.wav
FYI, 9f656705c5faa1 ("ALSA: pcm: rewrite snd_pcm_playback_silence()") is originated as [1/2] of patch series that pokes around the auto-silencer. The other patch ([2/2]) got NAKed since autofilling buffer should have been done in alsa-lib (still to be discussed) [1].
Anyway, I'm adding this to regzbot:
#regzbot ^introduced 9f656705c5faa1 #regzbot title Much echoing when playing sound files on Intel Alder Lake PCH-P Audio Controller
Thanks.
-- An old man doll... just what I always wanted! - Clara
participants (3)
-
Bagas Sanjaya
-
Jeff Chua
-
Takashi Iwai