diff options
author | Kailang Yang <kailang@realtek.com> | 2017-06-29 03:21:27 -0400 |
---|---|---|
committer | Takashi Iwai <tiwai@suse.de> | 2017-06-29 10:00:08 -0400 |
commit | fcc6c877a01f83cbce1cca885ea62df6a10d33c3 (patch) | |
tree | d47a33fef8d6f458573567b09f88b2eaefcfcd9a | |
parent | 4032da5ffe266fc781a15bd7b24295c433002ab5 (diff) |
ALSA: hda/realtek - Support Dell headset mode for ALC3271
Add DELL4_MIC_NO_PRESENCE model.
Add the pin configuration value of this machine into the pin_quirk
table to make DELL4_MIC_NO_PRESENCE apply to this machine.
Signed-off-by: Kailang Yang <kailang@realtek.com>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
-rw-r--r-- | sound/pci/hda/patch_realtek.c | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/sound/pci/hda/patch_realtek.c b/sound/pci/hda/patch_realtek.c index bc00a37acc8a..c79491a1cd47 100644 --- a/sound/pci/hda/patch_realtek.c +++ b/sound/pci/hda/patch_realtek.c | |||
@@ -5105,6 +5105,7 @@ enum { | |||
5105 | ALC269_FIXUP_DELL1_MIC_NO_PRESENCE, | 5105 | ALC269_FIXUP_DELL1_MIC_NO_PRESENCE, |
5106 | ALC269_FIXUP_DELL2_MIC_NO_PRESENCE, | 5106 | ALC269_FIXUP_DELL2_MIC_NO_PRESENCE, |
5107 | ALC269_FIXUP_DELL3_MIC_NO_PRESENCE, | 5107 | ALC269_FIXUP_DELL3_MIC_NO_PRESENCE, |
5108 | ALC269_FIXUP_DELL4_MIC_NO_PRESENCE, | ||
5108 | ALC269_FIXUP_HEADSET_MODE, | 5109 | ALC269_FIXUP_HEADSET_MODE, |
5109 | ALC269_FIXUP_HEADSET_MODE_NO_HP_MIC, | 5110 | ALC269_FIXUP_HEADSET_MODE_NO_HP_MIC, |
5110 | ALC269_FIXUP_ASPIRE_HEADSET_MIC, | 5111 | ALC269_FIXUP_ASPIRE_HEADSET_MIC, |
@@ -5405,6 +5406,16 @@ static const struct hda_fixup alc269_fixups[] = { | |||
5405 | .chained = true, | 5406 | .chained = true, |
5406 | .chain_id = ALC269_FIXUP_HEADSET_MODE_NO_HP_MIC | 5407 | .chain_id = ALC269_FIXUP_HEADSET_MODE_NO_HP_MIC |
5407 | }, | 5408 | }, |
5409 | [ALC269_FIXUP_DELL4_MIC_NO_PRESENCE] = { | ||
5410 | .type = HDA_FIXUP_PINS, | ||
5411 | .v.pins = (const struct hda_pintbl[]) { | ||
5412 | { 0x19, 0x01a1913c }, /* use as headset mic, without its own jack detect */ | ||
5413 | { 0x1b, 0x01a1913d }, /* use as headphone mic, without its own jack detect */ | ||
5414 | { } | ||
5415 | }, | ||
5416 | .chained = true, | ||
5417 | .chain_id = ALC269_FIXUP_HEADSET_MODE | ||
5418 | }, | ||
5408 | [ALC269_FIXUP_HEADSET_MODE] = { | 5419 | [ALC269_FIXUP_HEADSET_MODE] = { |
5409 | .type = HDA_FIXUP_FUNC, | 5420 | .type = HDA_FIXUP_FUNC, |
5410 | .v.func = alc_fixup_headset_mode, | 5421 | .v.func = alc_fixup_headset_mode, |
@@ -6535,6 +6546,11 @@ static const struct snd_hda_pin_quirk alc269_pin_fixup_tbl[] = { | |||
6535 | {0x17, 0x90170110}, | 6546 | {0x17, 0x90170110}, |
6536 | {0x1a, 0x03011020}, | 6547 | {0x1a, 0x03011020}, |
6537 | {0x21, 0x03211030}), | 6548 | {0x21, 0x03211030}), |
6549 | SND_HDA_PIN_QUIRK(0x10ec0299, 0x1028, "Dell", ALC269_FIXUP_DELL4_MIC_NO_PRESENCE, | ||
6550 | ALC225_STANDARD_PINS, | ||
6551 | {0x12, 0xb7a60130}, | ||
6552 | {0x13, 0xb8a60140}, | ||
6553 | {0x17, 0x90170110}), | ||
6538 | {} | 6554 | {} |
6539 | }; | 6555 | }; |
6540 | 6556 | ||