Received: by 2002:a05:6a10:22f:0:0:0:0 with SMTP id 15csp1877737pxk; Tue, 1 Sep 2020 09:50:28 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzAPsYUEqZSsAfyl+x3d1s0CWnR37mPegw18thSkAprpLwD7z6y/u4wuT899osjpkuG6TIZ X-Received: by 2002:a05:6402:1697:: with SMTP id a23mr2605624edv.195.1598979027808; Tue, 01 Sep 2020 09:50:27 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1598979027; cv=none; d=google.com; s=arc-20160816; b=VxsloMCpCb27Gio+PhHH0wqVnNngkANrzypzUgn1oxCgWWTDfw+T4uyUdFyRtXYFsg 7JM7OPo8yjNKsN5KrfD3XhZN9SzEv1oCqMJ9vQWd9eE72s3Jx6Nsfebi/LmYdmZag+/e f9w+Grz+OqDOu/gQEiIjUCKhSWSILRDrhHXLxkMDPHL9xwhYMAh47IqA1MB+Us4+7s3r a9qN0vCiG5Qk+psCrE6L00S1RVxE0GgyGrVElEIe4iN/Alu7T+KzDOvimarEOK7U7ZGk ikGSWeLb7owJkMHic02y6Wvry0jZnKK85SXd+rCQIlKpbMEd9xVWpvn4a1PtwsEfvcap wLvQ== 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=QX9PTf8ocvt3hAi3/7uoRkjREMbF1SxIedNuRDo+PFA=; b=IfNKmvm0cPT+Vvd1KmxQqjzpSynnvfZajJnoYCgAzvrAErNTz5yDrHYdj/T+LQesNf DMnCzf5TxilURcjNtrjiUNCV7r4bu158E3H+x2hhsq7B4ohuc1zKG9U5bRFikFW1m92Q SMj1Q7tWuInlZhhOfGA4ZqcjBV0cweMQp43zztvoz+NppXf/rWkKpmNFufr+l8OvXmIN RsrZnnMjUMOrbA9A5AnOVDAijcMCw5dH1bceDcZwbZCXMsVmgg6NxlIQ4iR1YqS7SznJ 0cdTX4+DZvveqeCFVtKcgK8frqFXNwQHUzwJE9S3hLwMsPGpbJYNLiuYXMxeuHwOhsEs o3GQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=2hB7CY5B; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id c11si870572edy.260.2020.09.01.09.50.03; Tue, 01 Sep 2020 09:50:27 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=2hB7CY5B; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1730313AbgIAQtX (ORCPT + 99 others); Tue, 1 Sep 2020 12:49:23 -0400 Received: from mail.kernel.org ([198.145.29.99]:53582 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729635AbgIAP1E (ORCPT ); Tue, 1 Sep 2020 11:27:04 -0400 Received: from localhost (83-86-74-64.cable.dynamic.v4.ziggo.nl [83.86.74.64]) (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 C758321582; Tue, 1 Sep 2020 15:27:03 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1598974024; bh=BMli74Sus2gOr/VGVjgJLZCMpcMshwPkpp49FISWGk4=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=2hB7CY5BEJwks6U1RM7zMcdpVeBZR0dHj1sV7OjohzDIgvaRiNIncctL7BPTJO3bW 9PxgUxY9AEWhtv8Vb+1g5eGGR3cflEbD9MxQ/2ccczra4jN8LcfQ/pL/rAf2YqJhdw rWOb1ZEx94CkQ0LE305Ve4qVzVbPMrNU0qKEC3yM= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Kai-Heng Feng , Takashi Iwai , Sasha Levin Subject: [PATCH 5.4 015/214] ALSA: hda/realtek: Fix pin default on Intel NUC 8 Rugged Date: Tue, 1 Sep 2020 17:08:15 +0200 Message-Id: <20200901150953.700141952@linuxfoundation.org> X-Mailer: git-send-email 2.28.0 In-Reply-To: <20200901150952.963606936@linuxfoundation.org> References: <20200901150952.963606936@linuxfoundation.org> User-Agent: quilt/0.66 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 From: Kai-Heng Feng [ Upstream commit e2d2fded6bdf3f7bb40718a208140dba8b4ec574 ] The jack on Intel NUC 8 Rugged rear panel doesn't work. The spec [1] states that the jack supports both headphone and microphone, so override a Pin Complex which has both Amp-In and Amp-Out to make the jack work. Node 0x1b fits the requirement, and user confirmed the jack now works with new pin config. [1] https://www.intel.com/content/dam/support/us/en/documents/mini-pcs/NUC8CCH_TechProdSpec.pdf BugLink: https://bugs.launchpad.net/bugs/1875199 Signed-off-by: Kai-Heng Feng Link: https://lore.kernel.org/r/20200807080514.15293-1-kai.heng.feng@canonical.com Signed-off-by: Takashi Iwai Signed-off-by: Sasha Levin --- sound/pci/hda/patch_realtek.c | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/sound/pci/hda/patch_realtek.c b/sound/pci/hda/patch_realtek.c index 06bbcfbb28153..3c7bc398c0cbc 100644 --- a/sound/pci/hda/patch_realtek.c +++ b/sound/pci/hda/patch_realtek.c @@ -6137,6 +6137,7 @@ enum { ALC269_FIXUP_CZC_L101, ALC269_FIXUP_LEMOTE_A1802, ALC269_FIXUP_LEMOTE_A190X, + ALC256_FIXUP_INTEL_NUC8_RUGGED, }; static const struct hda_fixup alc269_fixups[] = { @@ -7458,6 +7459,15 @@ static const struct hda_fixup alc269_fixups[] = { }, .chain_id = ALC269_FIXUP_DMIC, }, + [ALC256_FIXUP_INTEL_NUC8_RUGGED] = { + .type = HDA_FIXUP_PINS, + .v.pins = (const struct hda_pintbl[]) { + { 0x1b, 0x01a1913c }, /* use as headset mic, without its own jack detect */ + { } + }, + .chained = true, + .chain_id = ALC269_FIXUP_HEADSET_MODE + }, }; static const struct snd_pci_quirk alc269_fixup_tbl[] = { @@ -7757,6 +7767,7 @@ static const struct snd_pci_quirk alc269_fixup_tbl[] = { SND_PCI_QUIRK(0x10ec, 0x118c, "Medion EE4254 MD62100", ALC256_FIXUP_MEDION_HEADSET_NO_PRESENCE), SND_PCI_QUIRK(0x1c06, 0x2013, "Lemote A1802", ALC269_FIXUP_LEMOTE_A1802), SND_PCI_QUIRK(0x1c06, 0x2015, "Lemote A190X", ALC269_FIXUP_LEMOTE_A190X), + SND_PCI_QUIRK(0x8086, 0x2080, "Intel NUC 8 Rugged", ALC256_FIXUP_INTEL_NUC8_RUGGED), #if 0 /* Below is a quirk table taken from the old code. -- 2.25.1