[alsa-devel] [PATCH v2 4/9] ASoC: Intel: Skylake: Add FE and BE hw_params handling
Vinod Koul
vinod.koul at intel.com
Mon Sep 21 05:13:05 CEST 2015
On Sat, Sep 19, 2015 at 09:22:10AM -0700, Mark Brown wrote:
> On Mon, Aug 17, 2015 at 10:56:39PM +0530, Vinod Koul wrote:
>
> > +/* Run/Stop the FE pipeline */
> > +int skl_tplg_set_fe_pipeline_state(struct snd_soc_dai *dai, bool start,
> > + int stream)
> > +{
> > + struct skl *skl = get_skl_ctx(dai->dev);
> > + struct skl_sst *ctx = skl->skl_sst;
> > + struct skl_module_cfg *mconfig = NULL;
> > +
> > + dev_dbg(dai->dev, "%s: enter, dai-name=%s dir=%d\n", __func__, dai->name, stream);
> > +
> > + mconfig = skl_tplg_fe_get_cpr_module(dai, stream);
> > + if (mconfig != NULL) {
> > + if (start)
> > + return skl_run_pipe(ctx, mconfig->pipe);
> > + else
> > + return skl_stop_pipe(ctx, mconfig->pipe);
> > + }
> > +
> > + return 0;
> > +}
>
> Another one of these wrappers with basically no shared code :(
Yes this is wrapper over pipeline start and stop. This function is invoked
from the PCM trigger code so we though providing a wrapper makes it look
better. I will remove this and invoke skl_run_pipe and skl_stop_pipe from
PCM trigger now
Will check if we can remove other wrappers as well
Thanks
--
~Vinod
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 819 bytes
Desc: Digital signature
URL: <http://mailman.alsa-project.org/pipermail/alsa-devel/attachments/20150921/e42e1f01/attachment.sig>
More information about the Alsa-devel
mailing list