diff mbox

topology: Add ops to bytes control.

Message ID 1457942858-5652-2-git-send-email-liam.r.girdwood@linux.intel.com (mailing list archive)
State New, archived
Headers show

Commit Message

Liam Girdwood March 14, 2016, 8:07 a.m. UTC
Byte controls can also support ops. Add them to the parser.

Signed-off-by: Liam Girdwood <liam.r.girdwood@linux.intel.com>
---
 src/topology/ctl.c | 8 ++++++++
 1 file changed, 8 insertions(+)

Comments

Takashi Iwai March 14, 2016, 3:58 p.m. UTC | #1
On Mon, 14 Mar 2016 09:07:35 +0100,
Liam Girdwood wrote:
> 
> Byte controls can also support ops. Add them to the parser.
> 
> Signed-off-by: Liam Girdwood <liam.r.girdwood@linux.intel.com>

Applied, thanks.


Takashi

> ---
>  src/topology/ctl.c | 8 ++++++++
>  1 file changed, 8 insertions(+)
> 
> diff --git a/src/topology/ctl.c b/src/topology/ctl.c
> index c250227..a8ac398 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;
> -- 
> 2.5.0
>
diff mbox

Patch

diff --git a/src/topology/ctl.c b/src/topology/ctl.c
index c250227..a8ac398 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;