diff mbox series

[SRU,B/OEM-B/D/E,1/1] ALSA: hda - Add a conexant codec entry to let mute led work

Message ID 20190726035454.4114-2-hui.wang@canonical.com
State New
Headers show
Series alsa/hda: neither mute led nor mic-mute led work on several Lenovo laptops | expand

Commit Message

Hui Wang July 26, 2019, 3:54 a.m. UTC
BugLink: https://bugs.launchpad.net/bugs/1837963

This conexant codec isn't in the supported codec list yet, the hda
generic driver can drive this codec well, but on a Lenovo machine
with mute/mic-mute leds, we need to apply CXT_FIXUP_THINKPAD_ACPI
to make the leds work. After adding this codec to the list, the
driver patch_conexant.c will apply THINKPAD_ACPI to this machine.

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 3f8809499bf02ef7874254c5e23fc764a47a21a0
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_conexant.c | 1 +
 1 file changed, 1 insertion(+)

Comments

Kai-Heng Feng July 26, 2019, 5:08 a.m. UTC | #1
at 11:54 AM, Hui Wang <hui.wang@canonical.com> wrote:

> BugLink: https://bugs.launchpad.net/bugs/1837963
>
> This conexant codec isn't in the supported codec list yet, the hda
> generic driver can drive this codec well, but on a Lenovo machine
> with mute/mic-mute leds, we need to apply CXT_FIXUP_THINKPAD_ACPI
> to make the leds work. After adding this codec to the list, the
> driver patch_conexant.c will apply THINKPAD_ACPI to this machine.
>
> 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 3f8809499bf02ef7874254c5e23fc764a47a21a0
> git://git.kernel.org/pub/scm/linux/kernel/git/tiwai/sound.git)
> Signed-off-by: Hui Wang <hui.wang@canonical.com>

Acked-by: Kai-Heng Feng <kai.heng.feng@canonical.com>

> ---
>  sound/pci/hda/patch_conexant.c | 1 +
>  1 file changed, 1 insertion(+)
>
> diff --git a/sound/pci/hda/patch_conexant.c  
> b/sound/pci/hda/patch_conexant.c
> index fb65ad31e86c..341520963905 100644
> --- a/sound/pci/hda/patch_conexant.c
> +++ b/sound/pci/hda/patch_conexant.c
> @@ -1096,6 +1096,7 @@ static int patch_conexant_auto(struct hda_codec  
> *codec)
>   */
>
>  static const struct hda_device_id snd_hda_id_conexant[] = {
> +	HDA_CODEC_ENTRY(0x14f11f86, "CX8070", patch_conexant_auto),
>  	HDA_CODEC_ENTRY(0x14f12008, "CX8200", patch_conexant_auto),
>  	HDA_CODEC_ENTRY(0x14f15045, "CX20549 (Venice)", patch_conexant_auto),
>  	HDA_CODEC_ENTRY(0x14f15047, "CX20551 (Waikiki)", patch_conexant_auto),
> -- 
> 2.17.1
>
>
> -- 
> kernel-team mailing list
> kernel-team@lists.ubuntu.com
> https://lists.ubuntu.com/mailman/listinfo/kernel-team
diff mbox series

Patch

diff --git a/sound/pci/hda/patch_conexant.c b/sound/pci/hda/patch_conexant.c
index fb65ad31e86c..341520963905 100644
--- a/sound/pci/hda/patch_conexant.c
+++ b/sound/pci/hda/patch_conexant.c
@@ -1096,6 +1096,7 @@  static int patch_conexant_auto(struct hda_codec *codec)
  */
 
 static const struct hda_device_id snd_hda_id_conexant[] = {
+	HDA_CODEC_ENTRY(0x14f11f86, "CX8070", patch_conexant_auto),
 	HDA_CODEC_ENTRY(0x14f12008, "CX8200", patch_conexant_auto),
 	HDA_CODEC_ENTRY(0x14f15045, "CX20549 (Venice)", patch_conexant_auto),
 	HDA_CODEC_ENTRY(0x14f15047, "CX20551 (Waikiki)", patch_conexant_auto),