OMAP: McBSP: Add link DMA mode selection
authorPeter Ujfalusi <peter.ujfalusi@nokia.com>
Thu, 20 Aug 2009 13:18:14 +0000 (16:18 +0300)
committerMark Brown <broonie@opensource.wolfsonmicro.com>
Thu, 20 Aug 2009 19:10:27 +0000 (20:10 +0100)
commit98cb20e88957faf9c99e194242caac7f55dd47e4
treee87f54f9cf9cba27a88711d336d4f4b6bdb3b396
parent4c8200aeb04b8aeaf8c7425f49caf761e2cda95a
OMAP: McBSP: Add link DMA mode selection

It adds a new sysfs file, where the user can configure the mcbsp mode to use.
If the mcbsp channel is in use, it does not allow the change.
Than in omap_pcm_open we can call the omap_mcbsp_get_opmode to get the mode,
store it, than use it to implement the different modes.

Signed-off-by: Peter Ujfalusi <peter.ujfalusi@nokia.com>
Signed-off-by: Eduardo Valentin <eduardo.valentin@nokia.com>
Acked-by: Tony Lindgren <tony@atomide.com>
Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
arch/arm/plat-omap/include/mach/mcbsp.h
arch/arm/plat-omap/mcbsp.c