]> git.baikalelectronics.ru Git - kernel.git/commit
ASoC: ep93xx: Use ep93xx_dma_params instead of ep93xx_pcm_dma_params
authorLars-Peter Clausen <lars@metafoo.de>
Fri, 22 Mar 2013 13:12:10 +0000 (14:12 +0100)
committerMark Brown <broonie@opensource.wolfsonmicro.com>
Tue, 26 Mar 2013 14:16:52 +0000 (14:16 +0000)
commit474752223f0eb194a30aeb5e93ce1157421ec91b
tree1ae1ad67cb1c31e16c762d7c4f744e4f07ff6fd2
parentc92335d92a2c84aeeca5acecc52ce10a55597279
ASoC: ep93xx: Use ep93xx_dma_params instead of ep93xx_pcm_dma_params

Currently the ep93xx_dma_params struct which is passed to the dmaengine driver
is constructed at runtime from the ep93xx_pcm_dma_params that gets passed to the
ep93xx PCM driver from one of the ep93xx DAI drivers. The ep93xx_pcm_dma_params
struct is almost identical to the ep93xx_dma_params struct. The only missing
field is the 'direction' field, which is computed at runtime in the PCM driver
based on the current substream. Since we know in advance which
ep93xx_pcm_dma_params struct is being used for which substream at compile time,
we also already know which direction to use at compile time. So we can easily
replace all instances of ep93xx_pcm_dma_params with their ep93xx_dma_params
counterpart. This allows us to simplify the code in the ep93xx pcm driver quite
a bit.

Signed-off-by: Lars-Peter Clausen <lars@metafoo.de>
Reviewed-by: Ryan Mallon <rmallon@gmail.com>
Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
sound/soc/cirrus/edb93xx.c
sound/soc/cirrus/ep93xx-ac97.c
sound/soc/cirrus/ep93xx-i2s.c
sound/soc/cirrus/ep93xx-pcm.c
sound/soc/cirrus/ep93xx-pcm.h [deleted file]
sound/soc/cirrus/simone.c
sound/soc/cirrus/snappercl15.c