ALSA: hda/realtek - Enable jack detection for Intel CFL + ALC700
PATCH 1/1 ALSA: hda/realtek - Enable jack detection for Intel CFL + ALC700
From: PeiSen Hou <[email protected]>
ALC700 has jack detection disabled by default in Intel Coffeelake Reference board. To enable it, this fixup is required.
--- sound/pci/hda/patch_realtek.c | 17 +++++++++++++++++ 1 file changed, 17 insertions(+)
sound/pci/hda/patch_realtek.c +17 -0
@@ -5264,6 +5264,7 @@ enum {ALC233_FIXUP_LENOVO_MULTI_CODECS ,ALC294_FIXUP_LENOVO_MIC_LOCATION ,ALC700_FIXUP_INTEL_REFERENCE , + ALC700_FIXUP_INTEL_CFL, }; static const struct hda_fixup alc269_fixups[] = {
@@ -6074,6 +6075,21 @@ static const struct hda_fixup alc269_fixups[] = { {} } }, + [ALC700_FIXUP_INTEL_CFL ] = { + .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 ,0x201b }, + {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[] = {
@@ -6277,6 +6293,7 @@ static const struct snd_pci_quirk alc269_fixup_tbl[] = {SND_PCI_QUIRK (0x17aa ,0x3bf8 ,"Quanta FL1" ,ALC269_FIXUP_PCM_44K ),SND_PCI_QUIRK (0x17aa ,0x9e54 ,"LENOVO NB" ,ALC269_FIXUP_LENOVO_EAPD ),SND_PCI_QUIRK (0x1b7d ,0xa831 ,"Ordissimo EVE2 " ,ALC269VB_FIXUP_ORDISSIMO_EVE2 ),/* Also known as Malata PC-B1303 */ +SND_PCI_QUIRK (0x8086 ,0x7270 ,"Intel Coffeelake" ,ALC700_FIXUP_INTEL_CFL ), #if 0/* Below is a quirk table taken from the old code.
Signature · 1 line
2.15.0
Quoted 26 lines · Guneshwor Singh
From: PeiSen Hou <[email protected]>
ALC700 has jack detection disabled by default in Intel Coffeelake Reference board. To enable it, this fixup is required.
Signed-off-by PeiSen Hou <[email protected]>Signed-off-by Guneshwor Singh <[email protected]>--- sound/pci/hda/patch_realtek.c | 17 +++++++++++++++++ 1 file changed, 17 insertions(+)sound/pci/hda/patch_realtek.c +1
-0@@ -5264,6 +5264,7 @@ enum {ALC233_FIXUP_LENOVO_MULTI_CODECS ,ALC294_FIXUP_LENOVO_MIC_LOCATION ,ALC700_FIXUP_INTEL_REFERENCE , + ALC700_FIXUP_INTEL_CFL, }; static const struct hda_fixup alc269_fixups[] = {@@ -6074,6 +6075,21 @@ static const struct hda_fixup alc269_fixups[] = { {}
sound/pci/hda/patch_realtek.c static const struct hda_fixup alc269_fixups[] = { · line 6085
Quoted 10 lines
sound/pci/hda/patch_realtek.c +8
-0} }, + [ALC700_FIXUP_INTEL_CFL] = { + .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, 0x201b},
I see only one bit here is different from the previous quirk for Intel reference board. Do we really need to keep both quirks separately? Or maybe this new one is the correct verb in anyway?
thanks,
Takashi
Quoted 34 lines · Takashi Iwai
Quoted 32 lines · Guneshwor Singh
From: PeiSen Hou <[email protected]>
ALC700 has jack detection disabled by default in Intel Coffeelake Reference board. To enable it, this fixup is required.
Signed-off-by PeiSen Hou <[email protected]>Signed-off-by Guneshwor Singh <[email protected]>--- sound/pci/hda/patch_realtek.c | 17 +++++++++++++++++ 1 file changed, 17 insertions(+)sound/pci/hda/patch_realtek.c +5
-0@@ -5264,6 +5264,7 @@ enum {ALC233_FIXUP_LENOVO_MULTI_CODECS ,ALC294_FIXUP_LENOVO_MIC_LOCATION ,ALC700_FIXUP_INTEL_REFERENCE , + ALC700_FIXUP_INTEL_CFL, }; static const struct hda_fixup alc269_fixups[] = {@@ -6074,6 +6075,21 @@ static const struct hda_fixup alc269_fixups[] = { {} } }, + [ALC700_FIXUP_INTEL_CFL] = { + .type = HDA_FIXUP_VERBS, + .v.verbs = (const struct hda_verb[]) { + /* Enables internal speaker */
Quoted 10 lines
sound/pci/hda/patch_realtek.c static const struct hda_fixup alc269_fixups[] = { · line 6085
Quoted 4 lines
sound/pci/hda/patch_realtek.c +4
-0+ {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, 0x201b},I see only one bit here is different from the previous quirk for Intel reference board. Do we really need to keep both quirks separately? Or maybe this new one is the correct verb in anyway?
Will check if both are needed. Otherwise the same quirk can be reused (by correcting the older verb if required). Thanks for the review.
Quoted 3 lines
thanks,
Takashi