summaryrefslogtreecommitdiffstats
path: root/src/utils/padsp.c
diff options
context:
space:
mode:
authorPierre Ossman <ossman@cendio.se>2006-06-19 16:39:28 +0000
committerPierre Ossman <ossman@cendio.se>2006-06-19 16:39:28 +0000
commitc6d4cc0af9497a4376fa1dcb33a28c9a54264109 (patch)
tree720ad398846c3a67fef47f6d1572d65fca88ff79 /src/utils/padsp.c
parent40494c3bc1f109b0d0d2e9e04cda814e9856ff1f (diff)
Handle clients that just want to set fragment size (and not count).
git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@1030 fefdeb5f-60dc-0310-8127-8f9354f1896f
Diffstat (limited to 'src/utils/padsp.c')
-rw-r--r--src/utils/padsp.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/utils/padsp.c b/src/utils/padsp.c
index e25fdfd8..56acbb28 100644
--- a/src/utils/padsp.c
+++ b/src/utils/padsp.c
@@ -1839,7 +1839,11 @@ static int dsp_ioctl(fd_info *i, unsigned long request, void*argp, int *_errno)
i->fragment_size = 1 << (*(int*) argp);
i->n_fragments = (*(int*) argp) >> 16;
-
+
+ /* 0x7FFF means that we can set whatever we like */
+ if (i->n_fragments == 0x7FFF)
+ i->n_fragments = 12;
+
free_streams(i);
pa_threaded_mainloop_unlock(i->mainloop);