patch-1.3.91 linux/drivers/sound/dmabuf.c

Next file: linux/fs/devices.c
Previous file: linux/drivers/scsi/u14-34f.h
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v1.3.90/linux/drivers/sound/dmabuf.c linux/drivers/sound/dmabuf.c
@@ -770,6 +770,13 @@
       }
       break;
 
+    case SNDCTL_DSP_SETDUPLEX:
+      if (audio_devs[dev]->flags & DMA_DUPLEX)
+	 return 0;
+      else
+         return -EIO;
+      break;
+
     case SNDCTL_DSP_SETFRAGMENT:
       {
 	int             fact = get_fs_long ((long *) arg);

FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen, slshen@lbl.gov with Sam's (original) version
of this