aboutsummaryrefslogtreecommitdiff
path: root/pcm.c
diff options
context:
space:
mode:
authorTaylor Holberton <taylorcholberton@gmail.com>2016-09-16 09:54:36 -0400
committerTaylor Holberton <taylorcholberton@gmail.com>2016-09-16 09:54:36 -0400
commit4f556060a663ba83c9db41df019d29e257f7b473 (patch)
treeda8c5766ed44d772e4d1182463602fe1ff375575 /pcm.c
parent2087ef2b624cc2ab6c53628d0f03b317f1cb1bcf (diff)
fixed bracket placement
Diffstat (limited to 'pcm.c')
-rw-r--r--pcm.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/pcm.c b/pcm.c
index c1f2212..a97947f 100644
--- a/pcm.c
+++ b/pcm.c
@@ -250,7 +250,8 @@ unsigned int pcm_frames_to_bytes(struct pcm *pcm, unsigned int frames)
(pcm_format_to_bits(pcm->config.format) >> 3);
}
-static int pcm_sync_ptr(struct pcm *pcm, int flags) {
+static int pcm_sync_ptr(struct pcm *pcm, int flags)
+{
if (pcm->sync_ptr) {
pcm->sync_ptr->flags = flags;
if (ioctl(pcm->fd, SNDRV_PCM_IOCTL_SYNC_PTR, pcm->sync_ptr) < 0)
@@ -259,8 +260,8 @@ static int pcm_sync_ptr(struct pcm *pcm, int flags) {
return 0;
}
-static int pcm_hw_mmap_status(struct pcm *pcm) {
-
+static int pcm_hw_mmap_status(struct pcm *pcm)
+{
if (pcm->sync_ptr)
return 0;