From: Vinod Koul <vinod.koul@intel.com>
To: Mark Brown <broonie@kernel.org>
Cc: alsa-devel@alsa-project.org, Lars-Peter Clausen <lars@metafoo.de>,
"Subhransu S. Prusty" <subhransu.s.prusty@intel.com>,
lgirdwood@gmail.com
Subject: Re: [PATCH v2 11/13] ASoC: Intel: mrfld: add the DSP DAPM widgets
Date: Thu, 24 Jul 2014 11:48:03 +0530 [thread overview]
Message-ID: <20140724061803.GD8181@intel.com> (raw)
In-Reply-To: <20140718142623.GH1985@intel.com>
[-- Attachment #1.1: Type: text/plain, Size: 1661 bytes --]
On Fri, Jul 18, 2014 at 07:56:23PM +0530, Vinod Koul wrote:
> On Fri, Jul 18, 2014 at 01:19:20PM +0100, Mark Brown wrote:
> > On Thu, Jul 10, 2014 at 10:14:55AM +0530, Subhransu S. Prusty wrote:
> >
> > > + pr_debug("%s: widget = %s\n", __func__, w->name);
> > > + for (i = 0; i < w->num_kcontrols; i++) {
> > > + if (dapm_kcontrol_get_value(w->kcontrols[i])) {
> > > + mc = (struct soc_mixer_control *)(w->kcontrols[i])->private_value;
> > > + val |= 1 << mc->shift;
> > > + }
> > > + }
> >
> > So, this is the usage of dapm_kcontrol_get_value() (quite a way away
> > from the patch exporting it!). The usage here looks *very* strange.
> > We're calling the function but treating the result as a boolean and
> > manually decoding the DAPM data structures in order to get the control
> > shift... that's odd to say the least.
> >
> > > + SST_FILL_DESTINATION(2, cmd.output_id,
> > > + ids->location_id, SST_DEFAULT_MODULE_ID);
> > > + cmd.nb_inputs = fill_swm_input(&cmd.input[0], val);
> >
> > So what we're doing here is parsing the controls to get which inputs are
> > enabled... it's not altogether clear to me that we shouldn't be doing
> > this at control update time. Presumably we'll also need to be sending
> > these messages when the controls are updated to account for changes that
> > happen while streams are active.
> yes thats the idea. Here we send as mixer path is On. Yes the mixer update
> if On does send this as well.
Wanted to check if there is anything else required to be done for thsi
series, if not can you pls merge the ones before this in series, if okay.
Thanks
--
~Vinod
[-- Attachment #1.2: Digital signature --]
[-- Type: application/pgp-signature, Size: 836 bytes --]
[-- Attachment #2: Type: text/plain, Size: 0 bytes --]
next prev parent reply other threads:[~2014-07-24 6:24 UTC|newest]
Thread overview: 21+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-07-10 4:44 [PATCH v2 00/13] add mrfld DSP support Subhransu S. Prusty
2014-07-10 4:44 ` [PATCH v2 01/13] ASoC: Export dapm_kcontrol_get_value Subhransu S. Prusty
2014-07-10 4:44 ` [PATCH v2 02/13] ASoC: Intel: mfld-pcm: add FE and BE ops Subhransu S. Prusty
2014-07-10 4:44 ` [PATCH v2 03/13] ASoC: Intel: mrfld: set private data for cpu-dai Subhransu S. Prusty
2014-07-10 4:44 ` [PATCH v2 04/13] ASoC: intel: mfld-pcm: don't call trigger ops to DSP for internal streams Subhransu S. Prusty
2014-07-10 4:44 ` [PATCH v2 05/13] ASoC: Intel: add generic parameter set interface Subhransu S. Prusty
2014-07-10 4:44 ` [PATCH v2 06/13] ASoC: Intel: add mrfld DSP defines Subhransu S. Prusty
2014-07-10 4:44 ` [PATCH v2 07/13] ASoC: Intel: mrfld: add bytes control for modules Subhransu S. Prusty
2014-07-10 4:44 ` [PATCH v2 08/13] ASoC: Intel: mrfld: add the gain controls Subhransu S. Prusty
2014-07-10 4:44 ` [PATCH v2 09/13] ASoC: Intel: mfld-pcm: add control for powering up/down dsp Subhransu S. Prusty
2014-07-10 4:44 ` [PATCH v2 10/13] ASoC: Intel: mrfld: add DSP core controls Subhransu S. Prusty
2014-07-10 4:44 ` [PATCH v2 11/13] ASoC: Intel: mrfld: add the DSP DAPM widgets Subhransu S. Prusty
2014-07-18 12:19 ` Mark Brown
2014-07-18 14:26 ` Vinod Koul
2014-07-24 6:18 ` Vinod Koul [this message]
2014-07-24 11:50 ` Mark Brown
2014-07-25 5:46 ` Vinod Koul
2014-07-10 4:44 ` [PATCH v2 12/13] ASoC: Intel: mfld-pcm: add the fe & be dai ops Subhransu S. Prusty
2014-07-10 4:44 ` [PATCH v2 13/13] ASoC: Intel: mrfld: add the DSP mixers Subhransu S. Prusty
2014-07-14 18:50 ` [PATCH v2 00/13] add mrfld DSP support Mark Brown
2014-07-15 5:24 ` Vinod Koul
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=20140724061803.GD8181@intel.com \
--to=vinod.koul@intel.com \
--cc=alsa-devel@alsa-project.org \
--cc=broonie@kernel.org \
--cc=lars@metafoo.de \
--cc=lgirdwood@gmail.com \
--cc=subhransu.s.prusty@intel.com \
/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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).