linux/sound/soc/pxa
Russell King c9bd5e690a DMA-API: sound: fix dma mask handling in a lot of drivers
This code sequence is unsafe in modules:

static u64 mask = DMA_BIT_MASK(something);
...
	if (!dev->dma_mask)
		dev->dma_mask = &mask;

as if a module is reloaded, the mask will be pointing at the original
module's mask address, and this can lead to oopses.  Moreover, they
all follow this with:

	if (!dev->coherent_dma_mask)
		dev->coherent_dma_mask = mask;

where 'mask' is the same value as the statically defined mask, and this
bypasses the architecture's check on whether the DMA mask is possible.

Fix these issues by using the new dma_coerce_coherent_and_mask()
function.

Acked-by: Mark Brown <broonie@linaro.org>
Acked-by: Takashi Iwai <tiwai@suse.de>
Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
2013-10-31 14:48:47 +00:00
..
brownstone.c ASoC: brownstone: add .owner to struct snd_soc_card 2013-07-15 11:11:46 +01:00
corgi.c ASoC: pxa: remove __dev* attributes 2012-12-10 00:30:34 +09:00
e740_wm9705.c ASoC: pxa: remove __dev* attributes 2012-12-10 00:30:34 +09:00
e750_wm9705.c ASoC: pxa: remove __dev* attributes 2012-12-10 00:30:34 +09:00
e800_wm9712.c ASoC: pxa: remove __dev* attributes 2012-12-10 00:30:34 +09:00
em-x270.c ASoC: pxa: Add .owner to struct snd_soc_card 2011-12-22 11:04:18 +00:00
hx4700.c ASoC: pxa/hx4700: remove __dev* attributes 2012-12-10 00:29:59 +09:00
imote2.c ASoC: pxa: remove __dev* attributes 2012-12-10 00:30:34 +09:00
Kconfig ALSA: move dmaengine implementation from ASoC to ALSA core 2013-08-15 11:18:09 +01:00
magician.c ASoC: core: Add support for DAI and machine kcontrols. 2012-02-04 12:40:11 +00:00
Makefile ASoC: remove saarb and tavorevb3 machine drivers 2013-05-15 08:59:29 +04:00
mioa701_wm9713.c ASoC: mioa701_wm9713: Remove definition of ARRAY_AND_SIZE() 2013-08-14 20:09:38 +01:00
mmp-pcm.c ASoC: pxa: Remove duplicate inclusion of dmaengine.h 2013-08-22 10:43:49 +01:00
mmp-sspa.c ASoC: pxa: use snd_dmaengine_dai_dma_data 2013-08-15 11:29:07 +01:00
mmp-sspa.h ASoC: mmp: add sspa support 2012-06-13 13:13:39 +01:00
palm27x.c ASoC: palm27x: register card in platform_driver probe 2013-01-02 13:07:01 +00:00
poodle.c ASoC: pxa: remove __dev* attributes 2012-12-10 00:30:34 +09:00
pxa-ssp.c ASoC: pxa: pxa-ssp: set dma filter data from startup hook 2013-08-15 11:29:07 +01:00
pxa-ssp.h ASoC: multi-component - ASoC Multi-Component Support 2010-08-12 14:00:00 +01:00
pxa2xx-ac97.c ASoC: pxa: use snd_dmaengine_dai_dma_data 2013-08-15 11:29:07 +01:00
pxa2xx-ac97.h ASoC: pxa2xx: fixup multi-platform AC'97 build failures 2013-06-29 13:24:29 +01:00
pxa2xx-i2s.c ASoC: pxa: use snd_dmaengine_dai_dma_data 2013-08-15 11:29:07 +01:00
pxa2xx-i2s.h ASoC: multi-component - ASoC Multi-Component Support 2010-08-12 14:00:00 +01:00
pxa2xx-pcm.c DMA-API: sound: fix dma mask handling in a lot of drivers 2013-10-31 14:48:47 +00:00
raumfeld.c ASoC: Remove unnecessary -codec from cs4270 driver name 2012-02-28 12:35:20 +00:00
spitz.c ASoC: Change spitz_ext_control to take dapm as argument. 2012-02-17 08:09:33 -08:00
tosa.c ASoC: pxa: remove __dev* attributes 2012-12-10 00:30:34 +09:00
ttc-dkb.c ASoC: ttc_dkb: add .owner to struct snd_soc_card 2013-07-15 11:11:46 +01:00
z2.c ASoC: Convert z2 to table based DAPM init 2012-01-02 13:08:38 +00:00
zylonite.c ASoC: Fix double assignment of .owner in struct snd_soc_card 2013-06-14 11:00:03 +01:00