patch-2.2.0-pre2 linux/drivers/sound/dmasound.c

Next file: linux/fs/Config.in
Previous file: linux/drivers/scsi/wd7000.c
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v2.2.0-pre1/linux/drivers/sound/dmasound.c linux/drivers/sound/dmasound.c
@@ -2084,8 +2084,7 @@
 	int utotal, ftotal;
 
 	frameLeft >>= 2;
-	if (stereo)
-		userCount >>= 1;
+	userCount >>= (stereo? 2: 1);
 	ftotal = frameLeft;
 	utotal = userCount;
 	while (frameLeft) {
@@ -2130,8 +2129,7 @@
 	int utotal, ftotal;
 
 	frameLeft >>= 2;
-	if (stereo)
-		userCount >>= 1;
+	userCount >>= (stereo? 2: 1);
 	ftotal = frameLeft;
 	utotal = userCount;
 	while (frameLeft) {

FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen, slshen@lbl.gov