git://git.onelab.eu
/
linux-2.6.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Fedora kernel-2.6.17-1.2142_FC4 patched with stable patch-2.6.17.4-vs2.0.2-rc26.diff
[linux-2.6.git]
/
sound
/
oss
/
sb_common.c
diff --git
a/sound/oss/sb_common.c
b/sound/oss/sb_common.c
index
e33a50e
..
5f955e3
100644
(file)
--- a/
sound/oss/sb_common.c
+++ b/
sound/oss/sb_common.c
@@
-67,7
+67,7
@@
void *smw_free;
static int jazz16_base; /* Not detected */
static unsigned char jazz16_bits; /* I/O relocation bits */
static int jazz16_base; /* Not detected */
static unsigned char jazz16_bits; /* I/O relocation bits */
-static
spinlock_t jazz16_lock = SPIN_LOCK_UNLOCKED
;
+static
DEFINE_SPINLOCK(jazz16_lock)
;
/*
* Logitech Soundman Wave specific initialization code
/*
* Logitech Soundman Wave specific initialization code
@@
-81,7
+81,7
@@
static int smw_ucodeLen;
#endif
#endif
-s
b_devc *last_sb;
/* Last sb loaded */
+s
tatic sb_devc *last_sb;
/* Last sb loaded */
int sb_dsp_command(sb_devc * devc, unsigned char val)
{
int sb_dsp_command(sb_devc * devc, unsigned char val)
{
@@
-521,7
+521,7
@@
int sb_dsp_detect(struct address_info *hw_config, int pci, int pciio, struct sb_
DDB(printk("sb_dsp_detect(%x) entered\n", hw_config->io_base));
DDB(printk("sb_dsp_detect(%x) entered\n", hw_config->io_base));
-
devc->lock = SPIN_LOCK_UNLOCKED
;
+
spin_lock_init(&devc->lock)
;
devc->type = hw_config->card_subtype;
devc->base = hw_config->io_base;
devc->type = hw_config->card_subtype;
devc->base = hw_config->io_base;
@@
-876,14
+876,6
@@
int sb_dsp_init(struct address_info *hw_config, struct module *owner)
return 1;
}
return 1;
}
-void sb_dsp_disable_midi(int io_base)
-{
-}
-
-void sb_dsp_disable_recording(int io_base)
-{
-}
-
/* if (sbmpu) below we allow mpu401 to manage the midi devs
otherwise we have to unload them. (Andrzej Krzysztofowicz) */
/* if (sbmpu) below we allow mpu401 to manage the midi devs
otherwise we have to unload them. (Andrzej Krzysztofowicz) */
@@
-923,8
+915,8
@@
void sb_dsp_unload(struct address_info *hw_config, int sbmpu)
}
else
release_region(hw_config->io_base, 16);
}
else
release_region(hw_config->io_base, 16);
- if(detected_devc)
-
kfree(detected_devc);
+
+ kfree(detected_devc);
}
/*
}
/*
@@
-1292,7
+1284,6
@@
void unload_sbmpu(struct address_info *hw_config)
EXPORT_SYMBOL(sb_dsp_init);
EXPORT_SYMBOL(sb_dsp_detect);
EXPORT_SYMBOL(sb_dsp_unload);
EXPORT_SYMBOL(sb_dsp_init);
EXPORT_SYMBOL(sb_dsp_detect);
EXPORT_SYMBOL(sb_dsp_unload);
-EXPORT_SYMBOL(sb_dsp_disable_midi);
EXPORT_SYMBOL(sb_be_quiet);
EXPORT_SYMBOL(probe_sbmpu);
EXPORT_SYMBOL(unload_sbmpu);
EXPORT_SYMBOL(sb_be_quiet);
EXPORT_SYMBOL(probe_sbmpu);
EXPORT_SYMBOL(unload_sbmpu);