Received: by 2002:ac0:946b:0:0:0:0:0 with SMTP id j40csp2660379imj; Mon, 11 Feb 2019 06:37:29 -0800 (PST) X-Google-Smtp-Source: AHgI3Ia9/42ZzIn0Lyw8gBWMm/+daXhTJTXIZA5iJbDQTHAKrvh+x2ZJxojuOhQUtCjyja6ekBHY X-Received: by 2002:aa7:80c8:: with SMTP id a8mr36806121pfn.27.1549895848954; Mon, 11 Feb 2019 06:37:28 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1549895848; cv=none; d=google.com; s=arc-20160816; b=Zsq2cx6KEOWXnFTLpzPrL2+aLspWa2Nqza12KD0PlTfTyI3B4j21Gh4j9U2WUyQdeF WMxRNDld8d2wu595c9TldR8HYz9X2H+21JVeZl+WelUQxrNX+VOIZVeqDP5JCAz3I8CS fCB0XfaBOChbHJ/IEu8LJ4MuBL3ExXOgPOLxECUt1BfF+1FNOCT2BtTxZthRs5QEfeJe 1p6AQn60j518qzIYLTYoF0cmey1H9u0jX9s1+4R81nFlRKtSkGUXJAF49xwNhc4fkdOl wjpBOnJH9YZhO6KrvAA4v0gbCMkfZg5ryvoMbC8G7WZMMuZHRp3GwJcqm0ea4H3hK5GS MRXw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=GAdSu7WHWH4l+BjSpWZnX9GaDfZ0jWi/TCu2N3biyJQ=; b=QSO2HIEPh8MYasQfiz+z3oRw6CsRLqSZ68DdX7u8Fmy5/32E5BD2qeB6rCDXG732Fz lZFmDM2HI/QpEhEK+6qq50MPRV1CVO1Q8IXk6gB4hZb2mWr+EZyKvcy7jNlAJ/GmRV3R VuWoshieMgcb+XSLrACBISQ9uwWyWrpL54TaVk1IGNwKd+8Cp0Arkmot9S58nwnWRFFv 21uOc8H5Y6Yhzwvz5vI7vDH4bofJk9zsKBLOpUGHotWF+t92XTWYB7EYRfuG1jtlVTTm nDXVHfApu7LOZzl4wPRTP06ylCUEIYMUFUtOLKhi7r3ladSvKL6A0peMS+02Qa6mSoEb VrZQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=kmb+BZcJ; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id 66si9604836pfk.209.2019.02.11.06.37.12; Mon, 11 Feb 2019 06:37:28 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=kmb+BZcJ; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1731234AbfBKOgZ (ORCPT + 99 others); Mon, 11 Feb 2019 09:36:25 -0500 Received: from mail.kernel.org ([198.145.29.99]:45298 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1730541AbfBKOgQ (ORCPT ); Mon, 11 Feb 2019 09:36:16 -0500 Received: from localhost (5356596B.cm-6-7b.dynamic.ziggo.nl [83.86.89.107]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id D45DE2080F; Mon, 11 Feb 2019 14:36:14 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1549895775; bh=YuVAhEN0Ld1visHBnDvYg2hUCWSQiEck47KDKOE8G9I=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=kmb+BZcJDmaqvS1cPp2Oz5yJwluaNs4nHURGaRc7oWMU0Yyu9TMBy+OmhZWMl5Dui 37hJCshTrq1kqte1CoLtWLGnaXQYDdFjPnMEQjh1DUMvSuwdAluqKSiItu0rTT4eIB R1g3ojFX6GDPuZeGVqmxmiMBjF/Jojxf2XN4UUhc= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Jeremy Soller , Takashi Iwai Subject: [PATCH 4.20 319/352] ALSA: hda/realtek - Headset microphone support for System76 darp5 Date: Mon, 11 Feb 2019 15:19:06 +0100 Message-Id: <20190211141907.129057844@linuxfoundation.org> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20190211141846.543045703@linuxfoundation.org> References: <20190211141846.543045703@linuxfoundation.org> User-Agent: quilt/0.65 X-stable: review X-Patchwork-Hint: ignore MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 4.20-stable review patch. If anyone has any objections, please let me know. ------------------ From: Jeremy Soller commit 89e3a5682edaa4e5bb334719afb180256ac7bf78 upstream. 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 Cc: Signed-off-by: Takashi Iwai Signed-off-by: Greg Kroah-Hartman --- 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 @@ -5572,6 +5572,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[] = { @@ -6496,6 +6497,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[] = { @@ -6674,6 +6684,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),