]> git.alsa-project.org Git - alsa-lib.git/commitdiff
ucm: fix variable mixup
authorTanu Kaskinen <tanu.kaskinen@linux.intel.com>
Tue, 10 Feb 2015 20:42:32 +0000 (22:42 +0200)
committerTakashi Iwai <tiwai@suse.de>
Wed, 11 Feb 2015 11:27:54 +0000 (12:27 +0100)
I assume the intention was to use cdev1 for PlaybackCTL and cdev2 for
CaptureCTL, but cdev1 was being used for both and cdev2 was not used
for anything.

Signed-off-by: Takashi Iwai <tiwai@suse.de>
src/ucm/main.c

index 182f17476cbef8118ff7b9b85774d3fd297dcb4d..3924aee0b2e69219edcdfd944936e381cba04c25 100644 (file)
@@ -308,7 +308,7 @@ static int execute_sequence(snd_use_case_mgr_t *uc_mgr,
                                        uc_error("cdev is not defined!");
                                        return err;
                                }
-                               err = get_value3(&cdev1, "CaptureCTL",
+                               err = get_value3(&cdev2, "CaptureCTL",
                                                 value_list1,
                                                 value_list2,
                                                 value_list3);