diff options
author | Taylor Holberton <taylorcholberton@gmail.com> | 2016-09-16 09:54:36 -0400 |
---|---|---|
committer | Taylor Holberton <taylorcholberton@gmail.com> | 2016-09-16 09:54:36 -0400 |
commit | 4f556060a663ba83c9db41df019d29e257f7b473 (patch) | |
tree | da8c5766ed44d772e4d1182463602fe1ff375575 | |
parent | 2087ef2b624cc2ab6c53628d0f03b317f1cb1bcf (diff) |
fixed bracket placement
-rw-r--r-- | pcm.c | 7 |
1 files changed, 4 insertions, 3 deletions
@@ -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; |