android_kernel_xiaomi_sm8350/sound/oss
Jesper Juhl 2eebb1925d [PATCH] OSS: cs46xx cleanup and tiny bugfix
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>
2006-06-23 07:43:04 -07:00
..
cs4281 [PATCH] oss: semaphore to mutex conversion 2006-03-23 07:38:15 -08:00
dmasound [PATCH] powerpc: fix oops in alsa powermac driver 2006-04-21 22:34:26 +10:00
emu10k1 [PATCH] Last DMA_xBIT_MASK cleanups 2006-04-11 06:18:44 -07:00
.gitignore kbuild: ignore all generated files for make allmodconfig (x86_64) 2006-02-26 20:15:58 +01:00
ac97_codec.c [PATCH] oss: semaphore to mutex conversion 2006-03-23 07:38:15 -08:00
ac97_plugin_ad1980.c
ac97.c
ac97.h
aci.c [PATCH] sem2mutex: sound/oss/ 2006-03-23 07:38:13 -08:00
aci.h
ad1816.c
ad1848_mixer.h
ad1848.c [PATCH] ad1848 section fix 2006-05-21 12:59:22 -07:00
ad1848.h
ad1889.c [PARISC] OSS ad1889: Match register names with ALSA driver 2006-04-21 22:20:31 +00:00
ad1889.h [PARISC] OSS ad1889: Match register names with ALSA driver 2006-04-21 22:20:31 +00:00
adlib_card.c
aedsp16.c
ali5455.c [PATCH] sem2mutex: sound/oss/ 2006-03-23 07:38:13 -08:00
au1000.c [PATCH] Remove MODULE_PARM 2006-03-25 08:22:52 -08:00
au1550_ac97.c [PATCH] Au1550/1200: add missing PSC #define's, make OSS driver use the proper ones 2006-06-23 07:42:56 -07:00
audio_syms.c
audio.c
awe_hw.h
awe_wave.c [PATCH] OSS: Fix leak in awe_wave, also remove pointless cast. 2006-03-25 08:23:00 -08:00
awe_wave.h
bin2hex.c
btaudio.c [PATCH] sem2mutex: sound/oss/ 2006-03-23 07:38:13 -08:00
CHANGELOG
cmpci.c [PATCH] cmpci: don't use generic_hweight32() 2006-03-26 08:57:09 -08:00
coproc.h
COPYING
cs46xx_wrapper-24.h
cs46xx.c [PATCH] OSS: cs46xx cleanup and tiny bugfix 2006-06-23 07:43:04 -07:00
cs46xxpm-24.h [PATCH] oss: remove deprecated PM interface from cs46xx driver 2006-01-06 08:33:41 -08:00
cs46xxpm.h
cs461x_image.h
cs461x.h
cs4232.c [PATCH] pnp: cs4232: adjust pnp_register_driver signature 2006-03-27 08:44:53 -08:00
dev_table.c
dev_table.h
dm.h
dmabuf.c
es1370.c [PATCH] sem2mutex: sound/oss/ 2006-03-23 07:38:13 -08:00
es1371.c [PATCH] sem2mutex: sound/oss/ 2006-03-23 07:38:13 -08:00
esssolo1.c [PATCH] Replace 0xff.. with correct DMA_xBIT_MASK 2006-03-28 09:16:07 -08:00
forte.c [PATCH] sem2mutex: sound/oss/ 2006-03-23 07:38:13 -08:00
gus_card.c
gus_hw.h
gus_linearvol.h
gus_midi.c
gus_vol.c
gus_wave.c
gus.h
hal2.c [PATCH] sem2mutex: sound/oss/ 2006-03-23 07:38:13 -08:00
hal2.h
harmony.c [PARISC] OSS: Fix build of parisc harmony driver 2006-01-10 21:52:19 -05:00
hex2hex.c
i810_audio.c [PATCH] sem2mutex: sound/oss/ 2006-03-23 07:38:13 -08:00
ics2101.c
ite8172.c [PATCH] Remove MODULE_PARM 2006-03-25 08:22:52 -08:00
iwmem.h
kahlua.c [PATCH] drivers/sound/oss: Replace pci_module_init() with pci_register_driver() 2006-01-09 12:13:22 -08:00
Kconfig [MIPS] Correct HAL2 Kconfig description 2006-06-19 17:39:26 +01:00
mad16.c
maestro3.c [PATCH] maestro3 vfree NULL check fixup 2006-03-28 09:16:08 -08:00
maestro3.h
maestro.c [PATCH] sem2mutex: sound/oss/ 2006-03-23 07:38:13 -08:00
maestro.h
Makefile
maui.c
midi_ctrl.h
midi_syms.c
midi_synth.c
midi_synth.h
midibuf.c
mpu401.c
mpu401.h
msnd_classic.c
msnd_classic.h
msnd_pinnacle.c
msnd_pinnacle.h
msnd.c [PATCH] vfree does its own NULL check, no need to be explicit in oss/msnd.c 2006-03-28 09:16:08 -08:00
msnd.h
nec_vrc5477.c [PATCH] sem2mutex: sound/oss/ 2006-03-23 07:38:13 -08:00
nm256_audio.c [PATCH] nm256_audio section fix 2006-05-21 12:59:22 -07:00
nm256_coeff.h
nm256.h
opl3_hw.h
opl3.c
opl3.h
opl3sa2.c spelling: s/appropiate/appropriate/ 2006-01-15 02:00:17 +01:00
opl3sa.c
os.h [PATCH] changing CONFIG_LOCALVERSION rebuilds too much, for no good reason 2005-11-09 07:55:57 -08:00
pas2_card.c
pas2_midi.c
pas2_mixer.c
pas2_pcm.c
pas2.h
pss.c
README.FIRST
rme96xx.c [PATCH] sem2mutex: sound/oss/ 2006-03-23 07:38:13 -08:00
rme96xx.h
sb_audio.c
sb_card.c [PATCH] vfree NULL check fixup for sb_card 2006-03-28 09:16:07 -08:00
sb_card.h
sb_common.c
sb_ess.c
sb_ess.h
sb_midi.c
sb_mixer.c [PATCH] Fix sb_mixer use before validation 2006-03-25 08:22:59 -08:00
sb_mixer.h
sb.h
sequencer_syms.c [PATCH] sound/oss/sequencer_syms: unexport reprogram_timer 2005-11-07 07:54:08 -08:00
sequencer.c [PATCH] no need to check vfree arg for null in oss/sequencer 2006-03-28 09:16:08 -08:00
sgalaxy.c
sh_dac_audio.c [PATCH] sound: Remove unneeded kmalloc() return value casts 2006-03-28 09:16:09 -08:00
sonicvibes.c [PATCH] Replace 0xff.. with correct DMA_xBIT_MASK 2006-03-28 09:16:07 -08:00
sound_calls.h
sound_config.h
sound_firmware.h
sound_syms.c
sound_timer.c
soundcard.c
soundvers.h
sscape.c
swarm_cs4297a.c [PATCH] Remove MODULE_PARM 2006-03-25 08:22:52 -08:00
sys_timer.c
trident.c [PATCH] sem2mutex: sound/oss/ 2006-03-23 07:38:13 -08:00
trident.h
trix.c
tuning.h
uart401.c
uart6850.c
ulaw.h
v_midi.c
v_midi.h
via82cxxx_audio.c [PATCH] sem2mutex: sound/oss/ 2006-03-23 07:38:13 -08:00
vidc_fill.S
vidc.c
vidc.h
vwsnd.c [PATCH] Fix compilation for sound/oss/vwsnd.c 2006-03-26 08:56:58 -08:00
waveartist.c [PATCH] Remove MODULE_PARM 2006-03-25 08:22:52 -08:00
waveartist.h
wavfront.c [PATCH] remove some more check_region stuff 2005-10-30 17:37:18 -08:00
wf_midi.c
ymfpci_image.h
ymfpci.c [PATCH] sem2mutex: sound/oss/ 2006-03-23 07:38:13 -08:00
ymfpci.h [PATCH] sem2mutex: sound/oss/ 2006-03-23 07:38:13 -08:00
yss225.c
yss225.h

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