ASoC: omap-mcbsp: Clean up dma_data addr initialization code
authorPeter Ujfalusi <peter.ujfalusi@ti.com>
Thu, 8 Nov 2018 07:29:53 +0000 (09:29 +0200)
committerMark Brown <broonie@kernel.org>
Tue, 13 Nov 2018 17:49:55 +0000 (09:49 -0800)
commitdd443a7c0b00edb9aa471a18e4238b0199b3a3ad
tree91cb7df3e98a0cfdf230b6d6f715883d71bd3a9b
parent0246c661b6f0051ef7bfbfff01d8ef7fd0359372
ASoC: omap-mcbsp: Clean up dma_data addr initialization code

Make the omap_mcbsp_dma_reg_params() a bit more intuitive to read for the
first glance by using SNDRV_PCM_STREAM_PLAYBACK/CAPTURE and to group the
outermost if case by stream direction.

While there, fix the outdated comment for the function.

Signed-off-by: Peter Ujfalusi <peter.ujfalusi@ti.com>
Acked-by: Jarkko Nikula <jarkko.nikula@bitmer.com>
Tested-by: Jarkko Nikula <jarkko.nikula@bitmer.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/omap/mcbsp.c