ASoC: imx-pcm: Request DMA channel early
authorLars-Peter Clausen <lars@metafoo.de>
Wed, 22 Feb 2012 09:49:06 +0000 (10:49 +0100)
committerMark Brown <broonie@opensource.wolfsonmicro.com>
Wed, 22 Feb 2012 13:21:49 +0000 (13:21 +0000)
commit4564d10f3066a1abf5053936684e2c8495163def
tree622912c7aeb3b2aa1a8264954a355c3ea833ae9f
parent91a38540f504cdde7cb62668f7a6d52e3bd0178b
ASoC: imx-pcm: Request DMA channel early

Request the DMA channel in the pcm open callback. This allows us to let open
fail if there is no dma channel available.

Signed-off-by: Lars-Peter Clausen <lars@metafoo.de>
Tested-by: Shawn Guo <shawn.guo@linaro.org>
Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
sound/soc/imx/imx-pcm-dma-mx2.c