projects
/
platform
/
upstream
/
pulseaudio.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
5f828c2
)
Stop using x86-isms and use ISO C (oversized shifts are undefined).
author
Pierre Ossman
<ossman@cendio.se>
Thu, 14 Sep 2006 16:00:57 +0000
(16:00 +0000)
committer
Pierre Ossman
<ossman@cendio.se>
Thu, 14 Sep 2006 16:00:57 +0000
(16:00 +0000)
git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@1397
fefdeb5f
-60dc-0310-8127-
8f9354f1896f
src/utils/padsp.c
patch
|
blob
|
history
diff --git
a/src/utils/padsp.c
b/src/utils/padsp.c
index d947f69773222ccb0850b9ccb46752a37d5cc533..c7bfe5abde8bec8c0f18ab93d41a0231e864ad72 100644
(file)
--- a/
src/utils/padsp.c
+++ b/
src/utils/padsp.c
@@
-1879,7
+1879,7
@@
static int dsp_ioctl(fd_info *i, unsigned long request, void*argp, int *_errno)
pa_threaded_mainloop_lock(i->mainloop);
- i->fragment_size = 1 << (
*(int*) argp
);
+ i->fragment_size = 1 << (
(*(int*) argp) & 31
);
i->n_fragments = (*(int*) argp) >> 16;
/* 0x7FFF means that we can set whatever we like */