]> git.alsa-project.org Git - alsa-lib.git/commit
ucm: implement CardNumberByName substitution
authorJaroslav Kysela <perex@perex.cz>
Thu, 18 Jun 2020 14:20:21 +0000 (16:20 +0200)
committerJaroslav Kysela <perex@perex.cz>
Thu, 18 Jun 2020 14:21:16 +0000 (16:21 +0200)
commit68d3cbfbc3f1149582afb0523e16bc4415aa6dd2
tree81a6240531944cf28c5ba213feb4200c100745b5
parentf0276cc0bd5de2c43ae7c1e28ba0124c9881a51e
ucm: implement CardNumberByName substitution

The syntax is ${CardNumberByName:CARDNAME[#INDEX]}.

The CARDNAME is the ALSA's soundcard name (short form).
The INDEX is the instance (0 = first, 1 = second etc.).

Example: ${CardNumberByName:HDA Intel PCH}
(which is identical to ${CardNumberByName:HDA Intel PCH#0})

Signed-off-by: Jaroslav Kysela <perex@perex.cz>
src/ucm/ucm_subs.c