aboutsummaryrefslogtreecommitdiffstats
path: root/sound/soc/omap/omap-pcm.h
diff options
context:
space:
mode:
authorMisael Lopez Cruz <x0052729@ti.com>2010-02-22 16:09:19 -0500
committerMark Brown <broonie@opensource.wolfsonmicro.com>2010-02-23 05:38:52 -0500
commite17dd32f342d0e876f729b348614320b297cf6f3 (patch)
treeafbce2e6f125d13dc1b297840b88a1bc74df2891 /sound/soc/omap/omap-pcm.h
parentb9dd94a87e5b4d0e864636698931aeeeb3c9d770 (diff)
ASoC: OMAP: data_type and sync_mode configurable in audio dma
Allow client drivers to set the data_type (16, 32) and the sync_mode (element, packet, etc) of the audio dma transferences. McBSP dai driver configures it for a data type of 16 bits and element sync mode. Signed-off-by: Misael Lopez Cruz <x0052729@ti.com> Signed-off-by: Jorge Eduardo Candelaria <jorge.candelaria@ti.com> Acked-by: Liam Girdwood <lrg@slimlogic.co.uk> Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
Diffstat (limited to 'sound/soc/omap/omap-pcm.h')
-rw-r--r--sound/soc/omap/omap-pcm.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/sound/soc/omap/omap-pcm.h b/sound/soc/omap/omap-pcm.h
index 38a821dd4118..b19975d26907 100644
--- a/sound/soc/omap/omap-pcm.h
+++ b/sound/soc/omap/omap-pcm.h
@@ -29,8 +29,10 @@ struct omap_pcm_dma_data {
29 char *name; /* stream identifier */ 29 char *name; /* stream identifier */
30 int dma_req; /* DMA request line */ 30 int dma_req; /* DMA request line */
31 unsigned long port_addr; /* transmit/receive register */ 31 unsigned long port_addr; /* transmit/receive register */
32 int sync_mode; /* DMA sync mode */
33 void (*set_threshold)(struct snd_pcm_substream *substream); 32 void (*set_threshold)(struct snd_pcm_substream *substream);
33 int data_type; /* data type 8,16,32 */
34 int sync_mode; /* DMA sync mode */
35 int packet_size; /* packet size only in PACKET mode */
34}; 36};
35 37
36extern struct snd_soc_platform omap_soc_platform; 38extern struct snd_soc_platform omap_soc_platform;