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>,
	Mengdong Lin <mengdong.lin@intel.com>,
	Mark Brown <broonie@kernel.org>,
	Liam Girdwood <liam.r.girdwood@linux.intel.com>
Subject: [PATCH 3/3] topology: add support for adding bytes controls to widgets
Date: Fri,  7 Aug 2015 17:03:54 +0100	[thread overview]
Message-ID: <1438963434-6407-4-git-send-email-liam.r.girdwood@linux.intel.com> (raw)
In-Reply-To: <1438963434-6407-1-git-send-email-liam.r.girdwood@linux.intel.com>

From: Mengdong Lin <mengdong.lin@intel.com>

Widgets can now contain byte controls.

Signed-off-by: Mengdong Lin <mengdong.lin@intel.com>
Signed-off-by: Liam Girdwood <liam.r.girdwood@linux.intel.com>
---
 src/topology/dapm.c | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/src/topology/dapm.c b/src/topology/dapm.c
index 25d11d7..4217211 100644
--- a/src/topology/dapm.c
+++ b/src/topology/dapm.c
@@ -160,6 +160,10 @@ static int tplg_build_widget(snd_tplg_t *tplg,
 				err = copy_dapm_control(elem, ref->elem);
 			break;
 
+		case SND_TPLG_TYPE_BYTES:
+			if (!ref->elem)
+				ref->elem = tplg_elem_lookup(&tplg->bytes_ext_list,
+						ref->id, SND_TPLG_TYPE_BYTES);
 			if (ref->elem)
 				err = copy_dapm_control(elem, ref->elem);
 			break;
-- 
2.1.4

      parent reply	other threads:[~2015-08-07 16:04 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-08-07 16:03 [PATCH 0/3] topology: Add external API for building topology data Liam Girdwood
2015-08-07 16:03 ` [PATCH 1/3] topology: Add C templates structure for building topology from C programs Liam Girdwood
2015-08-07 16:14   ` Takashi Iwai
2015-08-10 10:23     ` Liam Girdwood
2015-08-07 16:03 ` [PATCH 2/3] topology: A API calls to directly build topology data from templates Liam Girdwood
2015-08-07 16:03 ` Liam Girdwood [this message]

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=1438963434-6407-4-git-send-email-liam.r.girdwood@linux.intel.com \
    --to=liam.r.girdwood@linux.intel.com \
    --cc=alsa-devel@alsa-project.org \
    --cc=broonie@kernel.org \
    --cc=mengdong.lin@intel.com \
    --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.