aboutsummaryrefslogtreecommitdiffstats
path: root/sound/soc/omap/mcbsp.h
diff options
context:
space:
mode:
authorPeter Ujfalusi <peter.ujfalusi@ti.com>2012-02-14 08:41:29 -0500
committerLiam Girdwood <lrg@ti.com>2012-03-12 09:34:22 -0400
commitb8fb4907a74dbcbd0b21e02380d58e422bd4a1fe (patch)
tree0b3369b83f25835af04414bd2c992e65d3783092 /sound/soc/omap/mcbsp.h
parent256d9c251fe6800a494206b96d2572e5a98762d5 (diff)
ASoC: omap-mcbsp: Simplify DMA configuration
Configure the DMA request line, port address, and stream name at probe time instead of every time we start a stream. These settings are static in the system. Signed-off-by: Peter Ujfalusi <peter.ujfalusi@ti.com> Tested-by: Grazvydas Ignotas <notasas@gmail.com> Tested-by: Janusz Krzysztofik <jkrzyszt@tis.icnet.pl> Acked-by: Mark Brown <broonie@opensource.wolfsonmicro.com> Acked-by: Jarkko Nikula <jarkko.nikula@bitmer.com> Signed-off-by: Liam Girdwood <lrg@ti.com>
Diffstat (limited to 'sound/soc/omap/mcbsp.h')
-rw-r--r--sound/soc/omap/mcbsp.h7
1 files changed, 0 insertions, 7 deletions
diff --git a/sound/soc/omap/mcbsp.h b/sound/soc/omap/mcbsp.h
index d250bcc952d2..a5518d71913f 100644
--- a/sound/soc/omap/mcbsp.h
+++ b/sound/soc/omap/mcbsp.h
@@ -288,10 +288,6 @@ struct omap_mcbsp {
288 int rx_irq; 288 int rx_irq;
289 int tx_irq; 289 int tx_irq;
290 290
291 /* DMA stuff */
292 u8 dma_rx_sync;
293 u8 dma_tx_sync;
294
295 /* Protect the field .free, while checking if the mcbsp is in use */ 291 /* Protect the field .free, while checking if the mcbsp is in use */
296 struct omap_mcbsp_platform_data *pdata; 292 struct omap_mcbsp_platform_data *pdata;
297 struct omap_mcbsp_st_data *st_data; 293 struct omap_mcbsp_st_data *st_data;
@@ -328,9 +324,6 @@ int omap2_mcbsp_set_clks_src(struct omap_mcbsp *mcbsp, u8 fck_src_id);
328void omap2_mcbsp1_mux_clkr_src(struct omap_mcbsp *mcbsp, u8 mux); 324void omap2_mcbsp1_mux_clkr_src(struct omap_mcbsp *mcbsp, u8 mux);
329void omap2_mcbsp1_mux_fsr_src(struct omap_mcbsp *mcbsp, u8 mux); 325void omap2_mcbsp1_mux_fsr_src(struct omap_mcbsp *mcbsp, u8 mux);
330 326
331int omap_mcbsp_dma_ch_params(struct omap_mcbsp *mcbsp, unsigned int stream);
332int omap_mcbsp_dma_reg_params(struct omap_mcbsp *mcbsp, unsigned int stream);
333
334/* Sidetone specific API */ 327/* Sidetone specific API */
335int omap_st_set_chgain(struct omap_mcbsp *mcbsp, int channel, s16 chgain); 328int omap_st_set_chgain(struct omap_mcbsp *mcbsp, int channel, s16 chgain);
336int omap_st_get_chgain(struct omap_mcbsp *mcbsp, int channel, s16 *chgain); 329int omap_st_get_chgain(struct omap_mcbsp *mcbsp, int channel, s16 *chgain);