Received: by 2002:a05:6358:9144:b0:117:f937:c515 with SMTP id r4csp9068494rwr; Thu, 11 May 2023 09:31:35 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ5NfwEMGcj92OcVNAJl6h68SL4R8AaYIXwA1/+6iLsV/qhKStvewDI35UUmuSk5ybCQYZEl X-Received: by 2002:a05:6a20:9183:b0:fc:8dfb:318b with SMTP id v3-20020a056a20918300b000fc8dfb318bmr28377169pzd.0.1683822695508; Thu, 11 May 2023 09:31:35 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1683822695; cv=none; d=google.com; s=arc-20160816; b=tRp5B94NsyfGv6vI2nMNva8lIR1V8mvkk8oBq8d3rLs/pEE06AJU3c4Fe4W1EUuJ8o mtwtTl8A7oTxC3LJaPJzIYPtdp7KRtM3cGeWFD0r1B+IRLNNp1jCjxAIBw7wmMIYjuML 2syX32x0bANJQdL6syTnjFkN7Qc7rSyzqrU6Rzx3xoqAdlYY5WbHxyCEq2Tfkl/ac+Et esCimf0AIQ8f3nvqZJlZ/Lbc0Ar6ZT8L+pK6Qtwf2D3QO2facQm8uUJHDu9jy22LNi3v HvEK+usOneTpcoN9JlLSsVRMpHomAp7Y3xO8s9Rq5hPnexpGVaXUnUHRRFXhx4w+w6Tg N3qQ== 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=1aLFylek1nRr29niLBba+aU+lTWwRvz+crv9/jvyTVY=; b=PBZ2FEwMHjoN9FC9d4VRVRCPTsmnq0k3nV5S4Gze+ljbBqTsIhnfZuOeocR9t2/2lt e/oqnruJxdoCChI+nGknSIZxgjtcNghdndBF2YB2lhX5EjCqSWv+uEtzbrI4Z8g/j7jQ sRxBTDisgbnyt8vfGJ0nPryzncf4J+tnbp5jBINFCelJ6kOWia3GQNEUvRqs7BUmtL8L xDogkwYxJ6EscG0phA/ToFbnXcLc4mAuVx1ZVQ3iNRockvZdjMODAaGLaC/vMN/0M1y8 ybiJIMXxsEa5HY3/XYqsMAKNDaVwj8gqDqFF015GdPS1ZY+wwdjrTANWT+WMPme8DP2P Zj5Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20221208 header.b=b0fgib3Q; 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=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id f26-20020a63755a000000b0051b48085aaasi7084196pgn.858.2023.05.11.09.31.21; Thu, 11 May 2023 09:31:35 -0700 (PDT) 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=@gmail.com header.s=20221208 header.b=b0fgib3Q; 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=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S238574AbjEKQPX (ORCPT + 99 others); Thu, 11 May 2023 12:15:23 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:60596 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S238150AbjEKQPW (ORCPT ); Thu, 11 May 2023 12:15:22 -0400 Received: from mail-ed1-x535.google.com (mail-ed1-x535.google.com [IPv6:2a00:1450:4864:20::535]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 1FC5F1FCC for ; Thu, 11 May 2023 09:15:21 -0700 (PDT) Received: by mail-ed1-x535.google.com with SMTP id 4fb4d7f45d1cf-50bc22805d3so13464086a12.1 for ; Thu, 11 May 2023 09:15:21 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1683821719; x=1686413719; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=1aLFylek1nRr29niLBba+aU+lTWwRvz+crv9/jvyTVY=; b=b0fgib3Qb+R9WwiEGKsu02MNyBz6T+MDKV6ZV63it1tjIu1KnS9h+5d2xNZqksCS/h cs5nhOwLa6NSx9eAFg1c7dmYuCiUWCT+vfM68V/caR1QgVeKBOMqBcumjDSWkd8+dXit 1ypmtiFeZB82MHs07GJcUC+2w3TWLo7erI562o7sOOiaOQG3EmJlZH0UPBtGpHeXwjUD jtVXmxo3RqeXxGtT6oPFMiWCfUyHbqBbpowoo9XxDnonXox7AApqCSDIHThc2pKmFQka MCUMQwTi5azkOq2shk5pQH9g8+w96SSI0ht73pjyw0yw6xhJNDEN1ltpaS0jkDOKtBeR eiHw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1683821719; x=1686413719; 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=1aLFylek1nRr29niLBba+aU+lTWwRvz+crv9/jvyTVY=; b=SZmwNDY5ucYtCshIuUP8eG+WyIqJFWY+LABa5dx0xGRPyot6nI99k8mrI93E2dpvtb IGmCNJRBMrwWZ3/DbzDU8FjUs4U8//ffMf5Zg/OyqOuexfMtGH7TBWTZAcjK2v0HMGhP aJsQaXbjZl8TGI7UmateBfpZZF3eYDaiV9XRCMBqmjB0M/F7Zi/Gp34qHzijGV9KfDvR XHYrFEhLUJ0zNBrjBQggTOBov9+pjJO1ZLJUZAerE+UdLLRou5e6CDC6Un4qO0NQkgSV T2Cjb0PIk8T1HKYSa/5GXqIOK/w3SlJPmz4S3zfnywX71XzcJ/I8yRxx0j/S1npxCp7w loog== X-Gm-Message-State: AC+VfDwVm2c3m+Ii3mp5fdor9kyjbKzLQriOEftf2UVshuLifDUyourZ wpyfHPHPVORPC3oYg5TO0to= X-Received: by 2002:a50:ed99:0:b0:504:8929:71ca with SMTP id h25-20020a50ed99000000b00504892971camr18032424edr.6.1683821719398; Thu, 11 May 2023 09:15:19 -0700 (PDT) Received: from localhost.localdomain ([2a02:2f0a:b207:af00::b5e]) by smtp.gmail.com with ESMTPSA id f8-20020a056402068800b0050bc9c38fb4sm2992219edy.69.2023.05.11.09.15.17 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 11 May 2023 09:15:18 -0700 (PDT) From: Alexandru Sorodoc To: Jaroslav Kysela , Takashi Iwai Cc: Stefan Binding , Tim Crawford , Andy Chi , Meng Tang , "Luke D. Jones" , Philipp Jungkamp , =?UTF-8?q?Kacper=20Michaj=C5=82ow?= , Yuchi Yang , alsa-devel@alsa-project.org, linux-kernel@vger.kernel.org, Alexandru Sorodoc Subject: [PATCH v2] ALSA: hda/realtek: Add quirks for ASUS GU604V and GU603V Date: Thu, 11 May 2023 19:15:10 +0300 Message-Id: <20230511161510.315170-1-ealex95@gmail.com> X-Mailer: git-send-email 2.40.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_ENVFROM_END_DIGIT, FREEMAIL_FROM,RCVD_IN_DNSWL_NONE,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 These models use 2 CS35L41 amplifiers using SPI for down-facing speakers. alc285_fixup_speaker2_to_dac1 is needed to fix volume control of the down-facing speakers. Pin configs are needed to enable headset mic detection. Note that these models lack the ACPI _DSD properties needed to initialize the amplifiers. They can be added during boot to get working sound out of the speakers: https://gist.github.com/lamperez/862763881c0e1c812392b5574727f6ff Signed-off-by: Alexandru Sorodoc --- v2: Fixed position of quirk entries in table sound/pci/hda/patch_realtek.c | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) diff --git a/sound/pci/hda/patch_realtek.c b/sound/pci/hda/patch_realtek.c index bc062c0a1916..4c87a95c5d3d 100644 --- a/sound/pci/hda/patch_realtek.c +++ b/sound/pci/hda/patch_realtek.c @@ -7063,6 +7063,8 @@ enum { ALC225_FIXUP_DELL1_MIC_NO_PRESENCE, ALC295_FIXUP_DISABLE_DAC3, ALC285_FIXUP_SPEAKER2_TO_DAC1, + ALC285_FIXUP_ASUS_SPEAKER2_TO_DAC1, + ALC285_FIXUP_ASUS_HEADSET_MIC, ALC280_FIXUP_HP_HEADSET_MIC, ALC221_FIXUP_HP_FRONT_MIC, ALC292_FIXUP_TPT460, @@ -8033,6 +8035,22 @@ static const struct hda_fixup alc269_fixups[] = { .chained = true, .chain_id = ALC269_FIXUP_THINKPAD_ACPI }, + [ALC285_FIXUP_ASUS_SPEAKER2_TO_DAC1] = { + .type = HDA_FIXUP_FUNC, + .v.func = alc285_fixup_speaker2_to_dac1, + .chained = true, + .chain_id = ALC245_FIXUP_CS35L41_SPI_2 + }, + [ALC285_FIXUP_ASUS_HEADSET_MIC] = { + .type = HDA_FIXUP_PINS, + .v.pins = (const struct hda_pintbl[]) { + { 0x19, 0x03a11050 }, + { 0x1b, 0x03a11c30 }, + { } + }, + .chained = true, + .chain_id = ALC285_FIXUP_ASUS_SPEAKER2_TO_DAC1 + }, [ALC256_FIXUP_DELL_INSPIRON_7559_SUBWOOFER] = { .type = HDA_FIXUP_PINS, .v.pins = (const struct hda_pintbl[]) { @@ -9500,6 +9518,8 @@ static const struct snd_pci_quirk alc269_fixup_tbl[] = { SND_PCI_QUIRK(0x1043, 0x1313, "Asus K42JZ", ALC269VB_FIXUP_ASUS_MIC_NO_PRESENCE), SND_PCI_QUIRK(0x1043, 0x13b0, "ASUS Z550SA", ALC256_FIXUP_ASUS_MIC), SND_PCI_QUIRK(0x1043, 0x1427, "Asus Zenbook UX31E", ALC269VB_FIXUP_ASUS_ZENBOOK), + SND_PCI_QUIRK(0x1043, 0x1473, "ASUS GU604V", ALC285_FIXUP_ASUS_HEADSET_MIC), + SND_PCI_QUIRK(0x1043, 0x1483, "ASUS GU603V", ALC285_FIXUP_ASUS_HEADSET_MIC), SND_PCI_QUIRK(0x1043, 0x1517, "Asus Zenbook UX31A", ALC269VB_FIXUP_ASUS_ZENBOOK_UX31A), SND_PCI_QUIRK(0x1043, 0x1662, "ASUS GV301QH", ALC294_FIXUP_ASUS_DUAL_SPK), SND_PCI_QUIRK(0x1043, 0x1683, "ASUS UM3402YAR", ALC287_FIXUP_CS35L41_I2C_2), -- 2.40.1