OSDN Git Service

amixer: Fix the hctl elem search bug
authorJaroslav Kysela <perex@perex.cz>
Mon, 27 May 2013 14:40:26 +0000 (16:40 +0200)
committerJaroslav Kysela <perex@perex.cz>
Mon, 27 May 2013 14:40:26 +0000 (16:40 +0200)
Signed-off-by: Jaroslav Kysela <perex@perex.cz>
amixer/amixer.c

index 2f1521b..92b0f83 100644 (file)
@@ -1105,6 +1105,7 @@ static int cset(int argc, char *argv[], int roflag, int keep_handle)
                }
                return err;
        }
+       snd_ctl_elem_info_get_id(info, id);     /* FIXME: Remove it when hctl find works ok !!! */
        if (!roflag) {
                snd_ctl_elem_value_set_id(control, id);
                if ((err = snd_ctl_elem_read(handle, control)) < 0) {