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)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 30 Dec 2020 10:54:06 +0000 (11:54 +0100)
commit8fcbbcdcdf233bb75c1f107c4e5114001b8137b2
tree63c72b758ff295e4a350a012e9c27f6689f5b2dd
parentfa4b536033d68c2d58977c1dba1870bbbc2ecf7b
ALSA: hda/realtek: make bass spk volume adjustable on a yoga laptop

commit c72b9bfe0f914639cc475585f45722a3eb57a56d upstream.

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>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
sound/pci/hda/patch_realtek.c