From: Takashi Iwai Subject: Re: [PATCH] topology: Add ops to bytes control. Date: Mon, 14 Mar 2016 16:58:19 +0100 Message-ID: References: <1457942858-5652-1-git-send-email-liam.r.girdwood@linux.intel.com> <1457942858-5652-2-git-send-email-liam.r.girdwood@linux.intel.com> Mime-Version: 1.0 (generated by SEMI 1.14.6 - "Maruoka") Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: Received: from mx2.suse.de (mx2.suse.de [195.135.220.15]) by alsa0.perex.cz (Postfix) with ESMTP id 76066265173 for ; Mon, 14 Mar 2016 16:58:20 +0100 (CET) In-Reply-To: <1457942858-5652-2-git-send-email-liam.r.girdwood@linux.intel.com> List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: alsa-devel-bounces@alsa-project.org Sender: alsa-devel-bounces@alsa-project.org To: Liam Girdwood Cc: alsa-devel@alsa-project.org List-Id: alsa-devel@alsa-project.org 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 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 >