summaryrefslogtreecommitdiffstats
path: root/sound/soc/omap/omap-pcm.h
diff options
context:
space:
mode:
authorMisael Lopez Cruz <x0052729@ti.com>2010-02-22 15:09:19 -0600
committerMark Brown <broonie@opensource.wolfsonmicro.com>2010-02-23 10:38:52 +0000
commite17dd32f342d0e876f729b348614320b297cf6f3 (patch)
treeafbce2e6f125d13dc1b297840b88a1bc74df2891 /sound/soc/omap/omap-pcm.h
parentb9dd94a87e5b4d0e864636698931aeeeb3c9d770 (diff)
downloadop-kernel-dev-e17dd32f342d0e876f729b348614320b297cf6f3.zip
op-kernel-dev-e17dd32f342d0e876f729b348614320b297cf6f3.tar.gz
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 38a821d..b19975d 100644
--- a/sound/soc/omap/omap-pcm.h
+++ b/sound/soc/omap/omap-pcm.h
@@ -29,8 +29,10 @@ struct omap_pcm_dma_data {
char *name; /* stream identifier */
int dma_req; /* DMA request line */
unsigned long port_addr; /* transmit/receive register */
- int sync_mode; /* DMA sync mode */
void (*set_threshold)(struct snd_pcm_substream *substream);
+ int data_type; /* data type 8,16,32 */
+ int sync_mode; /* DMA sync mode */
+ int packet_size; /* packet size only in PACKET mode */
};
extern struct snd_soc_platform omap_soc_platform;
OpenPOWER on IntegriCloud