diff options
author | Mark Brown <broonie@kernel.org> | 2022-03-11 23:21:12 +0300 |
---|---|---|
committer | Mark Brown <broonie@kernel.org> | 2022-03-11 23:21:12 +0300 |
commit | 8fc262265918d2a1817103b454d32979f1d7f35c (patch) | |
tree | 154daa839587b8e1ea80fb115f7bb487d3476376 /sound/soc/sof/intel/hda-ipc.c | |
parent | c0fc71e2d7d21ed8b2ee763d894517e4fec6ffc5 (diff) | |
parent | 00f19253633710877880ad062d6cee3c13deb9a5 (diff) | |
download | linux-8fc262265918d2a1817103b454d32979f1d7f35c.tar.xz |
Make the SOF pcm_hw_params DSP op IPC agnostic
Merge series from Ranjani Sridharan <ranjani.sridharan@linux.intel.com>:
In preparation for supporting the newly introduced IPC version in the SOF
firmware, this patchset adds the changes required to make the
pcm_hw_params DSP op IPC agnostic.
Diffstat (limited to 'sound/soc/sof/intel/hda-ipc.c')
-rw-r--r-- | sound/soc/sof/intel/hda-ipc.c | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/sound/soc/sof/intel/hda-ipc.c b/sound/soc/sof/intel/hda-ipc.c index a8c452144168..0395638c43ae 100644 --- a/sound/soc/sof/intel/hda-ipc.c +++ b/sound/soc/sof/intel/hda-ipc.c @@ -267,14 +267,12 @@ int hda_ipc_msg_data(struct snd_sof_dev *sdev, return 0; } -int hda_ipc_pcm_params(struct snd_sof_dev *sdev, - struct snd_pcm_substream *substream, - const struct sof_ipc_pcm_params_reply *reply) +int hda_set_stream_data_offset(struct snd_sof_dev *sdev, + struct snd_pcm_substream *substream, + size_t posn_offset) { struct hdac_stream *hstream = substream->runtime->private_data; struct sof_intel_hda_stream *hda_stream; - /* validate offset */ - size_t posn_offset = reply->posn_offset; hda_stream = container_of(hstream, struct sof_intel_hda_stream, hext_stream.hstream); |