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
- Lines: 9
- Date:
2004-04-14 06:05:32.000000000 -0700
- Orig file:
linux-2.4.25/drivers/sound/sb_audio.c
- Orig date:
2002-02-25 11:38:06.000000000 -0800
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)