Received: by 2002:a05:7412:b10a:b0:f3:1519:9f41 with SMTP id az10csp2968676rdb; Mon, 4 Dec 2023 12:33:52 -0800 (PST) X-Google-Smtp-Source: AGHT+IFBnbqZGrOy8jsG4DnxFeBnEAV5oXUHp6T7DC8kIazx0ZU4Kn96C3bzkIX+SvA3HQO2z1h9 X-Received: by 2002:a17:90b:388d:b0:286:ab9a:e47e with SMTP id mu13-20020a17090b388d00b00286ab9ae47emr153831pjb.5.1701722032642; Mon, 04 Dec 2023 12:33:52 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1701722032; cv=none; d=google.com; s=arc-20160816; b=Qy0rWk4/I31FueztoWidjheZgxTDY9P+JlJrgZKlpxykoVGgkqnuKo1ix4e4Rt86J5 fOP7+QaPaJ2ZRaRqgGRC7zcc6ryGeWtLjqBGn3gZDT5ROgC3rbEfAEXRCgGaGWN++8V4 DJtqU7VcOJlobD/s1IjSBYwTb4DdvgvLHVcBq/eKnv3pA3mraWbQixGvayXk+0TcTd7C 2iCJuqlUGqU2O5PmH5YebzbfqCwnn0wGlZno0FVWta5XSzelaaggI3+fmMqqo60KUEj4 uNRE20JCk+c+FhMR0eZ/rpvgGD087TAg2BwXn/sOeUm9R7cOeiWgtIONC3ZEcLgVFZvY 9BeA== 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 :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=0Oy9X4d139fkCNnpSb+FZ2LukpNQ30U35dBSAhIoVWY=; fh=S3K+SjoQoh/6sETeTrvQim8TUJ2O8mvtphPj6N5PLq0=; b=EtLw1vTw0do9PbShhHHt06/81xeDmWtaIjdMds7+whDsF7ERx6Wk997JGSmTMdn9nL i6OenzIN7H5G1coXtnyr/QfOGSls+Yg7l2dOZ61MBqZJIbpw9JfTv36zBmVE4KsE77rs k5nxydWUcDIjqOwFzKCSRWgGaYAZj6gteWcPWhlLehk39oIeqY0s5OpX3znK6sGaFg7E 8BixAZK1rfFOQ4qc6NLvgoROQllrizup8AG2+Hx3tcKpZylhKWzxOZcxR95/xOLitX8R K7H9d9WDotGZOBi1rx66oKnfzbBTsrjvZ7YNq6unpS6pB7o9aMQeR6CzG1fPnjM39fSw ffaQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=Qxf8c8dm; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.37 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from snail.vger.email (snail.vger.email. [23.128.96.37]) by mx.google.com with ESMTPS id q6-20020a17090a430600b00286bd6b361csi1626014pjg.110.2023.12.04.12.33.51 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 04 Dec 2023 12:33:52 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.37 as permitted sender) client-ip=23.128.96.37; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=Qxf8c8dm; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.37 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by snail.vger.email (Postfix) with ESMTP id 0949C804C1B8; Mon, 4 Dec 2023 12:33:51 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at snail.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1345605AbjLDUdh (ORCPT + 99 others); Mon, 4 Dec 2023 15:33:37 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:59236 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1346046AbjLDUda (ORCPT ); Mon, 4 Dec 2023 15:33:30 -0500 Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id B0211D4B for ; Mon, 4 Dec 2023 12:33:34 -0800 (PST) Received: by smtp.kernel.org (Postfix) with ESMTPSA id CDE26C433D9; Mon, 4 Dec 2023 20:33:31 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1701722014; bh=XQbnVYfDI13f/xKWRvmhD+fRVkADSaH7DGVZa3M65ao=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=Qxf8c8dmP7g+qNyAGmlkNWkznzzIr6FYnn1a75GBY2zMJgcUywDeCFGWQQshMz/am H6Kef/5HoTKP6+n8Snd5yi7+qh+If6PJCUkGSoi4JxAM3XVLa9EbbUdT3ZhJgnQUCg Py8leyHa67cjm/q5B6oNmgyr/JMZZ7Koza4XCFsdz+ob/HQo7V7Ym+95PyIb3tqadD QhnLa9QJXS9TPDQQ020CNv9QzxRfTtZZ+7Iefs2bPOBZx4TxEHjFULEZvBZ/G1J9/7 IfqBngS5x1a1S/L/Y1C8thZZkn4MJaXJ5Ojx6FpLfGpZZqDTGftIXxwAhHPUcMJMZY bhX2EOvQMwf/g== From: Sasha Levin To: linux-kernel@vger.kernel.org, stable@vger.kernel.org Cc: Vasiliy Kovalev , Takashi Iwai , Sasha Levin , perex@perex.cz, tiwai@suse.com, kailang@realtek.com, sbinding@opensource.cirrus.com, luke@ljones.dev, andy.chi@canonical.com, shenghao-ding@ti.com, ruinairas1992@gmail.com, l.guzenko@web.de, yangyuchi66@gmail.com, vitalyr@opensource.cirrus.com, linux-sound@vger.kernel.org Subject: [PATCH AUTOSEL 6.6 05/32] ALSA: hda - Fix speaker and headset mic pin config for CHUWI CoreBook XPro Date: Mon, 4 Dec 2023 15:32:25 -0500 Message-ID: <20231204203317.2092321-5-sashal@kernel.org> X-Mailer: git-send-email 2.42.0 In-Reply-To: <20231204203317.2092321-1-sashal@kernel.org> References: <20231204203317.2092321-1-sashal@kernel.org> MIME-Version: 1.0 X-stable: review X-Patchwork-Hint: Ignore X-stable-base: Linux 6.6.4 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF, RCVD_IN_DNSWL_BLOCKED,SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (snail.vger.email [0.0.0.0]); Mon, 04 Dec 2023 12:33:51 -0800 (PST) From: Vasiliy Kovalev [ Upstream commit 7c9caa299335df94ad1c58f70a22f16a540eab60 ] This patch corrected the speaker and headset mic pin config to the more appropriate values. Signed-off-by: Vasiliy Kovalev Link: https://lore.kernel.org/r/20231117170923.106822-1-kovalev@altlinux.org Signed-off-by: Takashi Iwai Signed-off-by: Sasha Levin --- sound/pci/hda/patch_realtek.c | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/sound/pci/hda/patch_realtek.c b/sound/pci/hda/patch_realtek.c index 87bc1d2f8a432..8e2504dbeceaf 100644 --- a/sound/pci/hda/patch_realtek.c +++ b/sound/pci/hda/patch_realtek.c @@ -7168,6 +7168,7 @@ enum { ALC290_FIXUP_SUBWOOFER_HSJACK, ALC269_FIXUP_THINKPAD_ACPI, ALC269_FIXUP_DMIC_THINKPAD_ACPI, + ALC269VB_FIXUP_CHUWI_COREBOOK_XPRO, ALC255_FIXUP_ACER_MIC_NO_PRESENCE, ALC255_FIXUP_ASUS_MIC_NO_PRESENCE, ALC255_FIXUP_DELL1_MIC_NO_PRESENCE, @@ -7520,6 +7521,14 @@ static const struct hda_fixup alc269_fixups[] = { .type = HDA_FIXUP_FUNC, .v.func = alc269_fixup_pincfg_U7x7_headset_mic, }, + [ALC269VB_FIXUP_CHUWI_COREBOOK_XPRO] = { + .type = HDA_FIXUP_PINS, + .v.pins = (const struct hda_pintbl[]) { + { 0x18, 0x03a19020 }, /* headset mic */ + { 0x1b, 0x90170150 }, /* speaker */ + { } + }, + }, [ALC269_FIXUP_AMIC] = { .type = HDA_FIXUP_PINS, .v.pins = (const struct hda_pintbl[]) { @@ -10163,6 +10172,7 @@ static const struct snd_pci_quirk alc269_fixup_tbl[] = { SND_PCI_QUIRK(0x1d72, 0x1901, "RedmiBook 14", ALC256_FIXUP_ASUS_HEADSET_MIC), SND_PCI_QUIRK(0x1d72, 0x1945, "Redmi G", ALC256_FIXUP_ASUS_HEADSET_MIC), SND_PCI_QUIRK(0x1d72, 0x1947, "RedmiBook Air", ALC255_FIXUP_XIAOMI_HEADSET_MIC), + SND_PCI_QUIRK(0x2782, 0x0232, "CHUWI CoreBook XPro", ALC269VB_FIXUP_CHUWI_COREBOOK_XPRO), SND_PCI_QUIRK(0x8086, 0x2074, "Intel NUC 8", ALC233_FIXUP_INTEL_NUC8_DMIC), 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), -- 2.42.0