The card: devices do not exist. Do not return -ENOENT,
but -EINVAL in this case.
Fixes: https://github.com/alsa-project/alsa-lib/issues/277
Signed-off-by: Jaroslav Kysela <perex@perex.cz>
list.siface = iface;
list.show_all = 0;
list.cardname = NULL;
- if (strcmp(iface, "card") == 0)
- list.iface = SND_CTL_ELEM_IFACE_CARD;
- else if (strcmp(iface, "pcm") == 0)
+ if (strcmp(iface, "pcm") == 0)
list.iface = SND_CTL_ELEM_IFACE_PCM;
else if (strcmp(iface, "rawmidi") == 0)
list.iface = SND_CTL_ELEM_IFACE_RAWMIDI;