diff mbox series

[SRU,Cosmic/Bionic/OEM-B,1/1] ALSA: hda/realtek - Fix the problem of the front MIC on the Lenovo M715

Message ID 1539228585-5618-2-git-send-email-hui.wang@canonical.com
State Accepted
Headers show
Series The front MIC can't work on the Lenovo M715 | expand

Commit Message

Hui Wang Oct. 11, 2018, 3:29 a.m. UTC
BugLink: https://bugs.launchpad.net/bugs/1797292

The front MIC on the Lenovo M715 can't record sound, after applying
the ALC294_FIXUP_LENOVO_MIC_LOCATION, the problem is fixed. So add
the pin configuration of this machine to the pin quirk table.

Cc: <stable@vger.kernel.org>
Signed-off-by: Hui Wang <hui.wang@canonical.com>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
(cherry picked from commit d06fb562bff5d14defdacbd92449bacbaedd5cdf
git://git.kernel.org/pub/scm/linux/kernel/git/tiwai/sound.git)
Signed-off-by: Hui Wang <hui.wang@canonical.com>
---
 sound/pci/hda/patch_realtek.c | 6 ++++++
 1 file changed, 6 insertions(+)

Comments

Stefan Bader Oct. 11, 2018, 8:47 a.m. UTC | #1
On 11.10.2018 05:29, Hui Wang wrote:
> BugLink: https://bugs.launchpad.net/bugs/1797292
> 
> The front MIC on the Lenovo M715 can't record sound, after applying
> the ALC294_FIXUP_LENOVO_MIC_LOCATION, the problem is fixed. So add
> the pin configuration of this machine to the pin quirk table.
> 
> Cc: <stable@vger.kernel.org>
> Signed-off-by: Hui Wang <hui.wang@canonical.com>
> Signed-off-by: Takashi Iwai <tiwai@suse.de>
> (cherry picked from commit d06fb562bff5d14defdacbd92449bacbaedd5cdf
> git://git.kernel.org/pub/scm/linux/kernel/git/tiwai/sound.git)
> Signed-off-by: Hui Wang <hui.wang@canonical.com>
Acked-by: Stefan Bader <stefan.bader@canonical.com>
> ---

Maybe we should at least start to tag things not picked from the upstream linux
tree as "UBUNTU: SAUCE: "

-Stefan

>  sound/pci/hda/patch_realtek.c | 6 ++++++
>  1 file changed, 6 insertions(+)
> 
> diff --git a/sound/pci/hda/patch_realtek.c b/sound/pci/hda/patch_realtek.c
> index d2668ed..f2a6092 100644
> --- a/sound/pci/hda/patch_realtek.c
> +++ b/sound/pci/hda/patch_realtek.c
> @@ -6780,6 +6780,12 @@ static const struct snd_hda_pin_quirk alc269_pin_fixup_tbl[] = {
>  		{0x21, 0x0221101f}),
>  	SND_HDA_PIN_QUIRK(0x10ec0235, 0x17aa, "Lenovo", ALC294_FIXUP_LENOVO_MIC_LOCATION,
>  		{0x14, 0x90170110},
> +		{0x19, 0x02a11030},
> +		{0x1a, 0x02a11040},
> +		{0x1b, 0x01011020},
> +		{0x21, 0x0221101f}),
> +	SND_HDA_PIN_QUIRK(0x10ec0235, 0x17aa, "Lenovo", ALC294_FIXUP_LENOVO_MIC_LOCATION,
> +		{0x14, 0x90170110},
>  		{0x19, 0x02a11020},
>  		{0x1a, 0x02a11030},
>  		{0x21, 0x0221101f}),
>
diff mbox series

Patch

diff --git a/sound/pci/hda/patch_realtek.c b/sound/pci/hda/patch_realtek.c
index d2668ed..f2a6092 100644
--- a/sound/pci/hda/patch_realtek.c
+++ b/sound/pci/hda/patch_realtek.c
@@ -6780,6 +6780,12 @@  static const struct snd_hda_pin_quirk alc269_pin_fixup_tbl[] = {
 		{0x21, 0x0221101f}),
 	SND_HDA_PIN_QUIRK(0x10ec0235, 0x17aa, "Lenovo", ALC294_FIXUP_LENOVO_MIC_LOCATION,
 		{0x14, 0x90170110},
+		{0x19, 0x02a11030},
+		{0x1a, 0x02a11040},
+		{0x1b, 0x01011020},
+		{0x21, 0x0221101f}),
+	SND_HDA_PIN_QUIRK(0x10ec0235, 0x17aa, "Lenovo", ALC294_FIXUP_LENOVO_MIC_LOCATION,
+		{0x14, 0x90170110},
 		{0x19, 0x02a11020},
 		{0x1a, 0x02a11030},
 		{0x21, 0x0221101f}),