From patchwork Thu Apr 11 01:18:05 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: AceLan Kao X-Patchwork-Id: 1922318 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@legolas.ozlabs.org Authentication-Results: legolas.ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=lists.ubuntu.com (client-ip=185.125.189.65; helo=lists.ubuntu.com; envelope-from=kernel-team-bounces@lists.ubuntu.com; receiver=patchwork.ozlabs.org) Received: from lists.ubuntu.com (lists.ubuntu.com [185.125.189.65]) (using TLSv1.2 with cipher ECDHE-ECDSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by legolas.ozlabs.org (Postfix) with ESMTPS id 4VFMJs5fHkz1yYQ for ; Thu, 11 Apr 2024 11:18:21 +1000 (AEST) Received: from localhost ([127.0.0.1] helo=lists.ubuntu.com) by lists.ubuntu.com with esmtp (Exim 4.86_2) (envelope-from ) id 1ruj4y-0002NI-3S; Thu, 11 Apr 2024 01:18:16 +0000 Received: from mail-pf1-f172.google.com ([209.85.210.172]) by lists.ubuntu.com with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.86_2) (envelope-from ) id 1ruj4v-0002MJ-IJ for kernel-team@lists.ubuntu.com; Thu, 11 Apr 2024 01:18:13 +0000 Received: by mail-pf1-f172.google.com with SMTP id d2e1a72fcca58-6ed9fc77bbfso1603552b3a.1 for ; Wed, 10 Apr 2024 18:18:13 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1712798291; x=1713403091; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:to:from:sender:x-gm-message-state:from:to :cc:subject:date:message-id:reply-to; bh=d0It6HOnbLPt88fDNFWq8ZBFC2ZQx5WnFCgYeg0f/JE=; b=AWTKQLa0gLAR3YqMjZ91vnr3e3vdZFwAycF7KLrscL0TJzBX79iy2E6846YfxU7VVF QtYIdTRA3WoI7w1EtDWknngPen6FWyIGLMwD0BYOwgeqx+Y3kLDooZZKuhIzRAW8Ogc3 ZahYqyxFQXQaSDSqYb+1MwLOdIC0ZnDG+Twphi5jCvMrfT6GcPyd5EpaPlKVwLq2BPr2 V7/l7ZwMU/WEBg3Baz3FMx9T0jB6k4TVv+pIFpIsrfb1E7ISug6nS3SxVTA0Zh87hSFe NJ5fPN6dJvF1G08wBQe+6LsDOQ9oIWeNIrMj02aN5B2VNd9r3IJwIjoNp7VUMvzUH7/O h07g== X-Gm-Message-State: AOJu0YzK1LHEhSz1lkR1YZ7YfdX8sJfJk5FUDrXBSlXdCw2xbILW9ke3 cPkZaf+nUp8uzsmWnKGHsvSoNPVDGUBjsgV4oSUoyagw/C8hUnbKMJ4SsYl/ X-Google-Smtp-Source: AGHT+IFkTLCGERnDJ1jRHCurz7vKZ+9l4ujl3vkKyiVY69VG5Y+jDDGUNXOaTlnK9rALpqY4CxmXDw== X-Received: by 2002:a05:6a21:3a94:b0:1a7:1c26:f9ac with SMTP id zv20-20020a056a213a9400b001a71c26f9acmr5209002pzb.62.1712798291472; Wed, 10 Apr 2024 18:18:11 -0700 (PDT) Received: from localhost (211-75-139-218.hinet-ip.hinet.net. [211.75.139.218]) by smtp.gmail.com with ESMTPSA id q4-20020a17090311c400b001e2b8c91f04sm185799plh.22.2024.04.10.18.18.10 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 10 Apr 2024 18:18:11 -0700 (PDT) From: AceLan Kao To: kernel-team@lists.ubuntu.com Subject: [PATCH 1/2][SRU][M] ALSA: hda/realtek - Add speaker pin verbtable for Dell dual speaker platform Date: Thu, 11 Apr 2024 09:18:05 +0800 Message-Id: <20240411011806.182144-2-acelan.kao@canonical.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20240411011806.182144-1-acelan.kao@canonical.com> References: <20240411011806.182144-1-acelan.kao@canonical.com> MIME-Version: 1.0 Received-SPF: pass client-ip=209.85.210.172; envelope-from=acelan@gmail.com; helo=mail-pf1-f172.google.com X-BeenThere: kernel-team@lists.ubuntu.com X-Mailman-Version: 2.1.20 Precedence: list List-Id: Kernel team discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: kernel-team-bounces@lists.ubuntu.com Sender: "kernel-team" From: Kailang Yang BugLink: https://bugs.launchpad.net/bugs/2054487 SSID 0x0c0d platform. It can't mute speaker when HP plugged. This patch add quirk to fill speaker pin verbtable. And disable speaker passthrough. Signed-off-by: Kailang Yang Cc: Link: https://lore.kernel.org/r/38b82976a875451d833d514cee34ff6a@realtek.com Signed-off-by: Takashi Iwai (cherry picked from commit fcfc9f711d1e2fc7876ac12b1b16c509404b9625) Signed-off-by: Chia-Lin Kao (AceLan) --- sound/pci/hda/patch_realtek.c | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/sound/pci/hda/patch_realtek.c b/sound/pci/hda/patch_realtek.c index 77a47aaeee94..1a43c7f12b0a 100644 --- a/sound/pci/hda/patch_realtek.c +++ b/sound/pci/hda/patch_realtek.c @@ -439,6 +439,10 @@ static void alc_fill_eapd_coef(struct hda_codec *codec) alc_update_coef_idx(codec, 0x67, 0xf000, 0x3000); fallthrough; case 0x10ec0215: + case 0x10ec0285: + case 0x10ec0289: + alc_update_coef_idx(codec, 0x36, 1<<13, 0); + fallthrough; case 0x10ec0230: case 0x10ec0233: case 0x10ec0235: @@ -452,9 +456,7 @@ static void alc_fill_eapd_coef(struct hda_codec *codec) case 0x10ec0283: case 0x10ec0286: case 0x10ec0288: - case 0x10ec0285: case 0x10ec0298: - case 0x10ec0289: case 0x10ec0300: alc_update_coef_idx(codec, 0x10, 1<<9, 0); break; @@ -9663,6 +9665,7 @@ static const struct snd_pci_quirk alc269_fixup_tbl[] = { SND_PCI_QUIRK(0x1028, 0x0b71, "Dell Inspiron 16 Plus 7620", ALC295_FIXUP_DELL_INSPIRON_TOP_SPEAKERS), SND_PCI_QUIRK(0x1028, 0x0beb, "Dell XPS 15 9530 (2023)", ALC289_FIXUP_DELL_CS35L41_SPI_2), SND_PCI_QUIRK(0x1028, 0x0c03, "Dell Precision 5340", ALC269_FIXUP_DELL4_MIC_NO_PRESENCE), + SND_PCI_QUIRK(0x1028, 0x0c0d, "Dell Oasis", ALC289_FIXUP_RTK_AMP_DUAL_SPK), 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), From patchwork Thu Apr 11 01:18:06 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: AceLan Kao X-Patchwork-Id: 1922319 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@legolas.ozlabs.org Authentication-Results: legolas.ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=lists.ubuntu.com (client-ip=185.125.189.65; helo=lists.ubuntu.com; envelope-from=kernel-team-bounces@lists.ubuntu.com; receiver=patchwork.ozlabs.org) Received: from lists.ubuntu.com (lists.ubuntu.com [185.125.189.65]) (using TLSv1.2 with cipher ECDHE-ECDSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by legolas.ozlabs.org (Postfix) with ESMTPS id 4VFMJt3BZmz1yZL for ; Thu, 11 Apr 2024 11:18:22 +1000 (AEST) Received: from localhost ([127.0.0.1] helo=lists.ubuntu.com) by lists.ubuntu.com with esmtp (Exim 4.86_2) (envelope-from ) id 1ruj4z-0002O9-9p; Thu, 11 Apr 2024 01:18:17 +0000 Received: from mail-pg1-f178.google.com ([209.85.215.178]) by lists.ubuntu.com with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.86_2) (envelope-from ) id 1ruj4y-0002N2-0M for kernel-team@lists.ubuntu.com; Thu, 11 Apr 2024 01:18:16 +0000 Received: by mail-pg1-f178.google.com with SMTP id 41be03b00d2f7-5ce07cf1e5dso5055445a12.2 for ; Wed, 10 Apr 2024 18:18:15 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1712798294; x=1713403094; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:to:from:sender:x-gm-message-state:from:to :cc:subject:date:message-id:reply-to; bh=jmYLKf8XSDOI7LffaQOSy4AcH/nbk/rKIWdrOLMJOiU=; b=GEjeMYKmsdxdLt5J3bUFmtQ3eqG56sj4dVJLaPKIdMoNQVnFH1x1I/A139ejiJ5i+A oeKz3SQ7CJA9GjmGiY7OuL8hBwBlr4FC+SGJkyX0zgHR84i2sUUuF0EXSuJEvDJdAawM sl/kvIrD9OlFwCtYjCdyH0xQ9zbmXqHocNbHLoym03zQ8LKgzyg4YOBYyzPoVyd6eGj9 oL3VVCMbxUJ0gEELzPpEVfv8E+jXsNDC1nVNJ7F9V0qfWGNtqGg9ZzTd6uz9JMllt1cA usV9Orx388jBCfKRnmscqMFqFtCFcDyP2zum3GfCk0Z09h0YO+HY/F+ImWQMvtyB9+3+ nJ2w== X-Gm-Message-State: AOJu0YxUSZqolb70BBTdg7G9afnaLIzkE74qvABU31eJ+XWdYfydMuyP QoMA7RzNNuqufPZjZo6GEvmCVKFcHHhWJ0bEDrjIRNScmCWVh4Gll1EX9ycE X-Google-Smtp-Source: AGHT+IFjpI55ds+a7LCpHW1ORs7zXS50DRh5FOV0jIavR8+daClG52SqUA5htv5G+KWA5uoCrjaEtg== X-Received: by 2002:a05:6a20:3947:b0:1a7:5334:f4b0 with SMTP id r7-20020a056a20394700b001a75334f4b0mr5037870pzg.58.1712798293739; Wed, 10 Apr 2024 18:18:13 -0700 (PDT) Received: from localhost (211-75-139-218.hinet-ip.hinet.net. [211.75.139.218]) by smtp.gmail.com with ESMTPSA id i6-20020a170902c94600b001db9e12cd62sm184566pla.10.2024.04.10.18.18.13 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 10 Apr 2024 18:18:13 -0700 (PDT) From: AceLan Kao To: kernel-team@lists.ubuntu.com Subject: [PATCH 2/2][SRU][M] ALSA: hda/realtek: add IDs for Dell dual spk platform Date: Thu, 11 Apr 2024 09:18:06 +0800 Message-Id: <20240411011806.182144-3-acelan.kao@canonical.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20240411011806.182144-1-acelan.kao@canonical.com> References: <20240411011806.182144-1-acelan.kao@canonical.com> MIME-Version: 1.0 Received-SPF: pass client-ip=209.85.215.178; envelope-from=acelan@gmail.com; helo=mail-pg1-f178.google.com X-BeenThere: kernel-team@lists.ubuntu.com X-Mailman-Version: 2.1.20 Precedence: list List-Id: Kernel team discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: kernel-team-bounces@lists.ubuntu.com Sender: "kernel-team" From: Shuming Fan BugLink: https://bugs.launchpad.net/bugs/2054487 This patch adds another two IDs for the Dell dual speaker platform. Signed-off-by: Shuming Fan Cc: Link: https://lore.kernel.org/r/20240205072252.3791500-1-shumingf@realtek.com Signed-off-by: Takashi Iwai (cherry picked from commit fddab35fd064414c677e9488c4fb3a1f67725d37) Signed-off-by: Chia-Lin Kao (AceLan) --- sound/pci/hda/patch_realtek.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/sound/pci/hda/patch_realtek.c b/sound/pci/hda/patch_realtek.c index 1a43c7f12b0a..d51f8b37a116 100644 --- a/sound/pci/hda/patch_realtek.c +++ b/sound/pci/hda/patch_realtek.c @@ -9665,7 +9665,9 @@ static const struct snd_pci_quirk alc269_fixup_tbl[] = { SND_PCI_QUIRK(0x1028, 0x0b71, "Dell Inspiron 16 Plus 7620", ALC295_FIXUP_DELL_INSPIRON_TOP_SPEAKERS), SND_PCI_QUIRK(0x1028, 0x0beb, "Dell XPS 15 9530 (2023)", ALC289_FIXUP_DELL_CS35L41_SPI_2), SND_PCI_QUIRK(0x1028, 0x0c03, "Dell Precision 5340", ALC269_FIXUP_DELL4_MIC_NO_PRESENCE), + SND_PCI_QUIRK(0x1028, 0x0c0b, "Dell Oasis 14 RPL-P", ALC289_FIXUP_RTK_AMP_DUAL_SPK), SND_PCI_QUIRK(0x1028, 0x0c0d, "Dell Oasis", ALC289_FIXUP_RTK_AMP_DUAL_SPK), + SND_PCI_QUIRK(0x1028, 0x0c0e, "Dell Oasis 16", ALC289_FIXUP_RTK_AMP_DUAL_SPK), 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),