patch-2.1.103 linux/drivers/sound/gus_wave.c

Next file: linux/drivers/sound/pas2_mixer.c
Previous file: linux/drivers/scsi/wd7000.c
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v2.1.102/linux/drivers/sound/gus_wave.c linux/drivers/sound/gus_wave.c
@@ -499,13 +499,14 @@
 {
 	int sample_no;
 
-	if ((sample_no = sample_map[voice]) != -1)
+	if ((sample_no = sample_map[voice]) != -1) {
 		if (position < samples[sample_no].len)
 			if (voices[voice].volume_irq_mode == VMODE_START_NOTE)
 				voices[voice].offset_pending = position;
 			else
 				gus_write_addr(0x0a, sample_ptrs[sample_no] + position, 0,
 				 samples[sample_no].mode & WAVE_16_BITS);
+	}
 }
 
 static void gus_voice_init(int voice)

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