[alsa-devel] [PATCH v2 4/9] ASoC: Intel: Skylake: Add FE and BE hw_params handling
Mark Brown
broonie at kernel.org
Sat Sep 19 18:22:10 CEST 2015
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 :(
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 473 bytes
Desc: Digital signature
URL: <http://mailman.alsa-project.org/pipermail/alsa-devel/attachments/20150919/e279acd6/attachment.sig>
More information about the Alsa-devel
mailing list