linux/sound/soc/samsung
Arnd Bergmann b9a1a74381 ASoC: samsung: pass DMA channels as pointers
ARM64 allmodconfig produces a bunch of warnings when building the
samsung ASoC code:

sound/soc/samsung/dmaengine.c: In function 'samsung_asoc_init_dma_data':
sound/soc/samsung/dmaengine.c:53:32: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
   playback_data->filter_data = (void *)playback->channel;
sound/soc/samsung/dmaengine.c:60:31: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
   capture_data->filter_data = (void *)capture->channel;

We could easily shut up the warning by adding an intermediate cast,
but there is a bigger underlying problem: The use of IORESOURCE_DMA
to pass data from platform code to device drivers is dubious to start
with, as what we really want is a pointer that can be passed into
a filter function.

Note that on s3c64xx, the pl08x DMA data is already a pointer, but
gets cast to resource_size_t so we can pass it as a resource, and it
then gets converted back to a pointer. In contrast, the data we pass
for s3c24xx is an index into a device specific table, and we artificially
convert that into a pointer for the filter function.

Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Reviewed-by: Krzysztof Kozlowski <k.kozlowski@samsung.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
2015-11-18 17:51:46 +00:00
..
ac97.c ASoC: samsung: pass DMA channels as pointers 2015-11-18 17:51:46 +00:00
arndale_rt5631.c Merge remote-tracking branches 'asoc/topic/au1x', 'asoc/topic/bcm2835', 'asoc/topic/blackfin' and 'asoc/topic/card' into asoc-next 2015-08-30 15:52:41 +01:00
bells.c ASoC: samsung: drop owner assignment from platform_drivers 2014-10-20 16:22:13 +02:00
dma.h ASoC: samsung: pass DMA channels as pointers 2015-11-18 17:51:46 +00:00
dmaengine.c ASoC: samsung: pass DMA channels as pointers 2015-11-18 17:51:46 +00:00
h1940_uda1380.c ASoC: h1940_uda1380: Constify rate constraints 2015-10-23 08:49:03 +09:00
i2s-regs.h ASoC: samsung: add support for exynos7 I2S controller 2014-11-07 10:41:22 +00:00
i2s.c ASoC: samsung: pass DMA channels as pointers 2015-11-18 17:51:46 +00:00
i2s.h ASoC: samsung: Allow setting OP_CLK of the IIS Multi Audio Interface 2014-05-20 23:20:57 +01:00
idma.c ASoC: samsung: drop owner assignment from platform_drivers 2014-10-20 16:22:13 +02:00
idma.h ASoC: Fix __iomem annotation for IDMA registers 2011-11-29 17:28:16 +00:00
jive_wm8750.c ASoC: jive: Automatically disconnect non-connected pins 2015-01-16 16:59:08 +00:00
Kconfig ASoC: samsung: wolfson: Improve compile test coverage 2015-05-04 13:51:19 +01:00
littlemill.c ASoC: littlemill: Register jacks at the card level 2015-03-04 17:10:44 +00:00
ln2440sbc_alc650.c ASoC: Samsung: Do not register samsung audio dma device as pdev 2012-12-07 19:36:07 +09:00
lowland.c ASoC: lowland: Use card DAPM context to access widgets 2015-05-04 13:51:19 +01:00
Makefile ASoC: samsung: Remove goni or aquila with the WM8994 2015-02-07 07:53:07 +08:00
neo1973_wm8753.c ASoC: neo1973_wm8753: Use static DAI format setup 2015-01-06 17:34:30 +00:00
odroidx2_max98090.c ASoC: samsung: odroidx2: Handle I2S CDCLK clock conditionally 2015-01-14 19:46:54 +00:00
pcm.c ASoC: samsung: pass DMA channels as pointers 2015-11-18 17:51:46 +00:00
pcm.h
regs-ac97.h ASoC: samsung: Trivial cleanups in header files 2013-12-30 12:05:56 +00:00
regs-i2s-v2.h
regs-iis.h ASoC: samsung: Trivial cleanups in header files 2013-12-30 12:05:56 +00:00
rx1950_uda1380.c ASoC: rx1950_uda1380: Constify rate constraints 2015-10-23 08:49:16 +09:00
s3c24xx_simtec_hermes.c ASoC: samsung: drop owner assignment from platform_drivers 2014-10-20 16:22:13 +02:00
s3c24xx_simtec_tlv320aic23.c ASoC: samsung: drop owner assignment from platform_drivers 2014-10-20 16:22:13 +02:00
s3c24xx_simtec.c ASoC: s3c24xx_simtec: Use static DAI format setup 2015-01-06 17:34:30 +00:00
s3c24xx_simtec.h
s3c24xx_uda134x.c ASoC: s3c24xx_uda134x: Use static DAI format setup 2015-01-06 17:34:31 +00:00
s3c24xx-i2s.c ASoC: samsung: pass DMA channels as pointers 2015-11-18 17:51:46 +00:00
s3c24xx-i2s.h
s3c2412-i2s.c ASoC: samsung: pass DMA channels as pointers 2015-11-18 17:51:46 +00:00
s3c2412-i2s.h
s3c-i2s-v2.c ASoC: samsung: remove unused DMA data 2014-07-14 19:53:43 +01:00
s3c-i2s-v2.h ASoC: switch over to use snd_soc_register_component() on s3c i2s 2013-03-26 21:57:31 +00:00
smartq_wm8987.c ASoC: smartq: Use card DAPM context to access widgets 2015-05-04 13:51:19 +01:00
smdk2443_wm9710.c ASoC: Samsung: Do not register samsung audio dma device as pdev 2012-12-07 19:36:07 +09:00
smdk_spdif.c ASoC: Samsung: Do not register samsung audio dma device as pdev 2012-12-07 19:36:07 +09:00
smdk_wm8580.c ASoC: smdk_wm8580: Pass card DAPM context to snd_soc_dapm_disable_pin() 2015-01-16 16:59:36 +00:00
smdk_wm8580pcm.c ASoC: smdk_wm8570pcm: Use static DAI format setup 2015-01-06 17:34:32 +00:00
smdk_wm8994.c ASoC: smdk_wm8994: Use card DAPM context to access widgets 2015-05-04 13:51:19 +01:00
smdk_wm8994pcm.c ASoC: smdk_wm8994pcm: Use static DAI format setup 2015-01-06 17:34:32 +00:00
smdk_wm9713.c ASoC: Samsung: Do not register samsung audio dma device as pdev 2012-12-07 19:36:07 +09:00
snow.c ASoC: Set missing card owner field 2015-08-21 09:07:19 -07:00
spdif.c ASoC: samsung: pass DMA channels as pointers 2015-11-18 17:51:46 +00:00
spdif.h
speyside.c ASoC: speyside: Use snd_soc_codec_get_dapm() 2015-05-04 13:51:20 +01:00
tobermory.c ASoC: tobermory: Register jacks at the card level 2015-03-04 17:10:46 +00:00