ASoC: SOF: Intel: Convert to use the generic set_stream_data_offset ops
Switch from the IPC dependent ipc_pcm_params() ops to the IPC neutral set_stream_data_offset(). Remove the no longer used hda_ipc_pcm_params() function as well. 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-9-ranjani.sridharan@linux.intel.com Signed-off-by: Mark Brown <broonie@kernel.org>
This commit is contained in:
parent
29e3aa0bb9
commit
cf73363e4a
|
@ -56,7 +56,7 @@ const struct snd_sof_dsp_ops sof_apl_ops = {
|
|||
.get_window_offset = hda_dsp_ipc_get_window_offset,
|
||||
|
||||
.ipc_msg_data = hda_ipc_msg_data,
|
||||
.ipc_pcm_params = hda_ipc_pcm_params,
|
||||
.set_stream_data_offset = hda_set_stream_data_offset,
|
||||
|
||||
/* machine driver */
|
||||
.machine_select = hda_machine_select,
|
||||
|
|
|
@ -596,7 +596,7 @@ static const struct snd_sof_dsp_ops sof_bdw_ops = {
|
|||
.get_window_offset = bdw_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,
|
||||
|
||||
/* machine driver */
|
||||
.machine_select = bdw_machine_select,
|
||||
|
|
|
@ -250,7 +250,7 @@ static const struct snd_sof_dsp_ops sof_byt_ops = {
|
|||
.get_window_offset = atom_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,
|
||||
|
||||
/* machine driver */
|
||||
.machine_select = atom_machine_select,
|
||||
|
@ -332,7 +332,7 @@ static const struct snd_sof_dsp_ops sof_cht_ops = {
|
|||
.get_window_offset = atom_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,
|
||||
|
||||
/* machine driver */
|
||||
.machine_select = atom_machine_select,
|
||||
|
|
|
@ -274,7 +274,7 @@ const struct snd_sof_dsp_ops sof_cnl_ops = {
|
|||
.get_window_offset = hda_dsp_ipc_get_window_offset,
|
||||
|
||||
.ipc_msg_data = hda_ipc_msg_data,
|
||||
.ipc_pcm_params = hda_ipc_pcm_params,
|
||||
.set_stream_data_offset = hda_set_stream_data_offset,
|
||||
|
||||
/* machine driver */
|
||||
.machine_select = hda_machine_select,
|
||||
|
|
|
@ -289,10 +289,3 @@ int hda_set_stream_data_offset(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)
|
||||
{
|
||||
return hda_set_stream_data_offset(sdev, substream, reply->posn_offset);
|
||||
}
|
||||
|
|
|
@ -566,9 +566,6 @@ int hda_dsp_stream_spib_config(struct snd_sof_dev *sdev,
|
|||
int hda_ipc_msg_data(struct snd_sof_dev *sdev,
|
||||
struct snd_pcm_substream *substream,
|
||||
void *p, size_t sz);
|
||||
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);
|
||||
|
|
|
@ -118,7 +118,7 @@ const struct snd_sof_dsp_ops sof_icl_ops = {
|
|||
.get_window_offset = hda_dsp_ipc_get_window_offset,
|
||||
|
||||
.ipc_msg_data = hda_ipc_msg_data,
|
||||
.ipc_pcm_params = hda_ipc_pcm_params,
|
||||
.set_stream_data_offset = hda_set_stream_data_offset,
|
||||
|
||||
/* machine driver */
|
||||
.machine_select = hda_machine_select,
|
||||
|
|
|
@ -165,7 +165,7 @@ const struct snd_sof_dsp_ops sof_tng_ops = {
|
|||
.get_window_offset = atom_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,
|
||||
|
||||
/* machine driver */
|
||||
.machine_select = atom_machine_select,
|
||||
|
|
|
@ -91,7 +91,7 @@ const struct snd_sof_dsp_ops sof_tgl_ops = {
|
|||
.get_window_offset = hda_dsp_ipc_get_window_offset,
|
||||
|
||||
.ipc_msg_data = hda_ipc_msg_data,
|
||||
.ipc_pcm_params = hda_ipc_pcm_params,
|
||||
.set_stream_data_offset = hda_set_stream_data_offset,
|
||||
|
||||
/* machine driver */
|
||||
.machine_select = hda_machine_select,
|
||||
|
|
Loading…
Reference in New Issue