ALSA: hda/realtek: make bass spk volume adjustable on a yoga laptop
authorHui Wang <hui.wang@canonical.com>
Sat, 5 Dec 2020 05:11:30 +0000 (13:11 +0800)
committerTakashi Iwai <tiwai@suse.de>
Sat, 5 Dec 2020 07:39:13 +0000 (08:39 +0100)
commitc72b9bfe0f914639cc475585f45722a3eb57a56d
tree62da2c551a452262f5e110e64f526919f0f168b4
parentaeedad2504997be262c98f6e3228173225a8d868
ALSA: hda/realtek: make bass spk volume adjustable on a yoga laptop

This change could fix 2 issues on this machine:
 - the bass speaker's output volume can't be adjusted, that is because
   the bass speaker is routed to the DAC (Nid 0x6) which has no volume
   control.
 - after plugging a headset with vol+, vol- and pause buttons on it,
   press those buttons, nothing happens, this means those buttons
   don't work at all. This machine has alc287 codec, need to add the
   codec id to the disable/enable_headset_jack_key(), then the headset
   button could work.

The quirk of ALC285_FIXUP_THINKPAD_HEADSET_JACK could fix both of these
2 issues.

Cc: <stable@vger.kernel.org>
Signed-off-by: Hui Wang <hui.wang@canonical.com>
Link: https://lore.kernel.org/r/20201205051130.8122-1-hui.wang@canonical.com
Signed-off-by: Takashi Iwai <tiwai@suse.de>
sound/pci/hda/patch_realtek.c