* [PATCH] ALSA: hda/realtek: Fixup ft alc257 rename alc3328
@ 2025-06-16 7:45 wangdicheng
2025-06-16 7:53 ` Takashi Iwai
0 siblings, 1 reply; 2+ messages in thread
From: wangdicheng @ 2025-06-16 7:45 UTC (permalink / raw)
To: lgirdwood, broonie, perex, tiwai
Cc: linux-kernel, alsa-devel, linux-arm-kernel, wangdicheng, wangdicheng
Audio ALC3328 recognized as ALC257, updated PCI ID0x10EC12F0 to rename it to 3328
Signed-off-by: wangdicheng <wangdicheng@kylinos.cn>
---
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 d3c9ed963588..e18b2a2acba8 100644
--- a/sound/pci/hda/patch_realtek.c
+++ b/sound/pci/hda/patch_realtek.c
@@ -6712,6 +6712,13 @@ static void alc_fixup_disable_mic_vref(struct hda_codec *codec,
snd_hda_codec_set_pin_target(codec, 0x19, PIN_VREFHIZ);
}
+static void alc_fixup_ft_alc257_rename(struct hda_codec *codec,
+ const struct hda_fixup *fix, int action)
+{
+ int err;
+ if (action == HDA_FIXUP_ACT_PRE_PROBE)
+ err = alc_codec_rename(codec, "ALC3328");
+}
static void alc294_gx502_toggle_output(struct hda_codec *codec,
struct hda_jack_callback *cb)
@@ -7799,6 +7806,7 @@ enum {
ALC269_FIXUP_VAIO_VJFH52_MIC_NO_PRESENCE,
ALC233_FIXUP_MEDION_MTL_SPK,
ALC294_FIXUP_BASS_SPEAKER_15,
+ ALC257_FIXUP_FT_RENAME,
};
/* A special fixup for Lenovo C940 and Yoga Duet 7;
@@ -10143,6 +10151,10 @@ static const struct hda_fixup alc269_fixups[] = {
.type = HDA_FIXUP_FUNC,
.v.func = alc294_fixup_bass_speaker_15,
},
+ [ALC257_FIXUP_FT_RENAME] = {
+ .type = HDA_FIXUP_FUNC,
+ .v.func = alc_fixup_ft_alc257_rename,
+ },
};
static const struct hda_quirk alc269_fixup_tbl[] = {
@@ -10715,6 +10727,7 @@ static const struct hda_quirk alc269_fixup_tbl[] = {
SND_PCI_QUIRK(0x10cf, 0x1757, "Lifebook E752", ALC269_FIXUP_LIFEBOOK_HP_PIN),
SND_PCI_QUIRK(0x10cf, 0x1845, "Lifebook U904", ALC269_FIXUP_LIFEBOOK_EXTMIC),
SND_PCI_QUIRK(0x10ec, 0x10f2, "Intel Reference board", ALC700_FIXUP_INTEL_REFERENCE),
+ SND_PCI_QUIRK(0x10ec, 0x12f0, "BXC NF271B FT board", ALC257_FIXUP_FT_RENAME),
SND_PCI_QUIRK(0x10ec, 0x118c, "Medion EE4254 MD62100", ALC256_FIXUP_MEDION_HEADSET_NO_PRESENCE),
SND_PCI_QUIRK(0x10ec, 0x119e, "Positivo SU C1400", ALC269_FIXUP_ASPIRE_HEADSET_MIC),
SND_PCI_QUIRK(0x10ec, 0x11bc, "VAIO VJFE-IL", ALC269_FIXUP_LIMIT_INT_MIC_BOOST),
--
2.25.1
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: [PATCH] ALSA: hda/realtek: Fixup ft alc257 rename alc3328
2025-06-16 7:45 [PATCH] ALSA: hda/realtek: Fixup ft alc257 rename alc3328 wangdicheng
@ 2025-06-16 7:53 ` Takashi Iwai
0 siblings, 0 replies; 2+ messages in thread
From: Takashi Iwai @ 2025-06-16 7:53 UTC (permalink / raw)
To: wangdicheng
Cc: lgirdwood, broonie, perex, tiwai, linux-kernel, alsa-devel,
linux-arm-kernel, wangdicheng
On Mon, 16 Jun 2025 09:45:20 +0200,
wangdicheng wrote:
>
> Audio ALC3328 recognized as ALC257, updated PCI ID0x10EC12F0 to rename it to 3328
>
> Signed-off-by: wangdicheng <wangdicheng@kylinos.cn>
Try to fix up via either rename_tbl[] or rename_pci_tbl[] instead.
thanks,
Takashi
> ---
> 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 d3c9ed963588..e18b2a2acba8 100644
> --- a/sound/pci/hda/patch_realtek.c
> +++ b/sound/pci/hda/patch_realtek.c
> @@ -6712,6 +6712,13 @@ static void alc_fixup_disable_mic_vref(struct hda_codec *codec,
> snd_hda_codec_set_pin_target(codec, 0x19, PIN_VREFHIZ);
> }
>
> +static void alc_fixup_ft_alc257_rename(struct hda_codec *codec,
> + const struct hda_fixup *fix, int action)
> +{
> + int err;
> + if (action == HDA_FIXUP_ACT_PRE_PROBE)
> + err = alc_codec_rename(codec, "ALC3328");
> +}
>
> static void alc294_gx502_toggle_output(struct hda_codec *codec,
> struct hda_jack_callback *cb)
> @@ -7799,6 +7806,7 @@ enum {
> ALC269_FIXUP_VAIO_VJFH52_MIC_NO_PRESENCE,
> ALC233_FIXUP_MEDION_MTL_SPK,
> ALC294_FIXUP_BASS_SPEAKER_15,
> + ALC257_FIXUP_FT_RENAME,
> };
>
> /* A special fixup for Lenovo C940 and Yoga Duet 7;
> @@ -10143,6 +10151,10 @@ static const struct hda_fixup alc269_fixups[] = {
> .type = HDA_FIXUP_FUNC,
> .v.func = alc294_fixup_bass_speaker_15,
> },
> + [ALC257_FIXUP_FT_RENAME] = {
> + .type = HDA_FIXUP_FUNC,
> + .v.func = alc_fixup_ft_alc257_rename,
> + },
> };
>
> static const struct hda_quirk alc269_fixup_tbl[] = {
> @@ -10715,6 +10727,7 @@ static const struct hda_quirk alc269_fixup_tbl[] = {
> SND_PCI_QUIRK(0x10cf, 0x1757, "Lifebook E752", ALC269_FIXUP_LIFEBOOK_HP_PIN),
> SND_PCI_QUIRK(0x10cf, 0x1845, "Lifebook U904", ALC269_FIXUP_LIFEBOOK_EXTMIC),
> SND_PCI_QUIRK(0x10ec, 0x10f2, "Intel Reference board", ALC700_FIXUP_INTEL_REFERENCE),
> + SND_PCI_QUIRK(0x10ec, 0x12f0, "BXC NF271B FT board", ALC257_FIXUP_FT_RENAME),
> SND_PCI_QUIRK(0x10ec, 0x118c, "Medion EE4254 MD62100", ALC256_FIXUP_MEDION_HEADSET_NO_PRESENCE),
> SND_PCI_QUIRK(0x10ec, 0x119e, "Positivo SU C1400", ALC269_FIXUP_ASPIRE_HEADSET_MIC),
> SND_PCI_QUIRK(0x10ec, 0x11bc, "VAIO VJFE-IL", ALC269_FIXUP_LIMIT_INT_MIC_BOOST),
> --
> 2.25.1
>
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2025-06-16 7:53 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2025-06-16 7:45 [PATCH] ALSA: hda/realtek: Fixup ft alc257 rename alc3328 wangdicheng
2025-06-16 7:53 ` Takashi Iwai
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®