mirror of
https://github.com/alsa-project/alsa-lib.git
synced 2025-11-01 22:58:49 -04:00
ucm: implemented card list feature
- also added some test files to test/ucm tree Signed-off-by: Jaroslav Kysela <perex@perex.cz>
This commit is contained in:
parent
3a34394508
commit
e820866637
6 changed files with 134 additions and 27 deletions
|
|
@ -561,16 +561,6 @@ int snd_use_case_mgr_reset(snd_use_case_mgr_t *uc_mgr)
|
|||
return err;
|
||||
}
|
||||
|
||||
/**
|
||||
* \brief Get list of cards in pair cardname+comment
|
||||
* \param list Returned list
|
||||
* \return Number of list entries if success, otherwise a negative error code
|
||||
*/
|
||||
static int get_card_list(const char **list[])
|
||||
{
|
||||
return -ENXIO; /* Not Yet Implemented */
|
||||
}
|
||||
|
||||
/**
|
||||
* \brief Get list of verbs in pair verbname+comment
|
||||
* \param list Returned list
|
||||
|
|
@ -780,7 +770,7 @@ int snd_use_case_get_list(snd_use_case_mgr_t *uc_mgr,
|
|||
int err;
|
||||
|
||||
if (uc_mgr == NULL || identifier == NULL)
|
||||
return get_card_list(list);
|
||||
return uc_mgr_scan_master_configs(list);
|
||||
pthread_mutex_lock(&uc_mgr->mutex);
|
||||
if (strcmp(identifier, "_verbs") == 0)
|
||||
err = get_verb_list(uc_mgr, list);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue