patch-2.1.68 linux/drivers/sound/lowlevel/awe_wave.c
Next file: linux/drivers/sound/pss.c
Previous file: linux/drivers/sound/dmabuf.c
Back to the patch index
Back to the overall index
- Lines: 18
- Date:
Sun Nov 30 13:07:12 1997
- Orig file:
v2.1.67/linux/drivers/sound/lowlevel/awe_wave.c
- Orig date:
Sat Nov 29 11:25:11 1997
diff -u --recursive --new-file v2.1.67/linux/drivers/sound/lowlevel/awe_wave.c linux/drivers/sound/lowlevel/awe_wave.c
@@ -551,7 +551,7 @@
INIT_TABLE(samples, max_samples, AWE_MAX_SAMPLES, awe_sample_list);
INIT_TABLE(infos, max_infos, AWE_MAX_INFOS, awe_voice_list);
- if (my_dev=sound_alloc_synthdev())
+ if ((my_dev=sound_alloc_synthdev())!=-1)
printk(KERN_WARNING "AWE32 Error: too many synthesizers\n");
else {
voice_alloc = &awe_operations.alloc;
@@ -560,7 +560,7 @@
}
#ifdef CONFIG_AWE32_MIXER
- if (my_mixerdev=sound_alloc_mixerdev()) {
+ if ((my_mixerdev=sound_alloc_mixerdev())!=-1) {
mixer_devs[my_mixerdev] = &awe_mixer_operations;
}
#endif
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen, slshen@lbl.gov