ASoC: davinci-mcasp: Fix dra7 DMA offset when using CFG port
authorPeter Ujfalusi <peter.ujfalusi@ti.com>
Thu, 2 Jun 2016 09:55:05 +0000 (12:55 +0300)
committerMark Brown <broonie@kernel.org>
Thu, 2 Jun 2016 09:57:48 +0000 (10:57 +0100)
commit8e1cc0e4bab7b44a55ea59d26683b618b34950bc
treebb64583132ec28ec59e16392463f4c859eb0f044
parent1a695a905c18548062509178b98bc91e67510864
ASoC: davinci-mcasp: Fix dra7 DMA offset when using CFG port

The TX and RX offset is different for each serializers when using the CFG
port for DMA access.
When using the CFG port only one serializer can be used per direction so
print error message and only configure the first serializer's offset.

Reported-by: Misael Lopez Cruz <misael.lopez@ti.com>
Suggested-by: Misael Lopez Cruz <misael.lopez@ti.com>
Signed-off-by: Peter Ujfalusi <peter.ujfalusi@ti.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/davinci/davinci-mcasp.c
sound/soc/davinci/davinci-mcasp.h