1
linux/sound
Anton Vorontsov 5c15a6869a ASoC: fsl_dma: Pass the proper device for dma mapping routines
The driver should pass a device that specifies internal DMA ops, but
substream->pcm is just a logical device, and thus doesn't have arch-
specific dma callbacks, therefore following bug appears:

  Freescale Synchronous Serial Interface (SSI) ASoC Driver
  ------------[ cut here ]------------
  kernel BUG at arch/powerpc/include/asm/dma-mapping.h:237!
  Oops: Exception in kernel mode, sig: 5 [#1]
  ...
  NIP [c02259c4] snd_malloc_dev_pages+0x58/0xac
  LR [c0225c74] snd_dma_alloc_pages+0xf8/0x108
  Call Trace:
  [df02bde0] [df02be2c] 0xdf02be2c (unreliable)
  [df02bdf0] [c0225c74] snd_dma_alloc_pages+0xf8/0x108
  [df02be10] [c023a100] fsl_dma_new+0x68/0x124
  [df02be20] [c02342ac] soc_new_pcm+0x1bc/0x234
  [df02bea0] [c02343dc] snd_soc_new_pcms+0xb8/0x148
  [df02bed0] [c023824c] cs4270_probe+0x34/0x124
  [df02bef0] [c0232fe8] snd_soc_instantiate_card+0x1a4/0x2f4
  [df02bf20] [c0233164] snd_soc_instantiate_cards+0x2c/0x68
  [df02bf30] [c0234704] snd_soc_register_platform+0x60/0x80
  [df02bf50] [c03d5664] fsl_soc_platform_init+0x18/0x28
  ...

This patch fixes the issue by using card's device instead.

Signed-off-by: Anton Vorontsov <avorontsov@ru.mvista.com>
Acked-by: Timur Tabi <timur@freescale.com>
Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
2009-04-06 23:35:42 +01:00
..
aoa ALSA: Convert to snd_card_create() in other sound/* 2009-01-12 15:21:19 +01:00
arm pxa2xx-ac97: fix displaying GSR after reset timeout 2009-04-02 16:34:15 +01:00
core ALSA: Introduce snd_card_create() 2009-01-12 14:56:41 +01:00
drivers ALSA: Convert to snd_card_create() in other sound/* 2009-01-12 15:21:19 +01:00
i2c V4L/DVB (10138): v4l2-ioctl: change to long return type to match unlocked_ioctl. 2009-01-02 17:11:34 -02:00
isa ALSA: opti9xx - Fix build breakage by snd_card_create() conversion 2009-01-14 09:34:06 +01:00
mips ALSA: Convert to snd_card_create() in other sound/* 2009-01-12 15:21:19 +01:00
oss m68k: dmasound - Kill warn_unused_result warnings 2009-01-12 20:56:42 +01:00
parisc ALSA: Convert to snd_card_create() in other sound/* 2009-01-12 15:21:19 +01:00
pci Merge branch 'topic/snd_card_new-err' into topic/asoc 2009-01-28 08:08:32 +01:00
pcmcia ALSA: Return proper error code at probe in sound/pcmcia/* 2009-01-12 15:21:56 +01:00
ppc ALSA: Convert to snd_card_create() in other sound/* 2009-01-12 15:21:19 +01:00
sh ALSA: Convert to snd_card_create() in other sound/* 2009-01-12 15:21:19 +01:00
soc ASoC: fsl_dma: Pass the proper device for dma mapping routines 2009-04-06 23:35:42 +01:00
sparc ALSA: Convert to snd_card_create() in other sound/* 2009-01-12 15:21:19 +01:00
spi ALSA: Convert to snd_card_create() in other sound/* 2009-01-12 15:21:19 +01:00
synth
usb Merge branch 'topic/snd_card_new-err' into topic/asoc 2009-01-28 08:08:32 +01:00
ac97_bus.c
Kconfig
last.c
Makefile
sound_core.c
sound_firmware.c