diff options
author | Daniel Baluta <daniel.baluta@nxp.com> | 2023-01-17 14:25:31 +0200 |
---|---|---|
committer | Mark Brown <broonie@kernel.org> | 2023-01-17 13:37:52 +0000 |
commit | 249f186d6b0211fc59d83db128030f2b298063a1 (patch) | |
tree | 0b2a377d7f41e8190a67c32dad523059470baa53 /sound/soc/sof/ops.h | |
parent | 1b905942d6cd182b7ef14e9f095178376d3847e6 (diff) | |
download | linux-stable-249f186d6b0211fc59d83db128030f2b298063a1.tar.gz linux-stable-249f186d6b0211fc59d83db128030f2b298063a1.tar.bz2 linux-stable-249f186d6b0211fc59d83db128030f2b298063a1.zip |
ASoC: SOF: Prepare set_stream_data_offset for compress API
Make second parameter of set_stream_data_offset generic
in order to be used for both PCM and compress streams.
Current patch doesn't introduce any functional change,
just prepare the code for compress support.
Reviewed-by: Paul Olaru <paul.olaru@nxp.com>
Reviewed-by: Iuliana Prodan <iuliana.prodan@nxp.com>
Reviewed-by: Ranjani Sridharan <ranjani.sridharan@linux.intel.com>
Reviewed-by: Peter Ujfalusi <peter.ujfalusi@linux.intel.com>
Signed-off-by: Daniel Baluta <daniel.baluta@nxp.com>
Link: https://lore.kernel.org/r/20230117122533.201708-3-daniel.baluta@oss.nxp.com
Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'sound/soc/sof/ops.h')
-rw-r--r-- | sound/soc/sof/ops.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sound/soc/sof/ops.h b/sound/soc/sof/ops.h index db92cd338467..febe318b9427 100644 --- a/sound/soc/sof/ops.h +++ b/sound/soc/sof/ops.h @@ -480,11 +480,11 @@ static inline int snd_sof_ipc_msg_data(struct snd_sof_dev *sdev, /* host side configuration of the stream's data offset in stream mailbox area */ static inline int snd_sof_set_stream_data_offset(struct snd_sof_dev *sdev, - struct snd_pcm_substream *substream, + struct snd_sof_pcm_stream *sps, size_t posn_offset) { if (sof_ops(sdev) && sof_ops(sdev)->set_stream_data_offset) - return sof_ops(sdev)->set_stream_data_offset(sdev, substream, + return sof_ops(sdev)->set_stream_data_offset(sdev, sps, posn_offset); return 0; |