From: xhe <xw897002528@gmail.com> To: unlisted-recipients:; (no To-header on input) Cc: xw897002528@gmail.com, Xiaoyan Li <lxy.lixiaoyan@gmail.com>, James Schulman <james.schulman@cirrus.com>, David Rhodes <david.rhodes@cirrus.com>, Lucas Tanure <tanureal@opensource.cirrus.com>, Richard Fitzgerald <rf@opensource.cirrus.com>, Jaroslav Kysela <perex@perex.cz>, Takashi Iwai <tiwai@suse.com>, Tim Crawford <tcrawford@system76.com>, Kai-Heng Feng <kai.heng.feng@canonical.com>, Werner Sembach <wse@tuxedocomputers.com>, Cameron Berkenpas <cam@neo-zeon.de>, Kailang Yang <kailang@realtek.com>, Stefan Binding <sbinding@opensource.cirrus.com>, Andy Chi <andy.chi@canonical.com>, Yong Wu <yong.wu@mediatek.com>, alsa-devel@alsa-project.org, patches@opensource.cirrus.com, linux-kernel@vger.kernel.org Subject: [PATCH] ALSA: hda: add CSC3551 support for UM5302TA Date: Sun, 3 Jul 2022 13:32:23 +0800 [thread overview] Message-ID: <20220703053225.2203-1-xw897002528@gmail.com> (raw) From: He Wang <xw897002528@gmail.com> ASUS UM5302TA are using csc3551, or cs35l41, which is connected to the laptop by I2C bus. This patch adds quirk for the sound card, and avoid ACPI DSD things for i2c-multi-instantiate cases like CLSA0100. Patch is made by XiaoYan Li. It is tested by us on ASUS UM5302TA. Signed-off-by: He Wang <xw897002528@gmail.com> Signed-off-by: Xiaoyan Li <lxy.lixiaoyan@gmail.com> --- sound/pci/hda/cs35l41_hda.c | 2 +- sound/pci/hda/patch_realtek.c | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/sound/pci/hda/cs35l41_hda.c b/sound/pci/hda/cs35l41_hda.c index cce27a86267f..7374565ecf15 100644 --- a/sound/pci/hda/cs35l41_hda.c +++ b/sound/pci/hda/cs35l41_hda.c @@ -420,7 +420,7 @@ static int cs35l41_hda_read_acpi(struct cs35l41_hda *cs35l41, const char *hid, i * And devm functions expect that the device requesting the resource has the correct * fwnode. */ - if (strncmp(hid, "CLSA0100", 8) != 0) + if (strncmp(hid, "CLSA0100", 8) != 0 && strncmp(hid, "CSC3551", 7) != 0) return -EINVAL; /* check I2C address to assign the index */ diff --git a/sound/pci/hda/patch_realtek.c b/sound/pci/hda/patch_realtek.c index cee69fa7e246..49c27d948582 100644 --- a/sound/pci/hda/patch_realtek.c +++ b/sound/pci/hda/patch_realtek.c @@ -9138,6 +9138,7 @@ static const struct snd_pci_quirk alc269_fixup_tbl[] = { SND_PCI_QUIRK(0x1043, 0x1e8e, "ASUS Zephyrus G15", ALC289_FIXUP_ASUS_GA401), SND_PCI_QUIRK(0x1043, 0x1f11, "ASUS Zephyrus G14", ALC289_FIXUP_ASUS_GA401), SND_PCI_QUIRK(0x1043, 0x1d42, "ASUS Zephyrus G14 2022", ALC289_FIXUP_ASUS_GA401), + SND_PCI_QUIRK(0x1043, 0x1f12, "ASUS UM5302TA", ALC287_FIXUP_CS35L41_I2C_2), SND_PCI_QUIRK(0x1043, 0x16b2, "ASUS GU603", ALC289_FIXUP_ASUS_GA401), SND_PCI_QUIRK(0x1043, 0x3030, "ASUS ZN270IE", ALC256_FIXUP_ASUS_AIO_GPIO2), SND_PCI_QUIRK(0x1043, 0x831a, "ASUS P901", ALC269_FIXUP_STEREO_DMIC), -- 2.33.0
WARNING: multiple messages have this Message-ID (diff)
From: xhe <xw897002528@gmail.com> Cc: Kai-Heng Feng <kai.heng.feng@canonical.com>, Stefan Binding <sbinding@opensource.cirrus.com>, Kailang Yang <kailang@realtek.com>, linux-kernel@vger.kernel.org, Lucas Tanure <tanureal@opensource.cirrus.com>, patches@opensource.cirrus.com, Takashi Iwai <tiwai@suse.com>, Xiaoyan Li <lxy.lixiaoyan@gmail.com>, xw897002528@gmail.com, James Schulman <james.schulman@cirrus.com>, alsa-devel@alsa-project.org, Cameron Berkenpas <cam@neo-zeon.de>, Richard Fitzgerald <rf@opensource.cirrus.com>, Tim Crawford <tcrawford@system76.com>, Werner Sembach <wse@tuxedocomputers.com>, David Rhodes <david.rhodes@cirrus.com>, Yong Wu <yong.wu@mediatek.com>, Andy Chi <andy.chi@canonical.com> Subject: [PATCH] ALSA: hda: add CSC3551 support for UM5302TA Date: Sun, 3 Jul 2022 13:32:23 +0800 [thread overview] Message-ID: <20220703053225.2203-1-xw897002528@gmail.com> (raw) From: He Wang <xw897002528@gmail.com> ASUS UM5302TA are using csc3551, or cs35l41, which is connected to the laptop by I2C bus. This patch adds quirk for the sound card, and avoid ACPI DSD things for i2c-multi-instantiate cases like CLSA0100. Patch is made by XiaoYan Li. It is tested by us on ASUS UM5302TA. Signed-off-by: He Wang <xw897002528@gmail.com> Signed-off-by: Xiaoyan Li <lxy.lixiaoyan@gmail.com> --- sound/pci/hda/cs35l41_hda.c | 2 +- sound/pci/hda/patch_realtek.c | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/sound/pci/hda/cs35l41_hda.c b/sound/pci/hda/cs35l41_hda.c index cce27a86267f..7374565ecf15 100644 --- a/sound/pci/hda/cs35l41_hda.c +++ b/sound/pci/hda/cs35l41_hda.c @@ -420,7 +420,7 @@ static int cs35l41_hda_read_acpi(struct cs35l41_hda *cs35l41, const char *hid, i * And devm functions expect that the device requesting the resource has the correct * fwnode. */ - if (strncmp(hid, "CLSA0100", 8) != 0) + if (strncmp(hid, "CLSA0100", 8) != 0 && strncmp(hid, "CSC3551", 7) != 0) return -EINVAL; /* check I2C address to assign the index */ diff --git a/sound/pci/hda/patch_realtek.c b/sound/pci/hda/patch_realtek.c index cee69fa7e246..49c27d948582 100644 --- a/sound/pci/hda/patch_realtek.c +++ b/sound/pci/hda/patch_realtek.c @@ -9138,6 +9138,7 @@ static const struct snd_pci_quirk alc269_fixup_tbl[] = { SND_PCI_QUIRK(0x1043, 0x1e8e, "ASUS Zephyrus G15", ALC289_FIXUP_ASUS_GA401), SND_PCI_QUIRK(0x1043, 0x1f11, "ASUS Zephyrus G14", ALC289_FIXUP_ASUS_GA401), SND_PCI_QUIRK(0x1043, 0x1d42, "ASUS Zephyrus G14 2022", ALC289_FIXUP_ASUS_GA401), + SND_PCI_QUIRK(0x1043, 0x1f12, "ASUS UM5302TA", ALC287_FIXUP_CS35L41_I2C_2), SND_PCI_QUIRK(0x1043, 0x16b2, "ASUS GU603", ALC289_FIXUP_ASUS_GA401), SND_PCI_QUIRK(0x1043, 0x3030, "ASUS ZN270IE", ALC256_FIXUP_ASUS_AIO_GPIO2), SND_PCI_QUIRK(0x1043, 0x831a, "ASUS P901", ALC269_FIXUP_STEREO_DMIC), -- 2.33.0
next reply other threads:[~2022-07-03 5:33 UTC|newest] Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top 2022-07-03 5:32 xhe [this message] 2022-07-03 5:32 ` [PATCH] ALSA: hda: add CSC3551 support for UM5302TA xhe 2022-07-04 10:15 ` Lucas Tanure 2022-07-04 10:15 ` Lucas Tanure 2022-07-04 11:05 ` He X 2022-07-04 11:53 ` Lucas Tanure
Reply instructions: You may reply publicly to this message via plain-text email using any one of the following methods: * Save the following mbox file, import it into your mail client, and reply-to-all from there: mbox Avoid top-posting and favor interleaved quoting: https://en.wikipedia.org/wiki/Posting_style#Interleaved_style * Reply using the --to, --cc, and --in-reply-to switches of git-send-email(1): git send-email \ --in-reply-to=20220703053225.2203-1-xw897002528@gmail.com \ --to=xw897002528@gmail.com \ --cc=alsa-devel@alsa-project.org \ --cc=andy.chi@canonical.com \ --cc=cam@neo-zeon.de \ --cc=david.rhodes@cirrus.com \ --cc=james.schulman@cirrus.com \ --cc=kai.heng.feng@canonical.com \ --cc=kailang@realtek.com \ --cc=linux-kernel@vger.kernel.org \ --cc=lxy.lixiaoyan@gmail.com \ --cc=patches@opensource.cirrus.com \ --cc=perex@perex.cz \ --cc=rf@opensource.cirrus.com \ --cc=sbinding@opensource.cirrus.com \ --cc=tanureal@opensource.cirrus.com \ --cc=tcrawford@system76.com \ --cc=tiwai@suse.com \ --cc=wse@tuxedocomputers.com \ --cc=yong.wu@mediatek.com \ /path/to/YOUR_REPLY https://kernel.org/pub/software/scm/git/docs/git-send-email.html * If your mail client supports setting the In-Reply-To header via mailto: links, try the mailto: linkBe sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes, see mirroring instructions on how to clone and mirror all data and code used by this external index.