diff options
author | Ranjani Sridharan <ranjani.sridharan@linux.intel.com> | 2022-03-08 17:43:43 +0100 |
---|---|---|
committer | Mark Brown <broonie@kernel.org> | 2022-03-09 14:30:09 +0100 |
commit | 839e484f9e173309d599e1281eb7221e07f41814 (patch) | |
tree | 75e4325fd2b63a147acafffd99465b21d84c75b8 /include/sound/sof | |
parent | ASoC: SOF: topology: Rename arguments in sof_parse_tokens() (diff) | |
download | linux-839e484f9e173309d599e1281eb7221e07f41814.tar.xz linux-839e484f9e173309d599e1281eb7221e07f41814.zip |
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>
Diffstat (limited to 'include/sound/sof')
-rw-r--r-- | include/sound/sof/dai.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/include/sound/sof/dai.h b/include/sound/sof/dai.h index 59ee50ac7705..a818a0f0a226 100644 --- a/include/sound/sof/dai.h +++ b/include/sound/sof/dai.h @@ -116,4 +116,9 @@ struct sof_ipc_dai_config { }; } __packed; +struct sof_dai_private_data { + struct sof_ipc_comp_dai *comp_dai; + struct sof_ipc_dai_config *dai_config; +}; + #endif |