patch-2.1.77 linux/drivers/sound/sb_card.c
Next file: linux/drivers/sound/sb_midi.c
Previous file: linux/drivers/sound/sb_audio.c
Back to the patch index
Back to the overall index
- Lines: 76
- Date:
Mon Dec 29 10:22:46 1997
- Orig file:
v2.1.76/linux/drivers/sound/sb_card.c
- Orig date:
Sat Nov 29 11:25:11 1997
diff -u --recursive --new-file v2.1.76/linux/drivers/sound/sb_card.c linux/drivers/sound/sb_card.c
@@ -34,10 +34,10 @@
probe_sb(struct address_info *hw_config)
{
if (check_region(hw_config->io_base, 16))
- {
- printk("\n\nsb_dsp.c: I/O port %x already in use\n\n", hw_config->io_base);
- return 0;
- }
+ {
+ printk("\n\nsb_card.c: I/O port %x is already in use\n\n", hw_config->io_base);
+ return 0;
+ }
return sb_dsp_detect(hw_config);
}
@@ -85,37 +85,36 @@
void *smw_free = NULL;
-int
-init_module(void)
+int init_module(void)
{
- printk("Soundblaster audio driver Copyright (C) by Hannu Savolainen 1993-1996\n");
+ printk(KERN_INFO "Soundblaster audio driver Copyright (C) by Hannu Savolainen 1993-1996\n");
if (mad16 == 0 && trix == 0 && pas2 == 0)
- {
- if (io == -1 || dma == -1 || irq == -1)
- {
- printk("I/O, IRQ, DMA and type are mandatory\n");
- return -EINVAL;
- }
- config.io_base = io;
- config.irq = irq;
- config.dma = dma;
- config.dma2 = dma16;
- config.card_subtype = type;
-
- if (!probe_sb(&config))
- return -ENODEV;
- attach_sb_card(&config);
+ {
+ if (io == -1 || dma == -1 || irq == -1)
+ {
+ printk(KERN_ERR "I/O, IRQ, and DMA are mandatory\n");
+ return -EINVAL;
+ }
+ config.io_base = io;
+ config.irq = irq;
+ config.dma = dma;
+ config.dma2 = dma16;
+ config.card_subtype = type;
+
+ if (!probe_sb(&config))
+ return -ENODEV;
+ attach_sb_card(&config);
#ifdef CONFIG_MIDI
- config_mpu.io_base = mpu_io;
- if (mpu_io && probe_sbmpu(&config_mpu))
- sbmpu = 1;
+ config_mpu.io_base = mpu_io;
+ if (mpu_io && probe_sbmpu(&config_mpu))
+ sbmpu = 1;
#endif
#ifdef CONFIG_MIDI
- if (sbmpu)
- attach_sbmpu(&config_mpu);
+ if (sbmpu)
+ attach_sbmpu(&config_mpu);
#endif
- }
+ }
SOUND_LOCK;
return 0;
}
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen, slshen@lbl.gov