patch-1.3.99 linux/drivers/sound/sound_switch.c
Next file: linux/fs/Config.in
Previous file: linux/drivers/sound/mpu401.c
Back to the patch index
Back to the overall index
- Lines: 47
- Date:
Mon May 6 07:28:52 1996
- Orig file:
v1.3.98/linux/drivers/sound/sound_switch.c
- Orig date:
Mon Mar 25 09:25:27 1996
diff -u --recursive --new-file v1.3.98/linux/drivers/sound/sound_switch.c linux/drivers/sound/sound_switch.c
@@ -407,8 +407,6 @@
int
sound_open_sw (int dev, struct fileinfo *file)
{
- int retval;
-
DEB (printk ("sound_open_sw(dev=%d)\n", dev));
if ((dev >= SND_NDEVS) || (dev < 0))
@@ -438,25 +436,37 @@
#ifdef CONFIG_SEQUENCER
case SND_DEV_SEQ:
case SND_DEV_SEQ2:
+ {
+ int retval;
+
if ((retval = sequencer_open (dev, file)) < 0)
return retval;
break;
+ }
#endif
#ifdef CONFIG_MIDI
case SND_DEV_MIDIN:
+ {
+ int retval;
+
if ((retval = MIDIbuf_open (dev, file)) < 0)
return retval;
break;
+ }
#endif
#ifdef CONFIG_AUDIO
case SND_DEV_DSP:
case SND_DEV_DSP16:
case SND_DEV_AUDIO:
+ {
+ int retval;
+
if ((retval = audio_open (dev, file)) < 0)
return retval;
break;
+ }
#endif
default:
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen, slshen@lbl.gov
with Sam's (original) version of this