ALSA: hda - change the location for one mic on a Lenovo machine
authorHui Wang <hui.wang@canonical.com>
Fri, 22 Dec 2017 03:17:46 +0000 (11:17 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 2 Jan 2018 19:31:05 +0000 (20:31 +0100)
commit3d858b85e376b08db9c9de42aa4e0b9b47fac466
tree1e9fbee56fea7fb42253e8f50d70541f35b3b771
parent2845bbd1ef1f574ce2bbd7a7f6feab04ca137cf3
ALSA: hda - change the location for one mic on a Lenovo machine

commit 8da5bbfc7cbba909f4f32d5e1dda3750baa5d853 upstream.

There are two front mics on this machine, and current driver assign
the same name Mic to both of them, but pulseaudio can't handle them.
As a workaround, we change the location for one of them, then the
driver will assign "Front Mic" and "Mic" for them.

Signed-off-by: Hui Wang <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