Skip to content

Commit 07007b8

Browse files
ujfalusibroonie
authored andcommitted
ASoC: SOF: Remove the get_stream_position callback
The get_stream_position has been replaced by get_dai_frame_counter and all related code can be dropped form the core. Cc: [email protected] # 6.8 Signed-off-by: Peter Ujfalusi <[email protected]> Reviewed-by: Kai Vehmanen <[email protected]> Reviewed-by: Pierre-Louis Bossart <[email protected]> Link: https://msgid.link/r/[email protected] Signed-off-by: Mark Brown <[email protected]>
1 parent 4ab6c38 commit 07007b8

File tree

2 files changed

+0
-19
lines changed

2 files changed

+0
-19
lines changed

sound/soc/sof/ops.h

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -523,16 +523,6 @@ static inline int snd_sof_pcm_platform_ack(struct snd_sof_dev *sdev,
523523
return 0;
524524
}
525525

526-
static inline u64 snd_sof_pcm_get_stream_position(struct snd_sof_dev *sdev,
527-
struct snd_soc_component *component,
528-
struct snd_pcm_substream *substream)
529-
{
530-
if (sof_ops(sdev) && sof_ops(sdev)->get_stream_position)
531-
return sof_ops(sdev)->get_stream_position(sdev, component, substream);
532-
533-
return 0;
534-
}
535-
536526
static inline u64
537527
snd_sof_pcm_get_dai_frame_counter(struct snd_sof_dev *sdev,
538528
struct snd_soc_component *component,

sound/soc/sof/sof-priv.h

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -261,15 +261,6 @@ struct snd_sof_dsp_ops {
261261
/* pcm ack */
262262
int (*pcm_ack)(struct snd_sof_dev *sdev, struct snd_pcm_substream *substream); /* optional */
263263

264-
/*
265-
* optional callback to retrieve the link DMA position for the substream
266-
* when the position is not reported in the shared SRAM windows but
267-
* instead from a host-accessible hardware counter.
268-
*/
269-
u64 (*get_stream_position)(struct snd_sof_dev *sdev,
270-
struct snd_soc_component *component,
271-
struct snd_pcm_substream *substream); /* optional */
272-
273264
/*
274265
* optional callback to retrieve the number of frames left/arrived from/to
275266
* the DSP on the DAI side (link/codec/DMIC/etc).

0 commit comments

Comments
 (0)