ALSA: ctl: change return value in compatibility layer so that it's the same value...
[cascardo/linux.git] / sound / core / control_compat.c
index 0608f21..1fa7076 100644 (file)
@@ -196,7 +196,7 @@ static int get_ctl_type(struct snd_card *card, struct snd_ctl_elem_id *id,
        kctl = snd_ctl_find_id(card, id);
        if (! kctl) {
                up_read(&card->controls_rwsem);
-               return -ENXIO;
+               return -ENOENT;
        }
        info = kzalloc(sizeof(*info), GFP_KERNEL);
        if (info == NULL) {