OSDN Git Service

ucm: extend snd_use_case_mgr_open() to address the sound card directly
authorJaroslav Kysela <perex@perex.cz>
Sun, 3 Nov 2019 18:05:54 +0000 (19:05 +0100)
committerJaroslav Kysela <perex@perex.cz>
Sun, 10 Nov 2019 12:10:43 +0000 (13:10 +0100)
commitbe6deb927fff84ee591a9c91758658147f6a856b
tree3136a0be21ec00042774d0e16679e9c277e5bd94
parentaba2260ae7b528f721f2ed2bf490fd3f740ad2e6
ucm: extend snd_use_case_mgr_open() to address the sound card directly

Some clients like pulseaudio wants to access the multiple instances
of sound cards. This patch adds prefixes like "hw:" to the card_name
argument to handle this. The card index (value) or card identification
(string) can be used for this prefix.

Also the prefix "strict:" was added to avoid the driver name and
driver long name matching. It might be useable for use case
configurations which are not bound to the one sound card.

Signed-off-by: Jaroslav Kysela <perex@perex.cz>
include/use-case.h
src/ucm/parser.c