mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2025-10-29 05:40:27 -04:00
acp: return EEXIST when seeing a linked device
Otherwise we get ENOENT, which is confusing because it is the same error when the plugin doesn't exist. See #2016
This commit is contained in:
parent
2a29e7b9e2
commit
25f5165e4c
1 changed files with 1 additions and 1 deletions
|
|
@ -1593,7 +1593,7 @@ struct acp_card *acp_card_new(uint32_t index, const struct acp_dict *props)
|
|||
|
||||
res = impl->use_ucm ? pa_alsa_ucm_query_profiles(&impl->ucm, card->index) : -1;
|
||||
if (res == -PA_ALSA_ERR_UCM_LINKED) {
|
||||
res = -ENOENT;
|
||||
res = -EEXIST;
|
||||
goto error;
|
||||
}
|
||||
if (res == 0) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue