mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2025-10-31 22:25:38 -04:00
acp: don't use the card index for alibpref
The alibpref fallback does not contain the card number but it is a local counter instead. Just check if it starts with something in case the alsa library is not patched to return _alibpref.
This commit is contained in:
parent
461ae02c50
commit
23a0f29d48
1 changed files with 1 additions and 1 deletions
|
|
@ -247,7 +247,7 @@ static void init_device(pa_card *impl, pa_alsa_device *dev, pa_alsa_direction_t
|
|||
if ((snd_use_case_get(impl->ucm.ucm_mgr, "_alibpref", &alibpref) != 0))
|
||||
alibpref = NULL;
|
||||
if (alibpref == NULL)
|
||||
alibpref = spa_aprintf("_ucm%04X.", impl->card.index);
|
||||
alibpref = strdup("_ucm");
|
||||
if (alibpref != NULL) {
|
||||
char **d;
|
||||
for (d = m->device_strings; *d; d++) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue