]> git.baikalelectronics.ru Git - kernel.git/commit
ASoC: simplify the SSP DMA parameters settings by run-time generation
authorEric Miao <eric.miao@marvell.com>
Thu, 23 Apr 2009 09:05:38 +0000 (17:05 +0800)
committerMark Brown <broonie@opensource.wolfsonmicro.com>
Thu, 23 Apr 2009 09:19:43 +0000 (10:19 +0100)
commitf8469aeed2e0eada55bd5e2b0f8ca84d93146802
tree0733bc16ee254be32e294bb4fc5cc5698a36901e
parent0e5d11d8e22c25174f9087a540977d6e1ab9ad90
ASoC: simplify the SSP DMA parameters settings by run-time generation

The SSP DMA parameters can actually be easily generated at run-time since
they are almost similar except for the FIFO width and direction. Another
benefit is the re-use of information from 'struct ssp_device', like SSDR
physical FIFO address and DRCMR register index for both directions.

Signed-off-by: Eric Miao <eric.miao@marvell.com>
Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
Reviewed-by: pHilipp Zabel <philipp.zabel@gmail.com>
sound/soc/pxa/pxa-ssp.c