From: Liam Girdwood Date: Mon, 14 Mar 2016 08:07:35 +0000 (+0000) Subject: topology: Add ops to bytes control. X-Git-Tag: v1.1.1~4 X-Git-Url: https://git.alsa-project.org/?a=commitdiff_plain;h=65cb4ffe3c759c8089979a6d84da984a0c266c16;p=alsa-lib.git topology: Add ops to bytes control. Byte controls can also support ops. Add them to the parser. Signed-off-by: Liam Girdwood Signed-off-by: Takashi Iwai --- diff --git a/src/topology/ctl.c b/src/topology/ctl.c index c2502272..a8ac3982 100644 --- a/src/topology/ctl.c +++ b/src/topology/ctl.c @@ -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;