]> git.baikalelectronics.ru Git - kernel.git/commit
ASoC: tegra: allocate AHUB FIFO during probe() not startup()
authorStephen Warren <swarren@nvidia.com>
Fri, 15 Nov 2013 18:48:47 +0000 (11:48 -0700)
committerStephen Warren <swarren@nvidia.com>
Wed, 11 Dec 2013 23:43:50 +0000 (16:43 -0700)
commitfbc9ed3ca56124bd4d93ef8116a5c5dfe1386570
tree2144f3e3a3ca3cfa6267c75275f2b5a8f905bf20
parent92599a25150daf08835b2858fba4dec12a20f82d
ASoC: tegra: allocate AHUB FIFO during probe() not startup()

The Tegra30 I2S driver currently allocates DMA FIFOs from the AHUB only
when an audio stream starts playback. This is theoretically nice for
resource sharing, but makes no practical difference for any configuration
the drivers currently support. However, this deferral prevents conversion
to the standard DMA DT bindings, since conversion requires knowledge of
the specific DMA channel to be allocated, which in turn depends on which
specific FIFO was allocated.

For this reason, move the FIFO allocation into probe() to allow later
conversion to the standard DMA DT bindings.

Signed-off-by: Stephen Warren <swarren@nvidia.com>
Acked-by: Mark Brown <broonie@linaro.org>
sound/soc/tegra/tegra30_i2s.c