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)
commit2d7e71fa231035d69faffbfe506ef23638385994
tree0733bc16ee254be32e294bb4fc5cc5698a36901e
parent1a787e7ad242312af0afb2156596d42ee5e0c6bc
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