mirror of
https://github.com/alsa-project/alsa-lib.git
synced 2025-11-04 13:30:08 -05:00
ucm: remove strict: in ${OpenName} substitution
Signed-off-by: Jaroslav Kysela <perex@perex.cz>
This commit is contained in:
parent
e1777ee1a1
commit
9b5fde5054
2 changed files with 7 additions and 4 deletions
|
|
@ -31,10 +31,15 @@
|
|||
|
||||
static char *rval_open_name(snd_use_case_mgr_t *uc_mgr)
|
||||
{
|
||||
const char *name;
|
||||
if (uc_mgr->conf_format < 3)
|
||||
return NULL;
|
||||
if (uc_mgr->card_name && uc_mgr->card_name[0])
|
||||
return strdup(uc_mgr->card_name);
|
||||
name = uc_mgr->card_name;
|
||||
if (name) {
|
||||
if (strncmp(name, "strict:", 7) == 0)
|
||||
name += 7;
|
||||
return strdup(name);
|
||||
}
|
||||
return NULL;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue