]> git.baikalelectronics.ru Git - kernel.git/commit
ASoC: SOF: make struct snd_sof_dai IPC agnostic
authorRanjani Sridharan <ranjani.sridharan@linux.intel.com>
Tue, 8 Mar 2022 16:43:43 +0000 (08:43 -0800)
committerMark Brown <broonie@kernel.org>
Wed, 9 Mar 2022 13:30:09 +0000 (13:30 +0000)
commit11a0981fd0c829cc85d0e9403ab584f68f6106ee
tree75e4325fd2b63a147acafffd99465b21d84c75b8
parentbcad1025d17c947bbd3d3da8d370c550115a72e8
ASoC: SOF: make struct snd_sof_dai IPC agnostic

Remove the comp_dai and dai_config members of struct snd_sof_dai and
replace it with a void *private field. Introduce a new struct
sof_dai_private_data that will contain the pointer to these two fields.
The topology parser will populate this structure and save it as part of
the "private" member in snd_sof_dai. Change all users of these fields to
use the private member instead.

Signed-off-by: Ranjani Sridharan <ranjani.sridharan@linux.intel.com>
Reviewed-by: Bard Liao <yung-chuan.liao@linux.intel.com>
Reviewed-by: Péter Ujfalusi <peter.ujfalusi@linux.intel.com>
Reviewed-by: Pierre-Louis Bossart <pierre-louis.bossart@linux.intel.com>
Link: https://lore.kernel.org/r/20220308164344.577647-18-ranjani.sridharan@linux.intel.com
Signed-off-by: Mark Brown <broonie@kernel.org>
include/sound/sof/dai.h
sound/soc/sof/intel/hda-dai.c
sound/soc/sof/intel/hda.c
sound/soc/sof/pcm.c
sound/soc/sof/sof-audio.c
sound/soc/sof/sof-audio.h
sound/soc/sof/topology.c