Linux Sound subsystem development
 help / color / mirror / Atom feed
* PCI SSID and Codec SSID collision?
@ 2024-02-23 12:05 Gergo Koteles
  2024-02-23 13:57 ` Takashi Iwai
  0 siblings, 1 reply; 7+ messages in thread
From: Gergo Koteles @ 2024-02-23 12:05 UTC (permalink / raw)
  To: linux-sound, alsa-devel

Hi,

The Lenovo Yoga Slim Pro 9 14IRP8 has tas2781 amplifiers, but it can
only pickup its fixup with the hda_model=17aa:38be module parameter.

The 17aa:38be is the SSID of its Codec. The PCI SSID is 17aa:3802.

The patch_realtek.c has these fixup:
SND_PCI_QUIRK(0x17aa, 0x3802, "Lenovo Yoga DuetITL 2021",
ALC287_FIXUP_YOGA7_14ITL_SPEAKERS),
SND_PCI_QUIRK(0x17aa, 0x38be, "Yoga S980-14.5 proX YC Dual",
ALC287_FIXUP_TAS2781_I2C),

And the snd_hda_pick_fixup() picks the former fixup because of the same
PCI SSID, but that is a Codec SSID?

At least it worked without that line.
https://bugzilla.kernel.org/show_bug.cgi?id=208555#c839

It would be nice if it can be work without the module parameter.

What is the best way to add this strangeness to patch_realtek.c?

Thanks,
Gergo


^ permalink raw reply	[flat|nested] 7+ messages in thread
* Re: PCI SSID and Codec SSID collision?
@ 2024-02-23 14:41 Willian Wang
  2024-02-23 14:52 ` Takashi Iwai
  2024-02-23 15:10 ` Gergo Koteles
  0 siblings, 2 replies; 7+ messages in thread
From: Willian Wang @ 2024-02-23 14:41 UTC (permalink / raw)
  To: tiwai; +Cc: alsa-devel, linux-sound, soyer

Hi, I'm curious about the reasons for the fixup table to be the same
for PCI and Codec SSIDs and if the PCI SSID is usually more important
for it to be checked before the Codec. Anyway, would a simple
conditional statement to match these exact PCI and Codec SSID to set
the fixup manually be enough? There seems to already exist a manual
fix for TX300 and ROG Strix G17 there (not the same kind of fix and
with a FIXME comment, though). I have this exact laptop model and
would like to try to contribute to the code if it's not too
complicated.


^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2024-02-24  8:35 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-02-23 12:05 PCI SSID and Codec SSID collision? Gergo Koteles
2024-02-23 13:57 ` Takashi Iwai
  -- strict thread matches above, loose matches on Subject: below --
2024-02-23 14:41 Willian Wang
2024-02-23 14:52 ` Takashi Iwai
2024-02-23 15:10 ` Gergo Koteles
2024-02-23 21:55   ` Willian Wang
2024-02-24  8:35     ` Takashi Iwai

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox