]> git.alsa-project.org Git - alsa-ucm-conf.git/commit
ucm2: common: pcm: Add hdmi.conf to handle the creation
authorPeter Ujfalusi <peter.ujfalusi@linux.intel.com>
Wed, 24 Apr 2024 10:34:13 +0000 (13:34 +0300)
committerJaroslav Kysela <perex@perex.cz>
Mon, 29 Apr 2024 13:36:17 +0000 (15:36 +0200)
commita3e1786a2025663ef9da74c9f7f2d0ecf876c0e2
tree8baa0d1227d8709cd9ed34f1805b1647abdd02cb
parent035d9206cffdf7942352d2daf3c34dde491c01dc
ucm2: common: pcm: Add hdmi.conf to handle the creation

User space expect to see hdmi: PCM devices to be able to use bytestream
passthrough.

The common/pcm/hdmi.conf provides two macros:
HdmiPCM: to generate an ALSA conf section for an hdmi: PCM device
HdmiPCMSave: to save the generated config

Example of use (sof-hda-dsp card with hardware HDMI PCMs: 3-5):
Macro.0.HdmiPCM { Device 3 Index 0 }
Macro.1.HdmiPCM { Device 4 Index 1 }
Macro.2.HdmiPCM { Device 5 Index 2 }
Macro.3.HdmiPCMSave { }

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/common/pcm/hdmi.conf [new file with mode: 0644]