]> git.alsa-project.org Git - alsa-lib.git/commitdiff
topology: Add ops to bytes control.
authorLiam Girdwood <liam.r.girdwood@linux.intel.com>
Mon, 14 Mar 2016 08:07:35 +0000 (08:07 +0000)
committerTakashi Iwai <tiwai@suse.de>
Mon, 14 Mar 2016 15:56:26 +0000 (16:56 +0100)
Byte controls can also support ops. Add them to the parser.

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

index c25022728e51b08362f91e1deaabcfeb8e2b25f1..a8ac398250c07b90597581b9f4385c8daeefde54 100644 (file)
@@ -385,6 +385,14 @@ int tplg_parse_control_bytes(snd_tplg_t *tplg,
                        tplg_dbg("\t%s: %s\n", id, val);
                        continue;
                }
+
+               if (strcmp(id, "ops") == 0) {
+                       err = tplg_parse_compound(tplg, n, tplg_parse_ops,
+                               &be->hdr);
+                       if (err < 0)
+                               return err;
+                       continue;
+               }
        }
 
        return 0;