I noticed that pulseaudio complains about not being able to open the
mixer device when talking to sunray audio ... this patch fixes the
problem.
--
Tobi Oetiker, OETIKER+PARTNER AG, Aarweg 15 CH-4600 Olten, Switzerland
http://it.oetiker.ch [email protected] ++41 62 775 9902 / sb: -9900
--- a/pulseaudio-0.9.14/src/modules/oss-util.c~ 2009-05-13 08:17:33.000000000 +0200
+++ b/pulseaudio-0.9.14/src/modules/oss-util.c 2009-05-13 08:17:33.000000000 +0200
@@ -399,6 +399,17 @@
char *fn;
int fd;
+ /* support for sunray mixer device */
+ if ( sscanf(device,"/tmp/SUNWut/dev/utaudio/utdsp-%d",&n) == 1 ){
+ errno = 0;
+ fn = pa_sprintf_malloc("/tmp/SUNWut/dev/utaudio/utmix-%i", n);
+ fd = open_mixer(fn);
+ if (fd < 0)
+ pa_log_warn("Failed to open mixer '%s': %s", fn, pa_cstrerror(errno));
+ pa_xfree(fn);
+ return fd;
+ }
+
if ((n = get_device_number(device)) < 0)
return -1;
_______________________________________________
SunRay-Users mailing list
[email protected]
http://www.filibeto.org/mailman/listinfo/sunray-users