Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp1979328pxb; Fri, 5 Mar 2021 04:39:40 -0800 (PST) X-Google-Smtp-Source: ABdhPJyMqCZXQfSzihXMlYPeYoqnFsZDJn30eAn2Y89ARCdRXH+1Cc8YgxiuF0Bu7FGJBzzSxqEz X-Received: by 2002:a17:906:fcc7:: with SMTP id qx7mr2046075ejb.486.1614947979969; Fri, 05 Mar 2021 04:39:39 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1614947979; cv=none; d=google.com; s=arc-20160816; b=M1w7FhpduRuzJh6TUSA7xYPvAaNyF4AvTahvdVqqJIdAzaAQmWQ2Ecms+V87O7l4gg GdmD0Csc44HqVNeeVefB4J4YN4uhHDJZq+wqri3sOIkSalsoEf74lpNWHzgCzlURSwEX 2BewQ/iyFsdjEc//fwYN3soi23uQdprffZzfiS6YHr5hpMG4LHlY0yjohuUyRxfQSS72 f4ndD6mxOCg0PKILSdaO5tL2b9qKdbmzp0riPV59zA7d3eLhcVh89WF/TH4ANGrMGFwu FB7lDG77suDT4I1G29P4gF4OkxK7qugKneNUMiSE/Le8X31TWP1zy6FF/EHC2BR0oi50 wXug== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=9rU/QdbIlc2vQVt7jgXh0Y2T+YHw2yiZdS2TAaCPjL8=; b=eli6a1vuBYfvEAsPBjtH8JUjetReT15YZJZhnJIL6kJCWQnMddDizsWI9+RZAzB5Ur j+DrSsIKSXTSOY9JgmlOFmcbzz272MA1r4hmt9qvRsTZcmLSWWhjU/Nr3tn+AQ+93Tzo ArLU5xWm2Olkfb2RuLRBA7iF2focPgMvMJlYruilKpUMOPBH7KAKVh1cyb7Vk3jLNt8w PCBSBCY7AsvDP84Xd3J50CSUIa22JGDtmmSuI8T6YzuaPGVE9jSmBzYNOjSGDxL9HnHs G5B74ZzcWBXwH2GxBv+kfw81DGG743npfHPRaqQuqJSFkSRwtc94G8eFweNGNbuH9uo9 bBag== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=gWkYCej6; 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=pass (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 n1si1506678edo.504.2021.03.05.04.39.16; Fri, 05 Mar 2021 04:39:39 -0800 (PST) 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=@linuxfoundation.org header.s=korg header.b=gWkYCej6; 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=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232800AbhCEMgT (ORCPT + 99 others); Fri, 5 Mar 2021 07:36:19 -0500 Received: from mail.kernel.org ([198.145.29.99]:48356 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232784AbhCEMft (ORCPT ); Fri, 5 Mar 2021 07:35:49 -0500 Received: by mail.kernel.org (Postfix) with ESMTPSA id E7DB965004; Fri, 5 Mar 2021 12:35:48 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1614947749; bh=y711LrvMH/5W5cwwXm7Q8uZg4EK+DXbi3/Rm+Sc00IA=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=gWkYCej6CqgjTQY0VlvkIVaWgCpgtQXzIUa9ZzJZs6u9jDIAYaVvNIEzZZUWezza1 UBh3h1ecfjv5BdKXxPrSXOgTVqrCv9L8jovhwwZoSgXhgG1Mo0UgG37O+T0Zg7Fd6A KxtRdxQDjDhemVMZZ2DndoHuEXJY8eAo8Y0WloVA= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Eckhart Mohr , Werner Sembach , Takashi Iwai Subject: [PATCH 5.4 71/72] ALSA: hda/realtek: Add quirk for Intel NUC 10 Date: Fri, 5 Mar 2021 13:22:13 +0100 Message-Id: <20210305120900.807844603@linuxfoundation.org> X-Mailer: git-send-email 2.30.1 In-Reply-To: <20210305120857.341630346@linuxfoundation.org> References: <20210305120857.341630346@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Werner Sembach commit 73e7161eab5dee98114987239ec9c87fe8034ddb upstream. This adds a new SND_PCI_QUIRK(...) and applies it to the Intel NUC 10 devices. This fixes the issue of the devices not having audio input and output on the headset jack because the kernel does not recognize when something is plugged in. The new quirk was inspired by the quirk for the Intel NUC 8 devices, but it turned out that the NUC 10 uses another pin. This information was acquired by black box testing likely pins. Co-developed-by: Eckhart Mohr Signed-off-by: Eckhart Mohr Signed-off-by: Werner Sembach Cc: Link: https://lore.kernel.org/r/20210302180414.23194-1-wse@tuxedocomputers.com 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 @@ -6320,6 +6320,7 @@ enum { ALC269_FIXUP_LEMOTE_A1802, ALC269_FIXUP_LEMOTE_A190X, ALC256_FIXUP_INTEL_NUC8_RUGGED, + ALC256_FIXUP_INTEL_NUC10, ALC255_FIXUP_XIAOMI_HEADSET_MIC, ALC274_FIXUP_HP_MIC, ALC274_FIXUP_HP_HEADSET_MIC, @@ -7697,6 +7698,15 @@ static const struct hda_fixup alc269_fix .chained = true, .chain_id = ALC269_FIXUP_HEADSET_MODE }, + [ALC256_FIXUP_INTEL_NUC10] = { + .type = HDA_FIXUP_PINS, + .v.pins = (const struct hda_pintbl[]) { + { 0x19, 0x01a1913c }, /* use as headset mic, without its own jack detect */ + { } + }, + .chained = true, + .chain_id = ALC269_FIXUP_HEADSET_MODE + }, [ALC255_FIXUP_XIAOMI_HEADSET_MIC] = { .type = HDA_FIXUP_VERBS, .v.verbs = (const struct hda_verb[]) { @@ -8096,6 +8106,7 @@ static const struct snd_pci_quirk alc269 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), + SND_PCI_QUIRK(0x8086, 0x2081, "Intel NUC 10", ALC256_FIXUP_INTEL_NUC10), #if 0 /* Below is a quirk table taken from the old code.