ASoC: mxs-pcm: Request DMA channel early
authorLars-Peter Clausen <lars@metafoo.de>
Wed, 22 Feb 2012 09:49:07 +0000 (10:49 +0100)
committerMark Brown <broonie@opensource.wolfsonmicro.com>
Wed, 22 Feb 2012 13:21:49 +0000 (13:21 +0000)
commit95a771ca16ad63cfd665bebadbc543857db6fa4e
tree1d7b2eb1d8f02a3528dd47619bc8436b001e7a3a
parent4564d10f3066a1abf5053936684e2c8495163def
ASoC: mxs-pcm: Request DMA channel early

Request the DMA channel in the PCM open callback instead of the hwparams
callback, this allows us to let open fail if no dma channel is available. This
also fixes a bug where the channel will be requested multiple times if hwparams
is called multiple times.

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/mxs/mxs-pcm.c
This page took 0.030458 seconds and 5 git commands to generate.