From 07068446e60502bbd4b7b3a5df16a6246183e1ed Mon Sep 17 00:00:00 2001 From: Mark Farrugia Date: Wed, 27 Mar 2019 17:21:12 +1100 Subject: Remove snd_avirt_pcm_period_elapsed, format tidy We do not need this wrapper function any longer, can use snd_pcm_period_elapsed instead. Signed-off-by: Mark Farrugia --- pcm.c | 18 ++---------------- 1 file changed, 2 insertions(+), 16 deletions(-) (limited to 'pcm.c') diff --git a/pcm.c b/pcm.c index e91b121..fc01953 100644 --- a/pcm.c +++ b/pcm.c @@ -33,20 +33,6 @@ #define PRIVATE_DATA(substream) \ ((struct snd_avirt_private_data *)substream->private_data) -/** - * snd_avirt_pcm_period_elapsed - PCM buffer complete callback - * @substreamid: pointer to ALSA PCM substream - * - * This should be called from a child Audio Path once it has finished - * processing the pcm buffer - */ -void snd_avirt_pcm_period_elapsed(struct snd_pcm_substream *substream) -{ - // Notify ALSA middle layer of the elapsed period boundary - snd_pcm_period_elapsed(substream); -} -EXPORT_SYMBOL_GPL(snd_avirt_pcm_period_elapsed); - /******************************************************************************* * ALSA PCM Callbacks ******************************************************************************/ @@ -103,9 +89,9 @@ static int pcm_open(struct snd_pcm_substream *substream) /** * pcm_close - Implements 'close' callback for PCM middle layer * @substream: pointer to ALSA PCM substream - * + * * This is called when a PCM substream is closed. - * + * * Returns 0 on success or error code otherwise. */ static int pcm_close(struct snd_pcm_substream *substream) -- cgit 1.2.3-korg