ASoC: codec2codec: remove ephemeral variables
authorJerome Brunet <jbrunet@baylibre.com>
Thu, 25 Jul 2019 16:59:48 +0000 (18:59 +0200)
committerMark Brown <broonie@kernel.org>
Thu, 1 Aug 2019 12:54:44 +0000 (13:54 +0100)
commita72706ed8208ac3f72d1c3ebbc6509e368b0dcb0
tree106f93154b345df473c333a91152b42827750645
parenta342031cdd0818cb0fbcb44798211c7a02c7ca27
ASoC: codec2codec: remove ephemeral variables

Now that codec to codec links struct snd_soc_pcm_runtime have lasting pcm
and substreams, let's use them. Alsa allocate and keep the
struct snd_pcm_runtime as long as the link is powered.

Signed-off-by: Jerome Brunet <jbrunet@baylibre.com>
Link: https://lore.kernel.org/r/20190725165949.29699-6-jbrunet@baylibre.com
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/soc-dapm.c