]> git.alsa-project.org Git - alsa-ucm-conf.git/commit
ucm2: sof-soundwire: Create ALSA config file for hdmi:
authorPeter Ujfalusi <peter.ujfalusi@linux.intel.com>
Thu, 11 Apr 2024 12:07:30 +0000 (15:07 +0300)
committerJaroslav Kysela <perex@perex.cz>
Mon, 29 Apr 2024 13:36:17 +0000 (15:36 +0200)
commit2740b6c157c048deb950fd6e5792204568019034
tree9b6ee18f0d81d674564b65e354cab57b7781a2b5
parenta4115e80722671d90acb538eac6c1195e98b9334
ucm2: sof-soundwire: Create ALSA config file for hdmi:

If the HDMI PCM index (3-5) is found in iec61937-pcm list of the card's
components list then use the HdmiPCM/HdmiPCMSave macros to create the
configuration file.

The PCMs that will be created are:
aplay -L | grep hdmi

hdmi:CARD=sofsoundwire,DEV=0
hdmi:CARD=sofsoundwire,DEV=1
hdmi:CARD=sofsoundwire,DEV=2

Audio servers (Pulseaudio, Pipewrire) or applications then can use these for
bytestream passthrough, for example:
mplayer -ao alsa:device=hdmi=sofsoundwire,DEV=0 -ac hwdts <video with dts>

Closes: https://github.com/alsa-project/alsa-ucm-conf/pull/411
Signed-off-by: Peter Ujfalusi <peter.ujfalusi@linux.intel.com>
Signed-off-by: Jaroslav Kysela <perex@perex.cz>
ucm2/sof-soundwire/sof-soundwire.conf