patch-2.4.26 linux-2.4.26/drivers/sound/sb_audio.c

Next file: linux-2.4.26/drivers/usb/audio.c
Previous file: linux-2.4.26/drivers/sound/i810_audio.c
Back to the patch index
Back to the overall index

diff -urN linux-2.4.25/drivers/sound/sb_audio.c linux-2.4.26/drivers/sound/sb_audio.c
@@ -879,7 +879,7 @@
 			c -= locallen; p += locallen;
 		}
 		/* used = ( samples * 16 bits size ) */
-		*used = len << 1;
+		*used =  max_in  > ( max_out << 1) ? (max_out << 1) : max_in;
 		/* returned = ( samples * 8 bits size ) */
 		*returned = len;
 	}

FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)