linux/arch/arm/plat-omap
Jarkko Nikula c12abc012e ARM: OMAP: McBSP: Fix ASoC on OMAP1510 by fixing API of omap_mcbsp_start/stop
Simultaneous audio playback and capture on OMAP1510 can cause that second
stream is stalled if there is enough delay between startup of the audio
streams.

Current implementation of the omap_mcbsp_start is starting both transmitter
and receiver at the same time and it is called only for firstly started
audio stream from the OMAP McBSP based ASoC DAI driver.

Since DMA request lines on OMAP1510 are edge sensitive, the DMA request is
missed if there is no DMA transfer set up at that time when the first word
after McBSP startup is transmitted. The problem hasn't noted before since
later OMAPs are using level sensitive DMA request lines.

Fix the problem by changing API of omap_mcbsp_start and omap_mcbsp_stop by
allowing to start and stop individually McBSP transmitter and receiver
logics. Then call those functions individually for both audio playback
and capture streams. This ensures that DMA transfer is setup before
transmitter or receiver is started.

Thanks to Janusz Krzysztofik <jkrzyszt@tis.icnet.pl> for detailed problem
analysis and Peter Ujfalusi <peter.ujfalusi@nokia.com> for info about DMA
request line behavior differences between the OMAP generations.

Reported-and-tested-by: Janusz Krzysztofik <jkrzyszt@tis.icnet.pl>
Signed-off-by: Jarkko Nikula <jhnikula@gmail.com>
Acked-by: Tony Lindgren <tony@atomide.com>
Acked-by: Peter Ujfalusi <peter.ujfalusi@nokia.com>
Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
2009-08-07 10:57:42 +01:00
..
include/mach ARM: OMAP: McBSP: Fix ASoC on OMAP1510 by fixing API of omap_mcbsp_start/stop 2009-08-07 10:57:42 +01:00
clock.c Merge branch 'omap4' into for-next 2009-05-28 15:45:14 -07:00
common.c Merge branch 'omap4' into for-next 2009-05-28 15:45:14 -07:00
cpu-omap.c [ARM] OMAP2: Implement CPUfreq frequency table based on PRCM table 2009-02-08 17:50:28 +00:00
debug-devices.c ARM: OMAP: Switch to gpio_request/free calls 2008-12-10 17:35:30 -08:00
debug-leds.c ARM: OMAP: switch to standard gpio get/set calls 2008-12-10 17:35:25 -08:00
devices.c ARM: OMAP4: Add minimal support for omap4 2009-05-28 14:16:04 -07:00
dma.c ARM: OMAP4: Add minimal support for omap4 2009-05-28 14:16:04 -07:00
dmtimer.c ARM: OMAP4: Add minimal support for omap4 2009-05-28 14:16:04 -07:00
fb.c ARM: OMAP: Fix printing of reserved memory for frambuffer 2009-05-11 09:58:19 -07:00
gpio.c ARM: OMAP4: Add minimal support for omap4 2009-05-28 14:16:04 -07:00
i2c.c ARM: OMAP: Update contact address of I2C registration helper 2009-05-25 11:08:43 -07:00
io.c ARM: OMAP4: Add minimal support for omap4 2009-05-28 14:16:04 -07:00
iommu.c omap iommu: tlb and pagetable primitives 2009-05-05 14:52:39 +03:00
iopgtable.h omap iommu: tlb and pagetable primitives 2009-05-05 14:52:39 +03:00
iovmm.c omap iommu: simple virtual address space management 2009-05-19 08:23:49 +03:00
Kconfig [ARM] Kconfig: remove 'default n' 2009-05-31 15:12:25 +01:00
mailbox.c block: implement and enforce request peek/start/fetch 2009-05-11 09:52:18 +02:00
Makefile omap iommu: entries for Kconfig and Makefile 2009-05-22 10:16:36 +03:00
mcbsp.c ARM: OMAP: McBSP: Fix ASoC on OMAP1510 by fixing API of omap_mcbsp_start/stop 2009-08-07 10:57:42 +01:00
mux.c ARM: OMAP4: Add minimal support for omap4 2009-05-28 14:16:04 -07:00
ocpi.c [ARM] Convert asm/io.h to linux/io.h 2008-09-06 12:10:45 +01:00
sram.c OMAP3: Add support for DPLL3 divisor values higher than 2 2009-06-19 19:09:32 -06:00
usb.c ARM: OMAP: get rid of OMAP_TAG_USB, v2 2009-03-23 18:51:20 -07:00