19 Sep
2015
19 Sep
'15
6:22 p.m.
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 :(