Make sure mixer ioctls work on /dev/dsp aswell.
authorPierre Ossman <ossman@cendio.se>
Wed, 13 Jun 2007 07:21:57 +0000 (07:21 +0000)
committerPierre Ossman <ossman@cendio.se>
Wed, 13 Jun 2007 07:21:57 +0000 (07:21 +0000)
git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@1473 fefdeb5f-60dc-0310-8127-8f9354f1896f

src/utils/padsp.c

index 9a2bad4..95fc9ed 100644 (file)
@@ -2279,11 +2279,12 @@ static int dsp_ioctl(fd_info *i, unsigned long request, void*argp, int *_errno)
 
         case SNDCTL_DSP_SETDUPLEX:
             debug(DEBUG_LEVEL_NORMAL, __FILE__": SNDCTL_DSP_SETDUPLEX\n");
-           /* this is a no-op */
-           break;
+            /* this is a no-op */
+            break;
 
         default:
-            debug(DEBUG_LEVEL_NORMAL, __FILE__": unknown ioctl 0x%08lx\n", request);
+            /* Mixer ioctls are valid on /dev/dsp aswell */
+            return mixer_ioctl(i, request, argp, _errno);
 
 inval:
             *_errno = EINVAL;