ASoC: davinci-mcasp: Choose PCM driver based on configured DMA controller
authorJyri Sarha <jsarha@ti.com>
Tue, 2 Jun 2015 20:09:34 +0000 (23:09 +0300)
committerMark Brown <broonie@kernel.org>
Tue, 9 Jun 2015 18:00:52 +0000 (19:00 +0100)
commit9fbd58cf4ab0b6fcabe1ccb8d391a1ed88f04d7e
tree99b6210d0ac5a189589180d09c78fb4fa5770ee3
parent19db62ea0558d71844847cdf4c65a655df2ab69f
ASoC: davinci-mcasp: Choose PCM driver based on configured DMA controller

Find the configured DMA controller by asking for a DMA channel in the
probe phase and releasing it right after. The controller device can be
found via the dma_chan struct and the controller is recognized from
the compatible property of its device node. The patch assumes EDMA if
there is no device node.

Signed-off-by: Jyri Sarha <jsarha@ti.com>
Acked-by: Peter Ujfalusi <peter.ujfalusi@ti.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/davinci/davinci-mcasp.c