All of lore.kernel.org
 help / color / mirror / Atom feed
From: Liam Girdwood <liam.r.girdwood@linux.intel.com>
To: alsa-devel@alsa-project.org
Cc: Takashi Iwai <tiwai@suse.de>,
	Liam Girdwood <liam.r.girdwood@linux.intel.com>
Subject: [PATCH] topology: Add ops to bytes control.
Date: Mon, 14 Mar 2016 08:07:35 +0000	[thread overview]
Message-ID: <1457942858-5652-2-git-send-email-liam.r.girdwood@linux.intel.com> (raw)
In-Reply-To: <1457942858-5652-1-git-send-email-liam.r.girdwood@linux.intel.com>

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(+)

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

  reply	other threads:[~2016-03-14  8:08 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-03-14  8:07 [PATCH] topology: fix debug output to print correct "max" value Liam Girdwood
2016-03-14  8:07 ` Liam Girdwood [this message]
2016-03-14 15:58   ` [PATCH] topology: Add ops to bytes control Takashi Iwai
2016-03-14  8:07 ` [PATCH] topology: add support for pasring external ops in conf files Liam Girdwood
2016-03-14 15:58   ` Takashi Iwai
2016-03-14  8:07 ` [PATCH] topology: add support for CTL access flags to config file Liam Girdwood
2016-03-14 15:58   ` Takashi Iwai
2016-03-14  8:07 ` [PATCH] topology: Add support for widget byte controls Liam Girdwood
2016-03-14 15:58   ` Takashi Iwai
2016-03-14 15:56 ` [PATCH] topology: fix debug output to print correct "max" value Takashi Iwai

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1457942858-5652-2-git-send-email-liam.r.girdwood@linux.intel.com \
    --to=liam.r.girdwood@linux.intel.com \
    --cc=alsa-devel@alsa-project.org \
    --cc=tiwai@suse.de \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.