ALSA: hda/realtek - Enable jack detection function for Intel ALC700
authorPeiSen Hou <pshou@realtek.com>
Fri, 1 Sep 2017 07:11:56 +0000 (15:11 +0800)
committerTakashi Iwai <tiwai@suse.de>
Mon, 4 Sep 2017 09:55:54 +0000 (11:55 +0200)
Intel ALC 700 needs this patch for jack detection function.
Because ALC700's jack detect function defaults is disable.
So alc700 needs pathc to enable jack detection function.

Signed-off-by: PeiSen Hou <pshou@realtek.com>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
sound/pci/hda/patch_realtek.c

index 217bb582aff16a6ec428311fddc53370e0355288..0ce71111b4e3ec0fd58940b27a0638cc9d483fd1 100644 (file)
@@ -5263,6 +5263,7 @@ enum {
        ALC233_FIXUP_EAPD_COEF_AND_MIC_NO_PRESENCE,
        ALC233_FIXUP_LENOVO_MULTI_CODECS,
        ALC294_FIXUP_LENOVO_MIC_LOCATION,
+       ALC700_FIXUP_INTEL_REFERENCE,
 };
 
 static const struct hda_fixup alc269_fixups[] = {
@@ -6058,6 +6059,21 @@ static const struct hda_fixup alc269_fixups[] = {
                        { }
                },
        },
+       [ALC700_FIXUP_INTEL_REFERENCE] = {
+               .type = HDA_FIXUP_VERBS,
+               .v.verbs = (const struct hda_verb[]) {
+                       /* Enables internal speaker */
+                       {0x20, AC_VERB_SET_COEF_INDEX, 0x45},
+                       {0x20, AC_VERB_SET_PROC_COEF, 0x5289},
+                       {0x20, AC_VERB_SET_COEF_INDEX, 0x4A},
+                       {0x20, AC_VERB_SET_PROC_COEF, 0x001b},
+                       {0x58, AC_VERB_SET_COEF_INDEX, 0x00},
+                       {0x58, AC_VERB_SET_PROC_COEF, 0x3888},
+                       {0x20, AC_VERB_SET_COEF_INDEX, 0x6f},
+                       {0x20, AC_VERB_SET_PROC_COEF, 0x2c0b},
+                       {}
+               }
+       },
 };
 
 static const struct snd_pci_quirk alc269_fixup_tbl[] = {
@@ -6209,6 +6225,7 @@ static const struct snd_pci_quirk alc269_fixup_tbl[] = {
        SND_PCI_QUIRK(0x10cf, 0x15dc, "Lifebook T731", ALC269_FIXUP_LIFEBOOK_HP_PIN),
        SND_PCI_QUIRK(0x10cf, 0x1757, "Lifebook E752", ALC269_FIXUP_LIFEBOOK_HP_PIN),
        SND_PCI_QUIRK(0x10cf, 0x1845, "Lifebook U904", ALC269_FIXUP_LIFEBOOK_EXTMIC),
+       SND_PCI_QUIRK(0x10ec, 0x10f2, "Intel Reference board", ALC700_FIXUP_INTEL_REFERENCE),
        SND_PCI_QUIRK(0x144d, 0xc109, "Samsung Ativ book 9 (NP900X3G)", ALC269_FIXUP_INV_DMIC),
        SND_PCI_QUIRK(0x144d, 0xc740, "Samsung Ativ book 8 (NP870Z5G)", ALC269_FIXUP_ATIV_BOOK_8),
        SND_PCI_QUIRK(0x1458, 0xfa53, "Gigabyte BXBT-2807", ALC283_FIXUP_HEADSET_MIC),