ASoC: Intel: avs: Initialize private data for subsequent HDA FEs
authorCezary Rojewski <cezary.rojewski@intel.com>
Fri, 18 Nov 2022 11:30:52 +0000 (12:30 +0100)
committerMark Brown <broonie@kernel.org>
Fri, 18 Nov 2022 14:04:41 +0000 (14:04 +0000)
commitf38d4c72cb2d68e73d3e54feb68febd6b7c4bfd2
tree3fef89ae78eb361e7c3c74c2e3a7eb8480424141
parentb1af5b34d6b315ed34abb0fa9049bcf1babbd537
ASoC: Intel: avs: Initialize private data for subsequent HDA FEs

HDAudio implementation found in sound/pci/hda expects a valid stream
pointer in substream->runtime->private_data location. For ASoC users,
that should point to a valid link stream which is assigned when BE
opens.

As BE borrows its runtime from FE, the information may be lost when
reparenting comes into picture - see dpcm_be_reparent(). To support the
DPCM reparenting functionality for HDAudio scenarios while still
fulfilling expectations of HDAudio common code, have all FEs point to
the same private data.

Signed-off-by: Cezary Rojewski <cezary.rojewski@intel.com>
Link: https://lore.kernel.org/r/20221118113052.1340593-1-cezary.rojewski@intel.com
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/intel/avs/pcm.c