Alsa-Devel Archive on lore.kernel.org
 help / color / mirror / Atom feed
From: Vinod Koul <vinod.koul@intel.com>
To: Liam Girdwood <liam.r.girdwood@linux.jf.intel.com>
Cc: Takashi Iwai <tiwai@suse.de>,
	alsa-devel@alsa-project.org, Mark Brown <broonie@kernel.org>
Subject: Re: [PATCH 2/2] ASoC: compress: Add suport for DPCM into	compressed audio
Date: Fri, 17 Jan 2014 09:23:26 +0530	[thread overview]
Message-ID: <20140117035326.GK25466@intel.com> (raw)
In-Reply-To: <1389892081.2298.61.camel@loki>

On Thu, Jan 16, 2014 at 05:08:01PM +0000, Liam Girdwood wrote:
> On Thu, 2014-01-16 at 16:59 +0100, Takashi Iwai wrote:
> > At Wed, 15 Jan 2014 16:51:57 +0000,
> > Liam Girdwood wrote:
> > > 
> 
> > 
> > > +	mutex_lock_nested(&fe->card->mutex, SND_SOC_CARD_CLASS_RUNTIME);
> > > +
> > > +	if (platform->driver->compr_ops && platform->driver->compr_ops->set_params) {
> > > +		ret = platform->driver->compr_ops->set_params(cstream, params);
> > > +		if (ret < 0)
> > > +			goto out;
> > > +	}
> > > +
> > > +	if (fe->dai_link->compr_ops && fe->dai_link->compr_ops->set_params) {
> > > +		ret = fe->dai_link->compr_ops->set_params(cstream);
> > > +		if (ret < 0)
> > > +			goto out;
> > > +	}
> > > +
> > > +	memcpy(&fe->dpcm[fe_substream->stream].hw_params, params,
> > > +			sizeof(struct snd_pcm_hw_params));
> > 
> > Does this really work?  params is snd_compr_params and hw_parmas is
> > snd_pcm_hw_params, isn't it?
> > 
> 
> Hmmm, no one reported a failure here to me. It is complete nonsense
> though so I dont know why the testers didn't run into this. I'll fix it
> for V2.
I think that due to the fixup fn noone noticed this. The issue will be seen only
by folks who dont have the fixup function.

--
~Vinod

  reply	other threads:[~2014-01-17  4:55 UTC|newest]

Thread overview: 16+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-01-15 16:51 [PATCH 1/2] ASoC: DPCM: make some DPCM API calls non static for compressed usage Liam Girdwood
2014-01-15 16:51 ` [PATCH 2/2] ASoC: compress: Add suport for DPCM into compressed audio Liam Girdwood
2014-01-16 15:59   ` Takashi Iwai
2014-01-16 17:08     ` Liam Girdwood
2014-01-17  3:53       ` Vinod Koul [this message]
2014-01-17  8:28         ` Liam Girdwood
2014-01-16 18:01   ` Mark Brown
2014-01-16 18:12     ` Liam Girdwood
2014-01-16 18:16       ` Mark Brown
2014-01-16 12:31 ` [PATCH 1/2] ASoC: DPCM: make some DPCM API calls non static for compressed usage Mark Brown
2014-01-16 14:40   ` Vinod Koul
2014-01-16 15:47     ` Liam Girdwood
2014-01-16 14:49       ` Vinod Koul
2014-01-16 15:55     ` Takashi Iwai
2014-01-16 14:59       ` Vinod Koul
2014-01-16 16:02         ` 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=20140117035326.GK25466@intel.com \
    --to=vinod.koul@intel.com \
    --cc=alsa-devel@alsa-project.org \
    --cc=broonie@kernel.org \
    --cc=liam.r.girdwood@linux.jf.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox