Received: by 2002:a05:6358:16cc:b0:ea:6187:17c9 with SMTP id r12csp1750236rwl; Mon, 26 Dec 2022 04:18:45 -0800 (PST) X-Google-Smtp-Source: AMrXdXu/w3DSG7LprOuukm4ql0Y6P2g8H7To4X+Q6aWn8w8gbPXiLAeBzaGfLrPb1lltuefmXC4W X-Received: by 2002:a05:6a20:b91c:b0:af:89c2:ad01 with SMTP id fe28-20020a056a20b91c00b000af89c2ad01mr18868460pzb.40.1672057125031; Mon, 26 Dec 2022 04:18:45 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1672057125; cv=none; d=google.com; s=arc-20160816; b=TRCq2iIyBSq+8y+rrwLPdGdt6PQKtuatAtzmB2kPJJHD3znccj/YjdhdZ18TF67FhT IGpFh1KsLIOV3UuEffItcx6ux+z6MTgAozOy/OHyPmdiC8W658uDEECAi02TLjJdxlbh pjsNRwCKP6NHkjD/RdQ+dX5G1f65a17fxGJjV/JOZcm5OH443hFyIOVz8vh6eBo9ieYr ozJz0nHIqXkRT+NtrbxGkLC3jdSL8iEXJSv/cu6eCXfwmbyu24Oc6hWfX/8wsNlJUbSt dgl/KYjhPWlQgIf5ayaCMCqExVcgGaEwCidaio8rfciMs+S2TT1EmlDGgyE9fY6fF4IB /UsA== 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:dkim-signature; bh=aRfghd24Gxy9oAEt3+RAeQ8YV+5xbmg27rAC6+YQkYs=; b=Y+NM8W8Htp2DITxura2+EIbinSzoLUw61A36Aqv3kHn4AAia56m6HMgcbWll5bbmax 1jwLRTzY01X8nHe6yrF3F9Je2fspj4ARxlynsafDquuH0otUhEOVgEnSaKhlqQ49B1/A t+UZ2tpMflmhVqt+udKA0Hys07R0eEQwJa9ftEuLh9D8IhwMpaNrVb8pwgLO8zFsQZSZ EZv5oLxfKC6HWixR6wN+aUJ7mVLE3nGhiojXYD+AGId8bQ8YxCxfG6qknwOlwDpY7ki5 EpYNmcwIa9JjlNJq+RzHwSdrqXLp2jUUoIJLVdTJdqslMSQS/QOEpyuG3IKei1jPV90V 83oA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@canonical.com header.s=20210705 header.b=SVjiPfNK; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=canonical.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id 2-20020a631342000000b0043ca0a1f7dasi11272552pgt.674.2022.12.26.04.18.35; Mon, 26 Dec 2022 04:18:44 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@canonical.com header.s=20210705 header.b=SVjiPfNK; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=canonical.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231823AbiLZLnV (ORCPT + 66 others); Mon, 26 Dec 2022 06:43:21 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:32986 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229533AbiLZLnT (ORCPT ); Mon, 26 Dec 2022 06:43:19 -0500 Received: from smtp-relay-internal-1.canonical.com (smtp-relay-internal-1.canonical.com [185.125.188.123]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id EEAD7630F for ; Mon, 26 Dec 2022 03:43:16 -0800 (PST) Received: from mail-pj1-f70.google.com (mail-pj1-f70.google.com [209.85.216.70]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by smtp-relay-internal-1.canonical.com (Postfix) with ESMTPS id 111874150C for ; Mon, 26 Dec 2022 11:43:15 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=canonical.com; s=20210705; t=1672054995; bh=aRfghd24Gxy9oAEt3+RAeQ8YV+5xbmg27rAC6+YQkYs=; h=From:To:Cc:Subject:Date:Message-Id:MIME-Version; b=SVjiPfNKLmnXagJ4gD/b7zb7Ftd14OZlchPczfX/57d49cgbhMej37MEf/C3/AyYi IKLOqj5fC7IP+rGVyQDonZt2uSGucGLqJh//YlELcmHEd/otHX11kb457J4KwlVuCZ 5S+RzWYDYasYj6nENgcLslQmXXqpTkVs4GQDRvQZ62iFJqBZkSTy81jFwVLSKNR+mS uFNvNaflpBk7KmH4ESEVuYG1Wgfm3O2ykixdmcq2W1sCAVGYH8MFSpetBvVaZLVo0X iU+5sNdNCsXR7bBccSpw17iimUNcH3itOmw9f93vMM7vb84BEelfTa4+g2/+Tk5J3U pzEj0yVwtEWlA== Received: by mail-pj1-f70.google.com with SMTP id me18-20020a17090b17d200b00219f8dc7cb3so9324242pjb.4 for ; Mon, 26 Dec 2022 03:43:14 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=aRfghd24Gxy9oAEt3+RAeQ8YV+5xbmg27rAC6+YQkYs=; b=MQCtF5FTD9zCnEm/7wawIHcTE6H4XrwhoTKITU1jzYRWCmDAZBtCNZCSyQM6iAYLrd XBVtq5JHa56AmPntjFsGTgWmmxXHH+B1P4xxbTUTHnBikYYagxuv1AHvVQzRScIDcXtB G2qgEYhomtexfk9CBnA7/08HiPhNUITDySTpg8XR2025kfFXU24JiJEt45+z1zU5eh5w sJvtyI7xH83veQnCmseJTa32mmlk0d+lXqHwWkcHi0J95F2Zied059q1kX65rizQqM5O +IDHNElhR8O0yJCOy5r39Pk29kpTLIrJUIul3pmA1UzFIjlVrvxiBT2zAxFsTIURR24+ tb/Q== X-Gm-Message-State: AFqh2kr1tC7EDKl9QZJwr2sV0XBZDpRlJI5r3JAOlf7r5cp92QPCabyY xpVY6jrdesRT3L8LEuEUu/iybvrIGB8Ro891JJ7oXnQlLh8NK/wjiQNhBWC1LXmvAza1FTwWsqt 1oHTqyIO/7vWJtiepVCIrPlFIHIgR4/tamq+DHBnSSQ== X-Received: by 2002:a62:5801:0:b0:574:a541:574a with SMTP id m1-20020a625801000000b00574a541574amr18945848pfb.0.1672054992244; Mon, 26 Dec 2022 03:43:12 -0800 (PST) X-Received: by 2002:a62:5801:0:b0:574:a541:574a with SMTP id m1-20020a625801000000b00574a541574amr18945827pfb.0.1672054991803; Mon, 26 Dec 2022 03:43:11 -0800 (PST) Received: from localhost.localdomain (220-136-203-167.dynamic-ip.hinet.net. [220.136.203.167]) by smtp.gmail.com with ESMTPSA id t12-20020aa7946c000000b005769ccca18csm6739267pfq.85.2022.12.26.03.43.09 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 26 Dec 2022 03:43:11 -0800 (PST) From: Chris Chiu To: tiwai@suse.com, perex@perex.cz Cc: alsa-devel@alsa-project.org, linux-kernel@vger.kernel.org, Chris Chiu Subject: [PATCH] ALSA: hda/realtek: Apply dual codec fixup for Dell Latitude laptops Date: Mon, 26 Dec 2022 19:43:03 +0800 Message-Id: <20221226114303.4027500-1-chris.chiu@canonical.com> X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-4.4 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED, SPF_HELO_NONE,SPF_PASS 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 The Dell Latiture 3340/3440/3540 laptops with Realtek ALC3204 have dual codecs and need the ALC1220_FIXUP_GB_DUAL_CODECS to fix the conflicts of Master controls. The existing headset mic fixup for Dell is also required to enable the jack sense and the headset mic. Introduce a new fixup to fix the dual codec and headset mic issues for particular Dell laptops since other old Dell laptops with the same codec configuration are already well handled by the fixup in alc269_fallback_pin_fixup_tbl[]. Signed-off-by: Chris Chiu --- sound/pci/hda/patch_realtek.c | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/sound/pci/hda/patch_realtek.c b/sound/pci/hda/patch_realtek.c index e443d88f627f..3794b522c222 100644 --- a/sound/pci/hda/patch_realtek.c +++ b/sound/pci/hda/patch_realtek.c @@ -7175,6 +7175,7 @@ enum { ALC287_FIXUP_YOGA9_14IAP7_BASS_SPK, ALC287_FIXUP_YOGA9_14IAP7_BASS_SPK_PIN, ALC295_FIXUP_DELL_INSPIRON_TOP_SPEAKERS, + ALC236_FIXUP_DELL_DUAL_CODECS, }; /* A special fixup for Lenovo C940 and Yoga Duet 7; @@ -9130,6 +9131,12 @@ static const struct hda_fixup alc269_fixups[] = { .chained = true, .chain_id = ALC269_FIXUP_DELL4_MIC_NO_PRESENCE, }, + [ALC236_FIXUP_DELL_DUAL_CODECS] = { + .type = HDA_FIXUP_PINS, + .v.func = alc1220_fixup_gb_dual_codecs, + .chained = true, + .chain_id = ALC255_FIXUP_DELL1_MIC_NO_PRESENCE, + }, }; static const struct snd_pci_quirk alc269_fixup_tbl[] = { @@ -9232,6 +9239,12 @@ static const struct snd_pci_quirk alc269_fixup_tbl[] = { SND_PCI_QUIRK(0x1028, 0x0b1a, "Dell Precision 5570", ALC289_FIXUP_DUAL_SPK), SND_PCI_QUIRK(0x1028, 0x0b37, "Dell Inspiron 16 Plus 7620 2-in-1", ALC295_FIXUP_DELL_INSPIRON_TOP_SPEAKERS), SND_PCI_QUIRK(0x1028, 0x0b71, "Dell Inspiron 16 Plus 7620", ALC295_FIXUP_DELL_INSPIRON_TOP_SPEAKERS), + SND_PCI_QUIRK(0x1028, 0x0c19, "Dell Precision 3340", ALC236_FIXUP_DELL_DUAL_CODECS), + SND_PCI_QUIRK(0x1028, 0x0c1a, "Dell Precision 3340", ALC236_FIXUP_DELL_DUAL_CODECS), + SND_PCI_QUIRK(0x1028, 0x0c1b, "Dell Precision 3440", ALC236_FIXUP_DELL_DUAL_CODECS), + SND_PCI_QUIRK(0x1028, 0x0c1c, "Dell Precision 3540", ALC236_FIXUP_DELL_DUAL_CODECS), + SND_PCI_QUIRK(0x1028, 0x0c1d, "Dell Precision 3440", ALC236_FIXUP_DELL_DUAL_CODECS), + SND_PCI_QUIRK(0x1028, 0x0c1e, "Dell Precision 3540", ALC236_FIXUP_DELL_DUAL_CODECS), SND_PCI_QUIRK(0x1028, 0x164a, "Dell", ALC293_FIXUP_DELL1_MIC_NO_PRESENCE), SND_PCI_QUIRK(0x1028, 0x164b, "Dell", ALC293_FIXUP_DELL1_MIC_NO_PRESENCE), SND_PCI_QUIRK(0x103c, 0x1586, "HP", ALC269_FIXUP_HP_MUTE_LED_MIC2), -- 2.25.1