ASoC: davinci-mcasp: Fix DIT only McASP instance support
authorPeter Ujfalusi <peter.ujfalusi@ti.com>
Mon, 2 Feb 2015 12:38:33 +0000 (14:38 +0200)
committerMark Brown <broonie@kernel.org>
Mon, 2 Feb 2015 18:32:43 +0000 (18:32 +0000)
commit7e85bf3f131cbec95b11b4d4bb2aa27cdd55f772
treee4c50790937950b37b3a098361dd5905a1a60f19
parentf44183e01414ee8aab549b2669c98b54760c7c37
ASoC: davinci-mcasp: Fix DIT only McASP instance support

One of the McASP instances in DM646x line of DMSoC only supports DIT mode.
This means that the given IP does not have support for rx and all the rx
related resources are missing, like irq and DMA request.
The driver should not fail if any or all  of the RX resource is missing
when the op_mode is set to DIT mode.
Since RX is not possible in DIT mode, we can just ignore the rx resources
when the McASP is used in DIT mode.

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