2eebb1925d
Here's a patch for cs46xx that - (mostly) cleans up the cs46xx driver according to CodingStyle - removes a bunch of pointless casts - fixes a small, potential use of uninitialized variable, bug - reduces the size of the compiled code by 36 bytes - reduces the size of the source file by 1831 bytes I know I should probably have split this into bits, but since I only thought of that *after* doing all the edits, splitting it up would have been a royal pain. And since these are all pretty trivial changes I thought I'd just submit the one huge patch and hope people could live with it (if not, then just tell me and I'll split it). The bug fix that's in there may be hard to spot, so I'll point it out. It's the - int val, valsave, mapped, ret; + int val, valsave, ret; + int mapped = 0; bit. Without that change we may use `mapped' uninitialized if, in cs_ioctl, the first test of "if(state)" is false and the second "if(state)" test is true. Signed-off-by: Jesper Juhl <jesper.juhl@gmail.com> Signed-off-by: Andrew Morton <akpm@osdl.org> Signed-off-by: Linus Torvalds <torvalds@osdl.org> |
||
---|---|---|
.. | ||
cs4281 | ||
dmasound | ||
emu10k1 | ||
.gitignore | ||
CHANGELOG | ||
COPYING | ||
Kconfig | ||
Makefile | ||
README.FIRST | ||
ac97.c | ||
ac97.h | ||
ac97_codec.c | ||
ac97_plugin_ad1980.c | ||
aci.c | ||
aci.h | ||
ad1816.c | ||
ad1848.c | ||
ad1848.h | ||
ad1848_mixer.h | ||
ad1889.c | ||
ad1889.h | ||
adlib_card.c | ||
aedsp16.c | ||
ali5455.c | ||
au1000.c | ||
au1550_ac97.c | ||
audio.c | ||
audio_syms.c | ||
awe_hw.h | ||
awe_wave.c | ||
awe_wave.h | ||
bin2hex.c | ||
btaudio.c | ||
cmpci.c | ||
coproc.h | ||
cs46xx.c | ||
cs46xx_wrapper-24.h | ||
cs46xxpm-24.h | ||
cs46xxpm.h | ||
cs461x.h | ||
cs461x_image.h | ||
cs4232.c | ||
dev_table.c | ||
dev_table.h | ||
dm.h | ||
dmabuf.c | ||
es1370.c | ||
es1371.c | ||
esssolo1.c | ||
forte.c | ||
gus.h | ||
gus_card.c | ||
gus_hw.h | ||
gus_linearvol.h | ||
gus_midi.c | ||
gus_vol.c | ||
gus_wave.c | ||
hal2.c | ||
hal2.h | ||
harmony.c | ||
hex2hex.c | ||
i810_audio.c | ||
ics2101.c | ||
ite8172.c | ||
iwmem.h | ||
kahlua.c | ||
mad16.c | ||
maestro.c | ||
maestro.h | ||
maestro3.c | ||
maestro3.h | ||
maui.c | ||
midi_ctrl.h | ||
midi_syms.c | ||
midi_synth.c | ||
midi_synth.h | ||
midibuf.c | ||
mpu401.c | ||
mpu401.h | ||
msnd.c | ||
msnd.h | ||
msnd_classic.c | ||
msnd_classic.h | ||
msnd_pinnacle.c | ||
msnd_pinnacle.h | ||
nec_vrc5477.c | ||
nm256.h | ||
nm256_audio.c | ||
nm256_coeff.h | ||
opl3.c | ||
opl3.h | ||
opl3_hw.h | ||
opl3sa.c | ||
opl3sa2.c | ||
os.h | ||
pas2.h | ||
pas2_card.c | ||
pas2_midi.c | ||
pas2_mixer.c | ||
pas2_pcm.c | ||
pss.c | ||
rme96xx.c | ||
rme96xx.h | ||
sb.h | ||
sb_audio.c | ||
sb_card.c | ||
sb_card.h | ||
sb_common.c | ||
sb_ess.c | ||
sb_ess.h | ||
sb_midi.c | ||
sb_mixer.c | ||
sb_mixer.h | ||
sequencer.c | ||
sequencer_syms.c | ||
sgalaxy.c | ||
sh_dac_audio.c | ||
sonicvibes.c | ||
sound_calls.h | ||
sound_config.h | ||
sound_firmware.h | ||
sound_syms.c | ||
sound_timer.c | ||
soundcard.c | ||
soundvers.h | ||
sscape.c | ||
swarm_cs4297a.c | ||
sys_timer.c | ||
trident.c | ||
trident.h | ||
trix.c | ||
tuning.h | ||
uart401.c | ||
uart6850.c | ||
ulaw.h | ||
v_midi.c | ||
v_midi.h | ||
via82cxxx_audio.c | ||
vidc.c | ||
vidc.h | ||
vidc_fill.S | ||
vwsnd.c | ||
waveartist.c | ||
waveartist.h | ||
wavfront.c | ||
wf_midi.c | ||
ymfpci.c | ||
ymfpci.h | ||
ymfpci_image.h | ||
yss225.c | ||
yss225.h |
README.FIRST
The modular sound driver patches were funded by Red Hat Software (www.redhat.com). The sound driver here is thus a modified version of Hannu's code. Please bear that in mind when considering the appropriate forums for bug reporting. Alan Cox