Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp963209pxb; Wed, 3 Mar 2021 22:42:41 -0800 (PST) X-Google-Smtp-Source: ABdhPJx0dwmqoX7S6hA/pDE8yehsJ9WhQAGnFvxGJeCBdDjsHC9z0zc23r0hoaAnd3OtlkJBWYfT X-Received: by 2002:a17:906:8447:: with SMTP id e7mr2603785ejy.523.1614840161283; Wed, 03 Mar 2021 22:42:41 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1614840161; cv=none; d=google.com; s=arc-20160816; b=o3A8Z3bgvi4HRdShId7p7wtsC/ghAf4zHctSFMjWBoyVFloGXpeQRrVKzcoLIh5+q+ kuzW3otSBG6mgWJHLmBfdulD9T+x6kJoIdFNgRGf9q2huFGVdTlbRyADVjFkaOTmXiwU Fvmpe7X6JAwKyBQJvdZ9Ae7GAxBSBwVzpjSmv3tlb3j0CiXrxXIdp3HOC7vnEEuj7vHH sOqcuafGTtallxJ/YI6j/jOdcKbUvAKfXukvM3YJ6OirZZhfxXTNidqgq02ws7YJakn5 jhk4/L5gsgecKNfeVIAgpG2+CMzViArduGDnMZ+aVAIwH4zvtHUqInwFyXriGh/cEOCS mv6A== 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 :message-id:date:subject:cc:to:from; bh=HDKSVjj1sLpokXyBoPzbmRvhIvCZoWEAiITH2A3aHe4=; b=hwv0NFSZbxgZFr4yUAqYRi3AD5ljkniw1Uhua8pHzy02XB/Uyt8QQDkHhrPafUGsuE JDHrZJ4TXjoJjoYA4s3+CsC+ytPZLTYKWvDWRRnr4j1ySYwYB6RKWdkR3uQef0b0tV4i hd8OuTGpumeLGtar9I6WeUJRwd3S4BH7jNBM7ICaR6LCXdD+VaHiyxXldjvvFyAi3iaK QCtA26hWfDS1RTmXEcDHFzYIqITEAsJmqJOiOPKc12ndMeRxCmGWx6WiC1lO1gekfS7d kYBIQ6yTDtG1gL5GvTBD1PzeV0/hKnOkFcwqoBLyECh/Bu+nG1BRhq37z75K0HnUlKXf 3HdA== ARC-Authentication-Results: i=1; mx.google.com; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id u7si3469067edo.259.2021.03.03.22.42.18; Wed, 03 Mar 2021 22:42:41 -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; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1447778AbhCBU6O (ORCPT + 99 others); Tue, 2 Mar 2021 15:58:14 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:56476 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1580591AbhCBSFH (ORCPT ); Tue, 2 Mar 2021 13:05:07 -0500 Received: from srv6.fidu.org (srv6.fidu.org [IPv6:2a01:4f8:231:de0::2]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id A4062C061793; Tue, 2 Mar 2021 10:04:27 -0800 (PST) Received: from localhost (localhost.localdomain [127.0.0.1]) by srv6.fidu.org (Postfix) with ESMTP id 8FD85C800D3; Tue, 2 Mar 2021 19:04:25 +0100 (CET) X-Virus-Scanned: Debian amavisd-new at srv6.fidu.org Received: from srv6.fidu.org ([127.0.0.1]) by localhost (srv6.fidu.org [127.0.0.1]) (amavisd-new, port 10026) with LMTP id vsEFdfqi1Tn6; Tue, 2 Mar 2021 19:04:25 +0100 (CET) Received: from wsembach-tuxedo.fritz.box (p200300E37f234700CC4188A7f2f8d6b8.dip0.t-ipconnect.de [IPv6:2003:e3:7f23:4700:cc41:88a7:f2f8:d6b8]) (Authenticated sender: wse@tuxedocomputers.com) by srv6.fidu.org (Postfix) with ESMTPA id 45C0DC800CE; Tue, 2 Mar 2021 19:04:25 +0100 (CET) From: Werner Sembach To: wse@tuxedocomputers.com, perex@perex.cz, tiwai@suse.com, alsa-devel@alsa-project.org, linux-kernel@vger.kernel.org, alsa-devel@vger.kernel.org Cc: Eckhart Mohr , stable@vger.kernel.org Subject: [PATCH] ALSA: hda/realtek: Add quirk for Intel NUC 10 Date: Tue, 2 Mar 2021 19:04:14 +0100 Message-Id: <20210302180414.23194-1-wse@tuxedocomputers.com> X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org ALSA: hda/realtek: Add quirk for Intel NUC 10 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: --- Resend of this patch with git send-email, because last patch got tabs replaced with spaces. From d281364b8ca6c054a0e5ce20caa599bf7d08160d Mon Sep 17 00:00:00 2001 From: Werner Sembach Date: Fri, 26 Feb 2021 13:54:30 +0100 Subject: [PATCH] Fix Intel NUC10 no output and input on headset jack --- 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 290645516313..c14d624dbaf1 100644 --- a/sound/pci/hda/patch_realtek.c +++ b/sound/pci/hda/patch_realtek.c @@ -6362,6 +6362,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, @@ -7744,6 +7745,15 @@ static const struct hda_fixup alc269_fixups[] = { .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[]) { @@ -8183,6 +8193,7 @@ static const struct snd_pci_quirk alc269_fixup_tbl[] = { 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. -- 2.25.1