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:
Wim Taymans 2023-03-23 13:24:22 +01:00
parent 2a29e7b9e2
commit 25f5165e4c

View file

@ -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) {