]> git.baikalelectronics.ru Git - kernel.git/commit
ALSA: hda/realtek: Disable PC beep in passthrough on alc285
authorHui Wang <hui.wang@canonical.com>
Thu, 14 Feb 2019 03:41:33 +0000 (11:41 +0800)
committerTakashi Iwai <tiwai@suse.de>
Thu, 14 Feb 2019 07:52:31 +0000 (08:52 +0100)
commit88f9659a3860a8726d51661a564c2b04f1d5615e
tree49776bc4aa4f91cebfcbfb32924872d662b3e6d1
parentb1959e96e2ba92086d21bc2c5d5d5e1003c1d04f
ALSA: hda/realtek: Disable PC beep in passthrough on alc285

It is reported that there's a constant background "hum/whitenoise"
in the headset on the Lenovo X1 machines with the codec alc285, and it
is confirmed that if we run the command below, the noise will stop.
 sudo hda-verb /dev/snd/hwC0D0 0x1d SET_PIN_WIDGET_CONTROL 0x0

Then I consulted this issue with Kailang, he told me the pin 0x1d on
this codec is used for PC beep in, the noise probably comes from this
pin and we can also disable the PC beep in passthrough, then the PC
beep in will not affect other sound playback.

Fixes: c4aa0d6b0f42 ("ALSA: hda/realtek - fix the pop noise on headphone for lenovo laptops")
Bugzilla: https://bugzilla.redhat.com/show_bug.cgi?id=1660581
Cc: <stable@vger.kernel.org>
Signed-off-by: Kailang Yang <kailang@realtek.com>
Signed-off-by: Hui Wang <hui.wang@canonical.com>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
sound/pci/hda/patch_realtek.c