aboutsummaryrefslogtreecommitdiff
path: root/pcm.c
diff options
context:
space:
mode:
authortinyalsa <simonwilson@google.com>2012-02-10 14:26:41 -0800
committertinyalsa <simonwilson@google.com>2012-02-10 14:26:41 -0800
commit19eda2de961aced7365a31a02ec210a43f03efad (patch)
treea49b8868a1ad85a7b167332043b127f2daa1ca4c /pcm.c
parent350211381a270fc6f5e02d3a75cbf6bf99152ec8 (diff)
parent9989fc25deb22ba1dde0ad6c30d34e1aff1931ed (diff)
Merge pull request #9 from gabrbedd/topic/params
Topic/params - add parameters to select card, etc.
Diffstat (limited to 'pcm.c')
-rw-r--r--pcm.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/pcm.c b/pcm.c
index 2ef7075..fe2a8d6 100644
--- a/pcm.c
+++ b/pcm.c
@@ -558,7 +558,7 @@ struct pcm *pcm_open(unsigned int card, unsigned int device,
sparams.silence_threshold = config->silence_threshold;
pcm->boundary = sparams.boundary = pcm->buffer_size;
- while (pcm->boundary * 2 <= LONG_MAX - pcm->buffer_size)
+ while (pcm->boundary * 2 <= INT_MAX - pcm->buffer_size)
pcm->boundary *= 2;
if (ioctl(pcm->fd, SNDRV_PCM_IOCTL_SW_PARAMS, &sparams)) {