]> git.baikalelectronics.ru Git - kernel.git/commit
ASoC: restructure dmaengine_pcm_request_chan_of()
authorStephen Warren <swarren@nvidia.com>
Tue, 3 Dec 2013 21:26:32 +0000 (14:26 -0700)
committerMark Brown <broonie@linaro.org>
Mon, 9 Dec 2013 18:42:27 +0000 (18:42 +0000)
commit579236025fcc813ea63bc9bdf737477c72a4bffb
treeae84542e406d20f97bdc84e8a4ed31478c5fe0f3
parent57d406acc7ecc2db72a396735f8150eeaa7198c7
ASoC: restructure dmaengine_pcm_request_chan_of()

Restructure the internals of dmaengine_pcm_request_chan_of() as a loop
over all channels to be allocated. This makes it easier to add logic
that applies to all allocated channels, without having to duplicate that
logic in each of the half-duplex/full-duplex paths.

Signed-off-by: Stephen Warren <swarren@nvidia.com>
Acked-by: Lars-Peter Clausen <lars@metafoo.de>
Signed-off-by: Mark Brown <broonie@linaro.org>
sound/soc/soc-generic-dmaengine-pcm.c