patch-1.3.18 linux/drivers/sound/audio.c

Next file: linux/drivers/sound/dmabuf.c
Previous file: linux/drivers/sound/ad1848.c
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v1.3.17/linux/drivers/sound/audio.c linux/drivers/sound/audio.c
@@ -410,9 +410,6 @@
 	  if (err < 0)
 	    return err;
 
-	  if (wr_buff_no[dev] != -1)
-	    info.bytes += wr_buff_ptr[dev];
-
 	  IOCTL_TO_USER ((char *) arg, 0, (char *) &info, sizeof (info));
 	  return 0;
 	}
@@ -478,7 +475,7 @@
       break;
 
     case SEL_OUT:
-      if (audio_mode[dev] != AM_WRITE)	/* Wrong direction */
+      if (audio_mode[dev] == AM_READ)	/* Wrong direction */
 	return 0;
 
       if (wr_buff_no[dev] != -1)

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