OSDN Git Service

ucm: add ${find-card} and ${find-device} substitutions
authorJaroslav Kysela <perex@perex.cz>
Tue, 2 Feb 2021 18:26:24 +0000 (19:26 +0100)
committerJaroslav Kysela <perex@perex.cz>
Wed, 3 Feb 2021 10:42:56 +0000 (11:42 +0100)
commit296b067fc75b5da26062d4e64e7a2b4fdf86c75c
treed48216b603d5c53beb7b582f7556fbc3ea1d5f3b
parent00eafe98eebff8ecd1ecdc58470068bfd610cc8d
ucm: add ${find-card} and ${find-device} substitutions

It may be useful to find a correct card or device through
control API information fields.

Increase the syntax version to 4.

Examples:

  ${find-card:field=name,regex='HDA Intel'}
  ${find-device:type=pcm,field=id,regex='HDMI 1$'}
  ${find-device:ctl=hw:acp,type=pcm,field=id,regex=DMIC}

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