diff options
author | Peter Ujfalusi <peter.ujfalusi@ti.com> | 2012-09-14 08:05:55 -0400 |
---|---|---|
committer | Mark Brown <broonie@opensource.wolfsonmicro.com> | 2012-09-22 11:13:01 -0400 |
commit | 04564e3258304df607d4536de42603b4c8e21e1a (patch) | |
tree | 2e36a974e3438dd72191dd7e230331b238d33b77 /sound/soc/omap/omap-mcbsp.c | |
parent | 5a40c57af55b17dabe25854c9245171515bb5d23 (diff) |
ASoC: OMAP: mcbsp, mcpdm, dmic: Let omap-pcm to pick the dma_type
omap-pcm can figure out the correct dma_type based on the stream's format.
In this way we can get rid of the plat/dma.h include from these drivers.
Signed-off-by: Peter Ujfalusi <peter.ujfalusi@ti.com>
Tested-by: Janusz Krzysztofik <jkrzyszt@tis.icnet.pl>
Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
Diffstat (limited to 'sound/soc/omap/omap-mcbsp.c')
-rw-r--r-- | sound/soc/omap/omap-mcbsp.c | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/sound/soc/omap/omap-mcbsp.c b/sound/soc/omap/omap-mcbsp.c index 5b3baccd74c3..a23064644e58 100644 --- a/sound/soc/omap/omap-mcbsp.c +++ b/sound/soc/omap/omap-mcbsp.c | |||
@@ -34,7 +34,6 @@ | |||
34 | #include <sound/initval.h> | 34 | #include <sound/initval.h> |
35 | #include <sound/soc.h> | 35 | #include <sound/soc.h> |
36 | 36 | ||
37 | #include <plat/dma.h> | ||
38 | #include <plat/mcbsp.h> | 37 | #include <plat/mcbsp.h> |
39 | #include "mcbsp.h" | 38 | #include "mcbsp.h" |
40 | #include "omap-mcbsp.h" | 39 | #include "omap-mcbsp.h" |
@@ -234,11 +233,9 @@ static int omap_mcbsp_dai_hw_params(struct snd_pcm_substream *substream, | |||
234 | 233 | ||
235 | switch (params_format(params)) { | 234 | switch (params_format(params)) { |
236 | case SNDRV_PCM_FORMAT_S16_LE: | 235 | case SNDRV_PCM_FORMAT_S16_LE: |
237 | dma_data->data_type = OMAP_DMA_DATA_TYPE_S16; | ||
238 | wlen = 16; | 236 | wlen = 16; |
239 | break; | 237 | break; |
240 | case SNDRV_PCM_FORMAT_S32_LE: | 238 | case SNDRV_PCM_FORMAT_S32_LE: |
241 | dma_data->data_type = OMAP_DMA_DATA_TYPE_S32; | ||
242 | wlen = 32; | 239 | wlen = 32; |
243 | break; | 240 | break; |
244 | default: | 241 | default: |