diff options
author | tinyalsa <simonwilson@google.com> | 2012-02-10 14:26:41 -0800 |
---|---|---|
committer | tinyalsa <simonwilson@google.com> | 2012-02-10 14:26:41 -0800 |
commit | 19eda2de961aced7365a31a02ec210a43f03efad (patch) | |
tree | a49b8868a1ad85a7b167332043b127f2daa1ca4c /pcm.c | |
parent | 350211381a270fc6f5e02d3a75cbf6bf99152ec8 (diff) | |
parent | 9989fc25deb22ba1dde0ad6c30d34e1aff1931ed (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.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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)) { |