ALSA: hda: Add Lenovo ThinkStation P340 to power_save_denylist
PATCH 1/1 ALSA: hda: Add Lenovo ThinkStation P340 to power_save_denylist
On playback start there is a huge plock/pop noise via the green jack used in Line out mode.
The only way I was able to fix it to set the power_save to 0 for the snd_hda_intel.
---
Hi Takashi,
Changes since RFC:
- Fixed up the PCI ID
ever since I have this workstation (three weeks) the plock/pop noise on playback start bugged me. So far the only solution I have found is to disable the power_save which I find acceptable on a desktop compared to the pops.
The alsa-info.sh output is can be found here:
http://alsa-project.org/db/?f=414b1b236fc73db386ad4f938bc3b304f6b30b05
Missing details from alsa-info output:
# lspci -nnk | grep -A2 Audio 00:1f.3 Audio device [0403]: Intel Corporation Comet Lake PCH cAVS [8086:06c8] DeviceName: Onboard - Sound Subsystem: Lenovo Device [17aa:1048]
CPU: i9-10900k
The machine have ALC623 codec and the jacks are correctly discovered and they do what they supposed to be.
When I have the headset connected to the front and audio is routed there the line out (green jack) from the back still prodices the plock/pop.
Is there a known quirk for similar issue or a better way to handle it?
Thanks you,
Peter Ujfalusi
sound/pci/hda/hda_intel.c | 2 ++ 1 file changed, 2 insertions(+)
sound/pci/hda/hda_intel.c +2 -0
@@ -2213,6 +2213,8 @@ static const struct snd_pci_quirk power_save_denylist[] = {SND_PCI_QUIRK (0x17aa ,0x36a7 ,"Lenovo C50 All in one" ,0 ),/* https://bugs.launchpad.net/bugs/1821663 */ SND_PCI_QUIRK (0x1631 ,0xe017 ,"Packard Bell NEC IMEDIA 5204" ,0 ), +/* Loud plock/pop noise via the green jack on playback start */ + SND_PCI_QUIRK(0x17aa, 0x1048, "Lenovo ThinkStation P340", 0), {} };#endif /* CONFIG_PM */
Signature · 1 line
2.31.1
Quoted 27 lines · Peter Ujfalusi
On playback start there is a huge plock/pop noise via the green jack used in Line out mode.
The only way I was able to fix it to set the
power_saveto 0 for thesnd_hda_intel.Signed-off-by Peter Ujfalusi <[email protected]>---
Hi Takashi,Changes since RFC:
- Fixed up the PCI IDever since I have this workstation (three weeks) the plock/pop noise on playback start bugged me. So far the only solution I have found is to disable the
power_savewhich I find acceptable on a desktop compared to the pops.The
alsa-info.shoutput is can be found here:
http://alsa-project.org/db/?f=414b1b236fc73db386ad4f938bc3b304f6b30b05Missing details from alsa-info output:
# lspci -nnk | grep -A2 Audio 00:1f.3 Audio device [0403]: Intel Corporation Comet Lake PCH cAVS [8086:06c8] DeviceName: Onboard - Sound Subsystem: Lenovo Device [17aa:1048]
Quoted 8 lines
CPU: i9-10900k
The machine have ALC623 codec and the jacks are correctly discovered and they do what they supposed to be.
When I have the headset connected to the front and audio is routed there the line out (green jack) from the back still prodices the plock/pop.Is there a known quirk for similar issue or a better way to handle it?
In general, this deny list is the last resort when we couldn't find any other way to fix the click noise. Let's check other possibilities at first, e.g. setting auto_mute_via_amp flag. This can be achieved even via hints in an early patching specified via "patch" option of snd-hda-intel module (see Documentation/sound/hda/notes.rst for some information).
Takashi
Quoted 36 lines · Takashi Iwai
Quoted 34 lines · Peter Ujfalusi
On playback start there is a huge plock/pop noise via the green jack used in Line out mode.
The only way I was able to fix it to set the
power_saveto 0 for thesnd_hda_intel.Signed-off-by Peter Ujfalusi <[email protected]>---
Hi Takashi,Changes since RFC:
- Fixed up the PCI IDever since I have this workstation (three weeks) the plock/pop noise on playback start bugged me. So far the only solution I have found is to disable the
power_savewhich I find acceptable on a desktop compared to the pops.The
alsa-info.shoutput is can be found here:
http://alsa-project.org/db/?f=414b1b236fc73db386ad4f938bc3b304f6b30b05Missing details from alsa-info output:
# lspci -nnk | grep -A2 Audio 00:1f.3 Audio device [0403]: Intel Corporation Comet Lake PCH cAVS [8086:06c8] DeviceName: Onboard - Sound Subsystem: Lenovo Device [17aa:1048]CPU: i9-10900k
The machine have ALC623 codec and the jacks are correctly discovered and they do what they supposed to be.
When I have the headset connected to the front and audio is routed there the line out (green jack) from the back still prodices the plock/pop.
Quoted 4 lines
Quoted 1 line
Is there a known quirk for similar issue or a better way to handle it?
In general, this deny list is the last resort when we couldn't find any other way to fix the click noise.
Sure, I'm not that familiar yet with the HDA code base.
Quoted 5 lines
Let's check other possibilities
at first, e.g. settingauto_mute_via_ampflag. This can be achieved even via hints in an early patching specified via "patch" option of snd-hda-intel module (seeDocumentation/sound/hda/notes.rstfor some information).
Unfortunately the auto_mute_via_amp has no effect on the pop. line_in_auto_switch and pin_amp_workaround have no effect either.
fwiw, a simple
cat /proc/asound/card0/codec#0
generates plock/pop.
Signature · 1 line
Péter
Quoted 47 lines · Peter
Quoted 36 lines · Takashi Iwai
Quoted 34 lines · Peter Ujfalusi
On playback start there is a huge plock/pop noise via the green jack used in Line out mode.
The only way I was able to fix it to set the
power_saveto 0 for thesnd_hda_intel.Signed-off-by Peter Ujfalusi <[email protected]>---
Hi Takashi,Changes since RFC:
- Fixed up the PCI IDever since I have this workstation (three weeks) the plock/pop noise on playback start bugged me. So far the only solution I have found is to disable the
power_savewhich I find acceptable on a desktop compared to the pops.The
alsa-info.shoutput is can be found here:
http://alsa-project.org/db/?f=414b1b236fc73db386ad4f938bc3b304f6b30b05Missing details from alsa-info output:
# lspci -nnk | grep -A2 Audio 00:1f.3 Audio device [0403]: Intel Corporation Comet Lake PCH cAVS [8086:06c8] DeviceName: Onboard - Sound Subsystem: Lenovo Device [17aa:1048]CPU: i9-10900k
The machine have ALC623 codec and the jacks are correctly discovered and they do what they supposed to be.
When I have the headset connected to the front and audio is routed there the line out (green jack) from the back still prodices the plock/pop.Quoted 4 lines
Quoted 1 line
Is there a known quirk for similar issue or a better way to handle it?
In general, this deny list is the last resort when we couldn't find any other way to fix the click noise.
Sure, I'm not that familiar yet with the HDA code base.
Quoted 8 lines
Quoted 5 lines
Let's check other possibilities
at first, e.g. settingauto_mute_via_ampflag. This can be achieved even via hints in an early patching specified via "patch" option of snd-hda-intel module (seeDocumentation/sound/hda/notes.rstfor some information).Unfortunately the
auto_mute_via_amphas no effect on the pop.line_in_auto_switchandpin_amp_workaroundhave no effect either.
How about applying alc_fixup_no_shutup() or alc_fixup_disable_aamix()?
Takashi
Quoted 10 lines · Takashi Iwai
Quoted 8 lines
Quoted 5 lines
Let's check other possibilities
at first, e.g. settingauto_mute_via_ampflag. This can be achieved even via hints in an early patching specified via "patch" option of snd-hda-intel module (seeDocumentation/sound/hda/notes.rstfor some information).Unfortunately the
auto_mute_via_amphas no effect on the pop.line_in_auto_switchandpin_amp_workaroundhave no effect either.How about applying
alc_fixup_no_shutup()oralc_fixup_disable_aamix()?
it looks like
SND_PCI_QUIRK(0x17aa, 0x1048, "Lenovo ThinkStation P340", ALC269_FIXUP_NO_SHUTUP),
in alc269_fixup_tbl[]
alone fixes the pop noise, I'll send a new patch to do this instead.
Thanks,
Péter
Quoted 15 lines · Peter
Quoted 10 lines · Takashi Iwai
Quoted 8 lines
Quoted 5 lines
Let's check other possibilities
at first, e.g. settingauto_mute_via_ampflag. This can be achieved even via hints in an early patching specified via "patch" option of snd-hda-intel module (seeDocumentation/sound/hda/notes.rstfor some information).Unfortunately the
auto_mute_via_amphas no effect on the pop.line_in_auto_switchandpin_amp_workaroundhave no effect either.How about applying
alc_fixup_no_shutup()oralc_fixup_disable_aamix()?
Quoted 8 lines
it looks like
SND_PCI_QUIRK(0x17aa, 0x1048, "Lenovo ThinkStation P340", ALC269_FIXUP_NO_SHUTUP),in alc269_fixup_tbl[]
alone fixes the pop noise, I'll send a new patch to do this instead.
Good to hear.
But, there is already a quirk entry for this ID, so you'll need to put a chain there instead, I suppose.
Takashi
Quoted 22 lines · Takashi Iwai
Quoted 20 lines · Peter
Quoted 10 lines · Takashi Iwai
Quoted 8 lines
Quoted 5 lines
Let's check other possibilities
at first, e.g. settingauto_mute_via_ampflag. This can be achieved even via hints in an early patching specified via "patch" option of snd-hda-intel module (seeDocumentation/sound/hda/notes.rstfor some information).Unfortunately the
auto_mute_via_amphas no effect on the pop.line_in_auto_switchandpin_amp_workaroundhave no effect either.How about applying
alc_fixup_no_shutup()oralc_fixup_disable_aamix()?it looks like
SND_PCI_QUIRK(0x17aa, 0x1048, "Lenovo ThinkStation P340", ALC269_FIXUP_NO_SHUTUP),
Quoted 8 lines
Quoted 3 lines
in alc269_fixup_tbl[]
alone fixes the pop noise, I'll send a new patch to do this instead.
Good to hear.
But, there is already a quirk entry for this ID, so you'll need to put a chain there instead, I suppose.
Adding Hui Wang who added old fixup fir the mics.
Oh, I see.
It might be that the "ThinkCentre Station" is actually refers to "ThinkStation P340" in that case I wonder if the plock/pop can be observed by Hui Wang as well and confirm that it is the same model.
do you have any suggestion on naming the chain for the P340 headset-mic and no-plop on lineout fixup enum/text/entry?
Signature · 1 line
Péter