On 11. 04. 24 15:15, Péter Ujfalusi wrote:
[B] Using UCM https://github.com/ujfalusi/alsa-ucm-conf/tree/topic/sof-hdmi
This is only way to go. The configuration for "legacy" PCM device names should be handled through UCM (when UCM config exists for this hw).
Should we add some parameter to 'amixer -c0 info', like ipc_version:4/3, so if the ipc_version is 3 or missing we assume that passthrough is not supported?
UCM must be able to detect sound card capabilities. For passthrough, there should be some controls for AES bits which may be used for the conditional matching. If it's not sufficient, a hint to the components string (mixer info structure) may be added by the driver. Also PCM name or subname may be matched for a substring, if you like (seems more related than the components string).
Jaroslav -- Jaroslav Kysela <perex@xxxxxxxx> Linux Sound Maintainer; ALSA Project; Red Hat, Inc.