aboutsummaryrefslogtreecommitdiffstats
path: root/dummy/dummy.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:48:58 +1100
commit07068446e60502bbd4b7b3a5df16a6246183e1ed (patch)
tree9224e1fee1b9f4422f204ded1a1b620aed13f2cd /dummy/dummy.c
parent9f68614f664506535c873699dcfbca6e2515a24c (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 'dummy/dummy.c')
-rw-r--r--dummy/dummy.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/dummy/dummy.c b/dummy/dummy.c
index f683b92..013fe97 100644
--- a/dummy/dummy.c
+++ b/dummy/dummy.c
@@ -31,7 +31,7 @@ MODULE_LICENSE("GPL v2");
#define DUMMY_PERIODS_MIN 1
#define DUMMY_PERIODS_MAX 8
-#define get_dummy_ops(substream) \
+#define get_dummy_ops(substream) \
(*(const struct dummy_timer_ops **)(substream)->runtime->private_data)
/*******************************************************************************
@@ -138,11 +138,11 @@ static void dummy_systimer_callback(struct timer_list *t)
dpcm->elapsed = 0;
spin_unlock_irqrestore(&dpcm->lock, flags);
if (elapsed)
- snd_avirt_pcm_period_elapsed(dpcm->substream);
+ snd_pcm_period_elapsed(dpcm->substream);
}
static snd_pcm_uframes_t
- dummy_systimer_pointer(struct snd_pcm_substream *substream)
+dummy_systimer_pointer(struct snd_pcm_substream *substream)
{
struct dummy_systimer_pcm *dpcm = substream->runtime->private_data;
snd_pcm_uframes_t pos;