]> git.baikalelectronics.ru Git - kernel.git/commitdiff
ASoC: SOF: imx: Convert to use the generic set_stream_data_offset ops
authorPeter Ujfalusi <peter.ujfalusi@linux.intel.com>
Thu, 10 Mar 2022 04:27:19 +0000 (20:27 -0800)
committerMark Brown <broonie@kernel.org>
Fri, 11 Mar 2022 13:41:08 +0000 (13:41 +0000)
Switch from the IPC dependent ipc_pcm_params() ops to the IPC neutral
set_stream_data_offset().

Signed-off-by: Peter Ujfalusi <peter.ujfalusi@linux.intel.com>
Reviewed-by: Pierre-Louis Bossart <pierre-louis.bossart@linux.intel.com>
Reviewed-by: Rander Wang <rander.wang@intel.com>
Reviewed-by: Daniel Baluta <daniel.baluta@nxp.com>
Signed-off-by: Ranjani Sridharan <ranjani.sridharan@linux.intel.com>
Link: https://lore.kernel.org/r/20220310042720.976809-10-ranjani.sridharan@linux.intel.com
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/sof/imx/imx8.c
sound/soc/sof/imx/imx8m.c

index f6baecbb57fb2d016c4815091c83dd40faf46e48..825bd2b9b7a13734bef2ff31c0544ca252f4aacb 100644 (file)
@@ -509,7 +509,7 @@ static const struct snd_sof_dsp_ops sof_imx8_ops = {
        .get_window_offset      = imx8_get_window_offset,
 
        .ipc_msg_data   = sof_ipc_msg_data,
-       .ipc_pcm_params = sof_ipc_pcm_params,
+       .set_stream_data_offset = sof_set_stream_data_offset,
 
        /* module loading */
        .load_module    = snd_sof_parse_module_memcpy,
@@ -572,7 +572,7 @@ static const struct snd_sof_dsp_ops sof_imx8x_ops = {
        .get_window_offset      = imx8_get_window_offset,
 
        .ipc_msg_data   = sof_ipc_msg_data,
-       .ipc_pcm_params = sof_ipc_pcm_params,
+       .set_stream_data_offset = sof_set_stream_data_offset,
 
        /* module loading */
        .load_module    = snd_sof_parse_module_memcpy,
index 60251486b24b26301353ce3e09b7ce18d6a6541d..803d6be6b4fbbcf9ceda13fd31812a6061a3398f 100644 (file)
@@ -435,7 +435,7 @@ static const struct snd_sof_dsp_ops sof_imx8m_ops = {
        .get_window_offset      = imx8m_get_window_offset,
 
        .ipc_msg_data   = sof_ipc_msg_data,
-       .ipc_pcm_params = sof_ipc_pcm_params,
+       .set_stream_data_offset = sof_set_stream_data_offset,
 
        /* module loading */
        .load_module    = snd_sof_parse_module_memcpy,