LF-3665-2 ASoC: SOF: Refactor ipc_msg_data to prepare for compress API
Make second parameter of ipc_msg_data generic
in order to be able to support compressed streams.
This patch doesn't hold any functional change.
snd_sof_pcm_stream holds the information for a PCM stream like:
* page_table buffer for sharing data with the DSP
* snd_pcm_substream
* workqueue for handling period elapsed notifications.
Most of these fields are also useful for compress implementation. So,
snd_sof_pcm_stream will be extended to be used for compress
implementation.
First step, is to make ipc_msg_data parameters more generic:
void (*ipc_msg_data)(struct snd_sof_dev *sdev,
- struct snd_pcm_substream *substream,
+ struct snd_sof_pcm_stream *sps,
void *p, size_t sz); /* mandatory */
With this case we can use ipc_msg_data, to retrieve information from DSP
for both PCM/Compress API.
Note:
- snd_sof_pcm_stream, will be updated with a new member of type
snd_compr_stream to account for Compress streams.
Signed-off-by: Daniel Baluta <daniel.baluta@nxp.com>