[pulseaudio-discuss] pulseaudio server + sunray audio device

Nikita V. Youshchenko yoush at cs.msu.su
Tue Oct 9 02:09:50 PDT 2007


Hello.

Information for those who whish to use pulseaudio with sunray audio device: 
to stop pulseaudio crashes, apply the following patch to sunray audio 
kernel module, and recompile

--- utadem.c.orig       2007-08-17 17:25:37.000000000 +0400
+++ utadem.c    2007-10-09 12:42:30.000000000 +0400
@@ -971,6 +971,7 @@
        else if (size < (seqlen_sec / 20))
                size = seqlen_sec * 3 / 100;

+       size &= (~3);
        return size;
 }

Without this patch, ioctl(SNDCTL_DSP_GETOSPACE) may return size that is not 
multiply of audio sample size, and single write() operation on dsp device 
may accept data size that is not multiply of audio sample size. That 
confuses pulseaudio oss module badly.

It would be nice if sun people will include this (or other) fix to the 
problem into future releases of SRS software.

Nikita



More information about the pulseaudio-discuss mailing list