]> git.proxmox.com Git - mirror_ubuntu-eoan-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)
commitc8c6ee611926685a7d753409e0a6e48b9e1b8748
tree49776bc4aa4f91cebfcbfb32924872d662b3e6d1
parent7f665b1c3283aae5b61843136d0a8ee808ba3199
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: c4cfcf6f4297 ("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