Home Home > GIT Browse > SLE12-SP4-AZURE
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTakashi Iwai <tiwai@suse.de>2019-02-21 09:04:49 +0100
committerTakashi Iwai <tiwai@suse.de>2019-02-21 09:04:50 +0100
commit564f2faa28fedfde762f07e63c58ba234b3c90e5 (patch)
tree5663fffa3bbe7b56ec1d8004622e5fc7179afae9
parent5cc7bcc73f8c5898e090cabd0c52898e67274fb8 (diff)
ALSA: hda/realtek - Headset microphone support for System76
darp5 (bsc#1051510).
-rw-r--r--patches.drivers/ALSA-hda-realtek-Headset-microphone-support-for-Syst.patch58
-rw-r--r--series.conf1
2 files changed, 59 insertions, 0 deletions
diff --git a/patches.drivers/ALSA-hda-realtek-Headset-microphone-support-for-Syst.patch b/patches.drivers/ALSA-hda-realtek-Headset-microphone-support-for-Syst.patch
new file mode 100644
index 0000000000..4b05ec8658
--- /dev/null
+++ b/patches.drivers/ALSA-hda-realtek-Headset-microphone-support-for-Syst.patch
@@ -0,0 +1,58 @@
+From 89e3a5682edaa4e5bb334719afb180256ac7bf78 Mon Sep 17 00:00:00 2001
+From: Jeremy Soller <jeremy@system76.com>
+Date: Wed, 30 Jan 2019 16:12:31 -0700
+Subject: [PATCH] ALSA: hda/realtek - Headset microphone support for System76 darp5
+Git-commit: 89e3a5682edaa4e5bb334719afb180256ac7bf78
+Patch-mainline: v5.0-rc6
+References: bsc#1051510
+
+On the System76 Darter Pro (darp5), there is a headset microphone
+input attached to 0x1a that does not have a jack detect. In order to
+get it working, the pin configuration needs to be set correctly, and
+the ALC269_FIXUP_HEADSET_MODE_NO_HP_MIC fixup needs to be applied.
+This is similar to the MIC_NO_PRESENCE fixups for some Dell laptops,
+except we have a separate microphone jack that is already configured
+correctly.
+
+Signed-off-by: Jeremy Soller <jeremy@system76.com>
+Cc: <stable@vger.kernel.org>
+Signed-off-by: Takashi Iwai <tiwai@suse.de>
+
+---
+ sound/pci/hda/patch_realtek.c | 11 +++++++++++
+ 1 file changed, 11 insertions(+)
+
+--- a/sound/pci/hda/patch_realtek.c
++++ b/sound/pci/hda/patch_realtek.c
+@@ -5690,6 +5690,7 @@ enum {
+ ALC294_FIXUP_ASUS_MIC,
+ ALC294_FIXUP_ASUS_HEADSET_MIC,
+ ALC294_FIXUP_ASUS_SPK,
++ ALC293_FIXUP_SYSTEM76_MIC_NO_PRESENCE,
+ };
+
+ static const struct hda_fixup alc269_fixups[] = {
+@@ -6640,6 +6641,15 @@ static const struct hda_fixup alc269_fix
+ .chained = true,
+ .chain_id = ALC294_FIXUP_ASUS_HEADSET_MIC
+ },
++ [ALC293_FIXUP_SYSTEM76_MIC_NO_PRESENCE] = {
++ .type = HDA_FIXUP_PINS,
++ .v.pins = (const struct hda_pintbl[]) {
++ { 0x1a, 0x01a1913c }, /* use as headset mic, without its own jack detect */
++ { }
++ },
++ .chained = true,
++ .chain_id = ALC269_FIXUP_HEADSET_MODE_NO_HP_MIC
++ },
+ };
+
+ static const struct snd_pci_quirk alc269_fixup_tbl[] = {
+@@ -6817,6 +6827,7 @@ static const struct snd_pci_quirk alc269
+ SND_PCI_QUIRK(0x1458, 0xfa53, "Gigabyte BXBT-2807", ALC283_FIXUP_HEADSET_MIC),
+ SND_PCI_QUIRK(0x1462, 0xb120, "MSI Cubi MS-B120", ALC283_FIXUP_HEADSET_MIC),
+ SND_PCI_QUIRK(0x1462, 0xb171, "Cubi N 8GL (MS-B171)", ALC283_FIXUP_HEADSET_MIC),
++ SND_PCI_QUIRK(0x1558, 0x1325, "System76 Darter Pro (darp5)", ALC293_FIXUP_SYSTEM76_MIC_NO_PRESENCE),
+ SND_PCI_QUIRK(0x17aa, 0x1036, "Lenovo P520", ALC233_FIXUP_LENOVO_MULTI_CODECS),
+ SND_PCI_QUIRK(0x17aa, 0x20f2, "Thinkpad SL410/510", ALC269_FIXUP_SKU_IGNORE),
+ SND_PCI_QUIRK(0x17aa, 0x215e, "Thinkpad L512", ALC269_FIXUP_SKU_IGNORE),
diff --git a/series.conf b/series.conf
index b485fd0bdb..acca779f96 100644
--- a/series.conf
+++ b/series.conf
@@ -20336,6 +20336,7 @@
patches.fixes/blk-mq-fix-a-hung-issue-when-fsync.patch
patches.arch/x86-speculation-remove-redundant-arch_smt_update-invocation.patch
patches.arch/x86-microcode-amd-don-t-falsely-trick-the-late-loading-mechanism.patch
+ patches.drivers/ALSA-hda-realtek-Headset-microphone-support-for-Syst.patch
patches.drivers/ALSA-hda-realtek-Fix-lose-hp_pins-for-disable-auto-m.patch
patches.drivers/ALSA-hda-realtek-Use-a-common-helper-for-hp-pin-refe.patch
patches.drivers/ALSA-hda-Serialize-codec-registrations.patch