diff options
author | Mark Brown <broonie@kernel.org> | 2018-09-03 14:37:28 +0100 |
---|---|---|
committer | Mark Brown <broonie@kernel.org> | 2018-09-03 14:37:28 +0100 |
commit | d47f9580a6ea82b80c34c9dbc9dd8dba6bb25dc0 (patch) | |
tree | 54d90ae2ad5f627e9909282546a3cfc7c4d33b7b /sound/soc/sh/rcar/core.c | |
parent | 2e66d523cd055ac3fa920f7e630c4bfa80d24c24 (diff) | |
parent | 4d230d12710646788af581ba0155d83ab48b955c (diff) |
Merge branch 'asoc-4.19' into asoc-4.20 for rcar dep
Diffstat (limited to 'sound/soc/sh/rcar/core.c')
-rw-r--r-- | sound/soc/sh/rcar/core.c | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/sound/soc/sh/rcar/core.c b/sound/soc/sh/rcar/core.c index c66b3dade947..299fb457573d 100644 --- a/sound/soc/sh/rcar/core.c +++ b/sound/soc/sh/rcar/core.c @@ -955,12 +955,23 @@ static void rsnd_soc_dai_shutdown(struct snd_pcm_substream *substream, rsnd_dai_stream_quit(io); } +static int rsnd_soc_dai_prepare(struct snd_pcm_substream *substream, + struct snd_soc_dai *dai) +{ + struct rsnd_priv *priv = rsnd_dai_to_priv(dai); + struct rsnd_dai *rdai = rsnd_dai_to_rdai(dai); + struct rsnd_dai_stream *io = rsnd_rdai_to_io(rdai, substream); + + return rsnd_dai_call(prepare, io, priv); +} + static const struct snd_soc_dai_ops rsnd_soc_dai_ops = { .startup = rsnd_soc_dai_startup, .shutdown = rsnd_soc_dai_shutdown, .trigger = rsnd_soc_dai_trigger, .set_fmt = rsnd_soc_dai_set_fmt, .set_tdm_slot = rsnd_soc_set_dai_tdm_slot, + .prepare = rsnd_soc_dai_prepare, }; void rsnd_parse_connect_common(struct rsnd_dai *rdai, |