summaryrefslogtreecommitdiffstats
path: root/pcm.c
diff options
context:
space:
mode:
authorMark Farrugia <mark.farrugia@fiberdyne.com.au>2019-03-27 17:21:12 +1100
committerMark Farrugia <mark.farrugia@fiberdyne.com.au>2019-03-27 17:21:12 +1100
commit5bf4dc0f5f50bb5adafb2a43e19007619d195748 (patch)
treec51b552e911bbd8773516a3a12f9a6f674fdff68 /pcm.c
parent8c7cba43618d1aca05cad1e10ea238a082e313ee (diff)
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 <mark.farrugia@fiberdyne.com.au>
Diffstat (limited to 'pcm.c')
-rw-r--r--pcm.c18
1 files changed, 2 insertions, 16 deletions
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)