original_kernel/sound/soc/nuc900
Axel Lin 3f1af9d26f ASoC: Fix missing spin_unlock_irqrestore
In nuc900_dma_hw_params(), if snd_pcm_lib_malloc_pages failed
it returns without calling spin_unlock_irqrestore().

Since snd_pcm_lib_malloc_pages() does not touch struct nuc900_audio,
we don't need to hold the lock while calling snd_pcm_lib_malloc_pages().
Fix it by moving spin_lock_irqsave() down to after snd_pcm_lib_malloc_pages().

In nuc900_dma_prepare(), spin_unlock_irqrestore() is missing in the error path.
Fix it by removing the return in default case.

Signed-off-by: Axel Lin <axel.lin@gmail.com>
Acked-by: Wan ZongShun <mcuos.com@gmail.com>
Acked-by: Liam Girdwood <lrg@slimlogic.co.uk>
Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
2010-11-30 11:09:24 +00:00
..
Kconfig
Makefile
nuc900-ac97.c ASoC: Remove unneeded !! operations while checking return value of nuc900_checkready 2010-11-29 18:28:53 +00:00
nuc900-audio.c ASoC: multi-component - ASoC Multi-Component Support 2010-08-12 14:00:00 +01:00
nuc900-audio.h ASoC: Fix compile error for nuc900-pcm.c 2010-11-29 18:28:53 +00:00
nuc900-pcm.c ASoC: Fix missing spin_unlock_irqrestore 2010-11-30 11:09:24 +00:00