]> git.alsa-project.org Git - alsa-lib.git/commitdiff
topology: fix debug output to print correct "max" value.
authorLiam Girdwood <liam.r.girdwood@linux.intel.com>
Mon, 1 Feb 2016 14:20:44 +0000 (14:20 +0000)
committerTakashi Iwai <tiwai@suse.de>
Mon, 1 Feb 2016 15:28:01 +0000 (16:28 +0100)
Debug log is printing num_regs instead of max in the max section.

Signed-off-by: Liam Girdwood <liam.r.girdwood@linux.intel.com>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
src/topology/ctl.c

index 1c073f7cc32a1fe37dfc4b9d87eda6e95b1929d3..c25022728e51b08362f91e1deaabcfeb8e2b25f1 100644 (file)
@@ -350,7 +350,7 @@ int tplg_parse_control_bytes(snd_tplg_t *tplg,
                                return -EINVAL;
 
                        be->max = atoi(val);
-                       tplg_dbg("\t%s: %d\n", id, be->num_regs);
+                       tplg_dbg("\t%s: %d\n", id, be->max);
                        continue;
                }