In Ubuntu, we've applied the attached patch to achieve the following:

  * debian/patches/99-esd_pa_fixes.patch, debian/control:
    - Fix padsp ioctl type mismatch, and use esd record mode
      by default.

We thought you might be interested in doing the same.
diff -u xoscope-2.0/debian/control xoscope-2.0/debian/control
--- xoscope-2.0/debian/control
+++ xoscope-2.0/debian/control
@@ -2,14 +2,14 @@
 Section: x11
 Priority: optional
 Maintainer: Bhavani Shankar <right2bh...@gmail.com>
-Build-Depends: cdbs, debhelper (>= 5), autotools-dev, libgtk2.0-dev, quilt, 
libcomedi-dev
+Build-Depends: cdbs, debhelper (>= 5), autotools-dev, libgtk2.0-dev, quilt, 
libcomedi-dev, libesd0-dev
 Standards-Version: 3.8.3
 DM-Upload-Allowed: yes
 Homepage: http://xoscope.sourceforge.net/
 
 Package: xoscope
 Architecture: any
-Depends: ${shlibs:Depends}, ${misc:Depends}
+Depends: ${shlibs:Depends}, ${misc:Depends}, pulseaudio-esound-compat
 Description: digital oscilloscope
  Xoscope is a oscilloscope using input from a 
  sound card or EsounD and/or a ProbeScope/osziFOX and will soon support 
diff -u xoscope-2.0/debian/changelog xoscope-2.0/debian/changelog
--- xoscope-2.0/debian/changelog
+++ xoscope-2.0/debian/changelog
@@ -1,3 +1,12 @@
+xoscope (2.0-3.3) unstable; urgency=low
+
+  * Non-maintainer upload.
+  * debian/patches/99-esd_pa_fixes.patch, debian/control:
+    - Fix padsp ioctl type mismatch, and use esd record mode
+      by default. (Closes: #710880)
+
+ -- Artur Rona <ari-tc...@ubuntu.com>  Mon, 30 Mar 2015 13:40:25 +0200
+
 xoscope (2.0-3.2) unstable; urgency=low
 
   * Non-maintainer upload.
diff -u xoscope-2.0/debian/patches/series xoscope-2.0/debian/patches/series
--- xoscope-2.0/debian/patches/series
+++ xoscope-2.0/debian/patches/series
@@ -3,0 +4 @@
+99-esd_pa_fixes.patch
only in patch2:
unchanged:
--- xoscope-2.0.orig/debian/patches/99-esd_pa_fixes.patch
+++ xoscope-2.0/debian/patches/99-esd_pa_fixes.patch
@@ -0,0 +1,22 @@
+=== modified file 'sc_linux.c'
+--- x/sc_linux.c       2009-08-12 13:20:43 +0000
++++ x/sc_linux.c       2011-11-08 23:36:06 +0000
+@@ -39,7 +39,7 @@
+ 
+ #ifdef HAVE_LIBESD
+ static int esdblock = 0;      /* 1 to block ESD; 0 to non-block */
+-static int esdrecord = 0;     /* 1 to use ESD record mode; 0 to use ESD 
monitor mode */
++static int esdrecord = 1;     /* 1 to use ESD record mode; 0 to use ESD 
monitor mode */
+ #endif
+ 
+ static int sc_chans = 0;
+@@ -87,7 +87,7 @@
+ 
+ /* show system error and close sound device if given ioctl status is bad */
+ static void
+-check_status_ioctl(int d, int request, void *argp, int line)
++check_status_ioctl(int d, unsigned int request, void *argp, int line)
+ {
+   if (ioctl(d, request, argp) < 0) {
+     snd_errormsg1 = "sound ioctl";
+

Reply via email to