Re: [PATCH 1/2] ALSA: hda/hdmi: Add helper function to check if a device is HDMI codec

Péter Ujfalusi
2023-11-28T09:53:24Z

On 28/11/2023 11:39, Takashi Iwai wrote:
> Hm... I still find it's a bad move to use an exported symbol from
> another codec driver.

The other option is to check for 0x4 (or address 2), but I'm not sure if
this is Intel only or universally true for HDMI codecs.

> And, I wonder what if you have a system that has only one HDMI codec
> without analog one? Would it still work with your change?

Yes, it works with only HDMI codec (for example on SoundWire laptops) or
with UP2 board which only have HDMI audio support by default.

It also works if we disable HDMI and only have analog codec.

--
Péter