]> git.ipfire.org Git - thirdparty/kernel/stable.git/commitdiff
ALSA: hda/realtek - Support Dell headset mode for ALC225
authorKailang Yang <kailang@realtek.com>
Wed, 3 Feb 2016 07:20:39 +0000 (15:20 +0800)
committerSasha Levin <sasha.levin@oracle.com>
Wed, 9 Mar 2016 18:15:08 +0000 (13:15 -0500)
[ Upstream commit cfc5a845e62853edd36e564c23c64588f4adcae6 ]

Dell create new platform with ALC298 codec.
This patch will enable headset mode for ALC225/ALC3253 platform.

Signed-off-by: Kailang Yang <kailang@realtek.com>
Cc: <stable@vger.kernel.org> # v4.4+
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Signed-off-by: Sasha Levin <sasha.levin@oracle.com>
sound/pci/hda/patch_realtek.c

index 1cc2e6be0c0099a2876409456ca159f9d919a46c..2c1f2c8438a2d65a312bd030e82e0e4938144fe0 100644 (file)
@@ -5477,6 +5477,9 @@ static const struct hda_model_fixup alc269_fixup_models[] = {
        {.id = ALC292_FIXUP_TPT440, .name = "tpt440"},
        {}
 };
+#define ALC225_STANDARD_PINS \
+       {0x12, 0xb7a60130}, \
+       {0x21, 0x04211020}
 
 #define ALC255_STANDARD_PINS \
        {0x18, 0x411111f0}, \
@@ -5534,6 +5537,12 @@ static const struct hda_model_fixup alc269_fixup_models[] = {
        {0x1f, 0x411111f0}
 
 static const struct snd_hda_pin_quirk alc269_pin_fixup_tbl[] = {
+       SND_HDA_PIN_QUIRK(0x10ec0225, 0x1028, "Dell", ALC269_FIXUP_DELL1_MIC_NO_PRESENCE,
+               ALC225_STANDARD_PINS,
+               {0x14, 0x901701a0}),
+       SND_HDA_PIN_QUIRK(0x10ec0225, 0x1028, "Dell", ALC269_FIXUP_DELL1_MIC_NO_PRESENCE,
+               ALC225_STANDARD_PINS,
+               {0x14, 0x901701b0}),
        SND_HDA_PIN_QUIRK(0x10ec0255, 0x1028, "Dell", ALC255_FIXUP_DELL2_MIC_NO_PRESENCE,
                ALC255_STANDARD_PINS,
                {0x12, 0x40300000},