ASoC: remove .delay from snd_soc_platform_driver
No existing platform is using .delay. Let's remove it. Signed-off-by: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com> Signed-off-by: Mark Brown <broonie@kernel.org>
This commit is contained in:
parent
99b04f4c40
commit
fcff45f8e0
|
@ -946,13 +946,6 @@ struct snd_soc_platform_driver {
|
||||||
int (*pcm_new)(struct snd_soc_pcm_runtime *);
|
int (*pcm_new)(struct snd_soc_pcm_runtime *);
|
||||||
void (*pcm_free)(struct snd_pcm *);
|
void (*pcm_free)(struct snd_pcm *);
|
||||||
|
|
||||||
/*
|
|
||||||
* For platform caused delay reporting.
|
|
||||||
* Optional.
|
|
||||||
*/
|
|
||||||
snd_pcm_sframes_t (*delay)(struct snd_pcm_substream *,
|
|
||||||
struct snd_soc_dai *);
|
|
||||||
|
|
||||||
/* platform stream pcm ops */
|
/* platform stream pcm ops */
|
||||||
const struct snd_pcm_ops *ops;
|
const struct snd_pcm_ops *ops;
|
||||||
|
|
||||||
|
|
|
@ -1116,13 +1116,6 @@ static snd_pcm_uframes_t soc_pcm_pointer(struct snd_pcm_substream *substream)
|
||||||
}
|
}
|
||||||
delay += codec_delay;
|
delay += codec_delay;
|
||||||
|
|
||||||
/*
|
|
||||||
* None of the existing platform drivers implement delay(), so
|
|
||||||
* for now the codec_dai of first multicodec entry is used
|
|
||||||
*/
|
|
||||||
if (platform->driver->delay)
|
|
||||||
delay += platform->driver->delay(substream, rtd->codec_dais[0]);
|
|
||||||
|
|
||||||
runtime->delay = delay;
|
runtime->delay = delay;
|
||||||
|
|
||||||
return offset;
|
return offset;
|
||||||
|
|
Loading…
Reference in New Issue