diff options
author | Jerome Brunet <jbrunet@baylibre.com> | 2019-07-25 19:59:49 +0300 |
---|---|---|
committer | Mark Brown <broonie@kernel.org> | 2019-08-01 15:55:02 +0300 |
commit | 9de98628c895d15427138073986eab1e3ce39cb4 (patch) | |
tree | 3aee68ca7660abb1cee34c33307c8c563aa76615 /sound/soc/soc-dapm.c | |
parent | a72706ed8208ac3f72d1c3ebbc6509e368b0dcb0 (diff) | |
download | linux-9de98628c895d15427138073986eab1e3ce39cb4.tar.xz |
ASoC: codec2codec: fill some of the runtime stream parameters
Set the information provided struct snd_soc_pcm_stream in the
struct snd_pcm_runtime of the codec to codec link.
Signed-off-by: Jerome Brunet <jbrunet@baylibre.com>
Link: https://lore.kernel.org/r/20190725165949.29699-7-jbrunet@baylibre.com
Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'sound/soc/soc-dapm.c')
-rw-r--r-- | sound/soc/soc-dapm.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/sound/soc/soc-dapm.c b/sound/soc/soc-dapm.c index 1c953a1b46ce..e16838e1bda2 100644 --- a/sound/soc/soc-dapm.c +++ b/sound/soc/soc-dapm.c @@ -3874,6 +3874,11 @@ snd_soc_dai_link_event_pre_pmu(struct snd_soc_dapm_widget *w, dapm_update_dai_unlocked(substream, params, sink); } + runtime->format = params_format(params); + runtime->subformat = params_subformat(params); + runtime->channels = params_channels(params); + runtime->rate = params_rate(params); + out: if (ret < 0) kfree(runtime); |