[alsa-devel] link between HDMI ELD and PCM devices

Pierre-Louis Bossart pierre-louis.bossart at linux.intel.com
Wed Sep 21 15:20:04 CEST 2011

> This won't work - in the case of several HDMI codecs (common with
> NVidia) there will be more than one "HDMI 0".

No, the code doesn't use a constant, it's assigned in the same way as the
device name. You would have HDMI 0, HDMI 1..4. I don't have this kind of
hardware, it'd be good if someone could verify that the name is indeed

> The solution is to actually find the device number out, like this:
> 	struct hdmi_spec *spec = codec->spec;
> 	int pcmdev = spec->pcm_rec[pin_idx].device;

That's what I wanted initially, but this device field is not
used/initialized, and like I said the device assignment comes after the pin
sensing and all the ELD handling

More information about the Alsa-devel mailing list