mirror of
https://github.com/alsa-project/alsa-lib.git
synced 2025-11-05 13:30:00 -05:00
ucm: implement sysset sequence command
Signed-off-by: Jaroslav Kysela <perex@perex.cz>
This commit is contained in:
parent
2b418648cf
commit
1c6fb20232
5 changed files with 107 additions and 9 deletions
|
|
@ -49,6 +49,16 @@ void uc_mgr_stdout(const char *fmt,...)
|
|||
va_end(va);
|
||||
}
|
||||
|
||||
const char *uc_mgr_sysfs_root(void)
|
||||
{
|
||||
const char *e = getenv("SYSFS_PATH");
|
||||
if (e == NULL)
|
||||
return "/sys";
|
||||
if (*e == '\0')
|
||||
uc_error("no sysfs root!");
|
||||
return e;
|
||||
}
|
||||
|
||||
struct ctl_list *uc_mgr_get_master_ctl(snd_use_case_mgr_t *uc_mgr)
|
||||
{
|
||||
struct list_head *pos;
|
||||
|
|
@ -479,6 +489,9 @@ void uc_mgr_free_sequence_element(struct sequence_element *seq)
|
|||
case SEQUENCE_ELEMENT_TYPE_CSET_TLV:
|
||||
free(seq->data.cset);
|
||||
break;
|
||||
case SEQUENCE_ELEMENT_TYPE_SYSSET:
|
||||
free(seq->data.sysset);
|
||||
break;
|
||||
case SEQUENCE_ELEMENT_TYPE_EXEC:
|
||||
free(seq->data.exec);
|
||||
break;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue