Received: by 2002:a05:6a10:22f:0:0:0:0 with SMTP id 15csp1852849pxk; Tue, 1 Sep 2020 09:15:50 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzejHmj7WXCohgUk3Yf7aR7diUsL5mrlnEW5msLwmpPnZ8/f6EJIlc2OvS250wEzAunV3PY X-Received: by 2002:a50:bf4a:: with SMTP id g10mr2352373edk.188.1598976950661; Tue, 01 Sep 2020 09:15:50 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1598976950; cv=none; d=google.com; s=arc-20160816; b=x8zxxraFlg5xf9WsJzEQgMZTRP5gBcn1BmaHW33SCaArOlCddCLkwQSggBQn8EehqN DKcezTQd0nWuFjKsjo/dATiipSoQf9rIR8Eyj7JKwtcHVVTa9ea5w208nu+2pef/i0hj B9ShlVgUAmeOi6Pnp4djSEr3TRNZ1DvHc0ga2JwwNEGTiN85/q++ZTn/5NEer9qS2woT p8g5xpH7G8fTLHE6TDWc1HlP8j85a6AlPDZjZ3kfVrn4uCrnURguvg77Jw0i1tZNRhwR o5LVtqZqnaG4mfhxUMxrbI/XWaCHD80DpAaJAoBcMT05z7ZBoCk3pIklMddf7StdzMfh rIzQ== 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=iPv6KEr3X79bvHyc3ePcu/VDdP6PxDwlJpXUYf0QMqM=; b=FuX8Ucsx+kDkZyGqaFyyC3wuCVl5JRnY2GazXONSVQy6D7YEcnaOcBxcoIF0KJbBOI Tv6QfIV+0f7wf6v5ZB52wVtzBgY+UqAITQ6UPNGfAwy/iohSO//MHpKbm9YYRzOvXdEQ s4X+nI5f7gWgwgyZBENkl7OxNHA6XSctNqpN0O++n+5HDZM6P/993TH1VHU5ASVBJ7sP FfcbQFMGs92jVfndEQAqqe8QncJTl/F83I2MIqjbeWNYlfjskQgI4eZnpHEwVhQNKocN pKNHJ2GpaAErmZ2HCnh9TKejpY4cE1iyDm8J2kLC7TZNgHjYiBRfq1zXxhciIYci1UqQ pqxQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=eej71XX1; 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 cb6si804188ejb.350.2020.09.01.09.15.25; Tue, 01 Sep 2020 09:15:50 -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=eej71XX1; 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 S1728980AbgIAQNP (ORCPT + 99 others); Tue, 1 Sep 2020 12:13:15 -0400 Received: from mail.kernel.org ([198.145.29.99]:43450 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1731274AbgIAPg1 (ORCPT ); Tue, 1 Sep 2020 11:36:27 -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 B935E21534; Tue, 1 Sep 2020 15:36:26 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1598974587; bh=lPpN0ofvKrWwRILlZ6nzMtWdbUvEs5PBobyPX0wZu6Q=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=eej71XX1CDNh4TgR6i0x2Wnqv0JIhcJxJUFTjeiAYgNaxFv9rYhxItOJYIxTRtipK rDqT2mTkFUwwq9cgXpJZumIW+T8u9FLD4O1Mqozo/PeXEc7ENV/RDNN/3h8mNKMpLk 6rgM1aygGfX8Ss++QdMFdyZ29AEL0WR7VmjmHUzs= 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.8 005/255] ALSA: hda/realtek: Fix pin default on Intel NUC 8 Rugged Date: Tue, 1 Sep 2020 17:07:41 +0200 Message-Id: <20200901151001.063285033@linuxfoundation.org> X-Mailer: git-send-email 2.28.0 In-Reply-To: <20200901151000.800754757@linuxfoundation.org> References: <20200901151000.800754757@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 b10d005786d07..b767d8fce828e 100644 --- a/sound/pci/hda/patch_realtek.c +++ b/sound/pci/hda/patch_realtek.c @@ -6167,6 +6167,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[] = { @@ -7488,6 +7489,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[] = { @@ -7787,6 +7797,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