Skip to content

Commit ab814f9

Browse files
ujfalusiplbossart
authored andcommitted
ASoC: SOF: Remove ipc_pcm_params() ops
All users have been converted to use the IPC agnostic set_stream_data_offsett() Remove all code related to the old API. Signed-off-by: Peter Ujfalusi <peter.ujfalusi@linux.intel.com>
1 parent 44caea2 commit ab814f9

4 files changed

Lines changed: 0 additions & 36 deletions

File tree

sound/soc/sof/ops.h

Lines changed: 0 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -466,19 +466,6 @@ static inline int snd_sof_ipc_msg_data(struct snd_sof_dev *sdev,
466466
{
467467
return sof_ops(sdev)->ipc_msg_data(sdev, substream, p, sz);
468468
}
469-
470-
/* host configure DSP HW parameters */
471-
static inline int
472-
snd_sof_ipc_pcm_params(struct snd_sof_dev *sdev,
473-
struct snd_pcm_substream *substream,
474-
const struct sof_ipc_pcm_params_reply *reply)
475-
{
476-
if (sof_ops(sdev) && sof_ops(sdev)->ipc_pcm_params)
477-
return sof_ops(sdev)->ipc_pcm_params(sdev, substream, reply);
478-
479-
return 0;
480-
}
481-
482469
/* host side configuration of the stream's data offset in stream mailbox area */
483470
static inline int
484471
snd_sof_set_stream_data_offset(struct snd_sof_dev *sdev,

sound/soc/sof/pcm.c

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -269,13 +269,6 @@ static int sof_pcm_hw_params(struct snd_soc_component *component,
269269
return ret;
270270
}
271271

272-
ret = snd_sof_ipc_pcm_params(sdev, substream, &ipc_params_reply);
273-
if (ret < 0) {
274-
dev_err(component->dev, "%s: got wrong reply for PCM %d\n",
275-
__func__, spcm->pcm.pcm_id);
276-
return ret;
277-
}
278-
279272
ret = snd_sof_set_stream_data_offset(sdev, substream,
280273
ipc_params_reply.posn_offset);
281274
if (ret < 0) {

sound/soc/sof/sof-priv.h

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -219,11 +219,6 @@ struct snd_sof_dsp_ops {
219219
struct snd_pcm_substream *substream,
220220
void *p, size_t sz); /* mandatory */
221221

222-
/* host configure DSP HW parameters */
223-
int (*ipc_pcm_params)(struct snd_sof_dev *sdev,
224-
struct snd_pcm_substream *substream,
225-
const struct sof_ipc_pcm_params_reply *reply); /* optional */
226-
227222
/* host side configuration of the stream's data offset in stream mailbox area */
228223
int (*set_stream_data_offset)(struct snd_sof_dev *sdev,
229224
struct snd_pcm_substream *substream,
@@ -638,9 +633,6 @@ int sof_fw_ready(struct snd_sof_dev *sdev, u32 msg_id);
638633
int sof_ipc_msg_data(struct snd_sof_dev *sdev,
639634
struct snd_pcm_substream *substream,
640635
void *p, size_t sz);
641-
int sof_ipc_pcm_params(struct snd_sof_dev *sdev,
642-
struct snd_pcm_substream *substream,
643-
const struct sof_ipc_pcm_params_reply *reply);
644636
int sof_set_stream_data_offset(struct snd_sof_dev *sdev,
645637
struct snd_pcm_substream *substream,
646638
size_t posn_offset);

sound/soc/sof/stream-ipc.c

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -65,14 +65,6 @@ int sof_set_stream_data_offset(struct snd_sof_dev *sdev,
6565
}
6666
EXPORT_SYMBOL(sof_set_stream_data_offset);
6767

68-
int sof_ipc_pcm_params(struct snd_sof_dev *sdev,
69-
struct snd_pcm_substream *substream,
70-
const struct sof_ipc_pcm_params_reply *reply)
71-
{
72-
return sof_set_stream_data_offset(sdev, substream, reply->posn_offset);
73-
}
74-
EXPORT_SYMBOL(sof_ipc_pcm_params);
75-
7668
int sof_stream_pcm_open(struct snd_sof_dev *sdev,
7769
struct snd_pcm_substream *substream)
7870
{

0 commit comments

Comments
 (0)