summaryrefslogtreecommitdiffstats
path: root/audio/pcm_bluetooth.c
diff options
context:
space:
mode:
authorJohan Hedberg <johan.hedberg@nokia.com>2007-10-24 14:08:31 +0000
committerJohan Hedberg <johan.hedberg@nokia.com>2007-10-24 14:08:31 +0000
commit6967924ef97d377c90d73d4b5127a9b3748cb068 (patch)
tree9d55f07ac812aac9ac32ec01bd558f464f9f743c /audio/pcm_bluetooth.c
parentf1659f19cfb3ef0c0c09b5f5b7e2b06d90d079ab (diff)
Minor code cleanup
Diffstat (limited to 'audio/pcm_bluetooth.c')
-rw-r--r--audio/pcm_bluetooth.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/audio/pcm_bluetooth.c b/audio/pcm_bluetooth.c
index ae1a1bcd..2131e9ea 100644
--- a/audio/pcm_bluetooth.c
+++ b/audio/pcm_bluetooth.c
@@ -718,20 +718,21 @@ done:
return ret;
}
-static int bluetooth_playback_delay(snd_pcm_ioplug_t *io,
- snd_pcm_sframes_t *delayp)
+static int bluetooth_playback_delay(snd_pcm_ioplug_t *io,
+ snd_pcm_sframes_t *delayp)
{
DBG("");
/* This updates io->hw_ptr value using pointer() function */
snd_pcm_hwsync(io->pcm);
-
+
*delayp = io->appl_ptr - io->hw_ptr;
if ((io->state == SND_PCM_STATE_RUNNING) && (*delayp < 0)) {
io->callback->stop(io);
io->state = SND_PCM_STATE_XRUN;
*delayp = 0;
}
+
/* This should never fail, ALSA API is really not
prepared to handle a non zero return value */
return 0;