diff options
author | Peter Ujfalusi <peter.ujfalusi@ti.com> | 2012-02-14 08:23:15 -0500 |
---|---|---|
committer | Liam Girdwood <lrg@ti.com> | 2012-03-12 09:34:22 -0400 |
commit | 256d9c251fe6800a494206b96d2572e5a98762d5 (patch) | |
tree | 1bca28ebdb698c636734f1fee8ff14ca60cc874c /sound/soc/omap/mcbsp.h | |
parent | 2ee6595069f29b918b957a013debfae83e68724d (diff) |
ASoC: omap-mcbsp: Merge the omap_mcbsp_data into omap_mcbsp structure
Since the drivers has been merged, merge the two structures together.
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.h | 33 |
1 files changed, 15 insertions, 18 deletions
diff --git a/sound/soc/omap/mcbsp.h b/sound/soc/omap/mcbsp.h index ac90c1a4a489..d250bcc952d2 100644 --- a/sound/soc/omap/mcbsp.h +++ b/sound/soc/omap/mcbsp.h | |||
@@ -269,27 +269,20 @@ struct omap_mcbsp_st_data { | |||
269 | s16 ch1gain; | 269 | s16 ch1gain; |
270 | }; | 270 | }; |
271 | 271 | ||
272 | struct omap_mcbsp_data { | ||
273 | struct omap_mcbsp_reg_cfg regs; | ||
274 | struct omap_pcm_dma_data dma_data[2]; | ||
275 | unsigned int fmt; | ||
276 | /* | ||
277 | * Flags indicating is the bus already activated and configured by | ||
278 | * another substream | ||
279 | */ | ||
280 | int active; | ||
281 | int configured; | ||
282 | unsigned int in_freq; | ||
283 | int clk_div; | ||
284 | int wlen; | ||
285 | }; | ||
286 | |||
287 | struct omap_mcbsp { | 272 | struct omap_mcbsp { |
288 | struct device *dev; | 273 | struct device *dev; |
274 | struct clk *fclk; | ||
275 | spinlock_t lock; | ||
289 | unsigned long phys_base; | 276 | unsigned long phys_base; |
290 | unsigned long phys_dma_base; | 277 | unsigned long phys_dma_base; |
291 | void __iomem *io_base; | 278 | void __iomem *io_base; |
292 | u8 id; | 279 | u8 id; |
280 | /* | ||
281 | * Flags indicating is the bus already activated and configured by | ||
282 | * another substream | ||
283 | */ | ||
284 | int active; | ||
285 | int configured; | ||
293 | u8 free; | 286 | u8 free; |
294 | 287 | ||
295 | int rx_irq; | 288 | int rx_irq; |
@@ -300,16 +293,20 @@ struct omap_mcbsp { | |||
300 | u8 dma_tx_sync; | 293 | u8 dma_tx_sync; |
301 | 294 | ||
302 | /* Protect the field .free, while checking if the mcbsp is in use */ | 295 | /* Protect the field .free, while checking if the mcbsp is in use */ |
303 | spinlock_t lock; | ||
304 | struct omap_mcbsp_platform_data *pdata; | 296 | struct omap_mcbsp_platform_data *pdata; |
305 | struct clk *fclk; | ||
306 | struct omap_mcbsp_st_data *st_data; | 297 | struct omap_mcbsp_st_data *st_data; |
307 | struct omap_mcbsp_data mcbsp_data; | 298 | struct omap_mcbsp_reg_cfg cfg_regs; |
299 | struct omap_pcm_dma_data dma_data[2]; | ||
308 | int dma_op_mode; | 300 | int dma_op_mode; |
309 | u16 max_tx_thres; | 301 | u16 max_tx_thres; |
310 | u16 max_rx_thres; | 302 | u16 max_rx_thres; |
311 | void *reg_cache; | 303 | void *reg_cache; |
312 | int reg_cache_size; | 304 | int reg_cache_size; |
305 | |||
306 | unsigned int fmt; | ||
307 | unsigned int in_freq; | ||
308 | int clk_div; | ||
309 | int wlen; | ||
313 | }; | 310 | }; |
314 | 311 | ||
315 | void omap_mcbsp_config(struct omap_mcbsp *mcbsp, | 312 | void omap_mcbsp_config(struct omap_mcbsp *mcbsp, |