diff options
author | Peter Ujfalusi <peter.ujfalusi@ti.com> | 2012-09-14 08:05:51 -0400 |
---|---|---|
committer | Mark Brown <broonie@opensource.wolfsonmicro.com> | 2012-09-22 11:12:58 -0400 |
commit | 061fb36db7c0187aa90b95f1ba56f6192f42b984 (patch) | |
tree | 5c6f148cec6de82edebd4111e8ba665c3754a7ad /sound/soc/omap | |
parent | e512589c17572e7498693a3e05eefa44e622f62b (diff) |
ASoC: OMAP: Remove sync_mode from omap_pcm_dma_data struct
The omap-pcm platform driver no longer needs this parameter to select
between ELEMENT and PACKET mode. The selection is based on the configured
packet_size.
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')
-rw-r--r-- | sound/soc/omap/omap-dmic.c | 1 | ||||
-rw-r--r-- | sound/soc/omap/omap-hdmi.c | 1 | ||||
-rw-r--r-- | sound/soc/omap/omap-mcbsp.c | 5 | ||||
-rw-r--r-- | sound/soc/omap/omap-mcpdm.c | 2 | ||||
-rw-r--r-- | sound/soc/omap/omap-pcm.h | 1 |
5 files changed, 1 insertions, 9 deletions
diff --git a/sound/soc/omap/omap-dmic.c b/sound/soc/omap/omap-dmic.c index 75f5dca0e8d2..60b7b8cd1c7d 100644 --- a/sound/soc/omap/omap-dmic.c +++ b/sound/soc/omap/omap-dmic.c | |||
@@ -64,7 +64,6 @@ struct omap_dmic { | |||
64 | static struct omap_pcm_dma_data omap_dmic_dai_dma_params = { | 64 | static struct omap_pcm_dma_data omap_dmic_dai_dma_params = { |
65 | .name = "DMIC capture", | 65 | .name = "DMIC capture", |
66 | .data_type = OMAP_DMA_DATA_TYPE_S32, | 66 | .data_type = OMAP_DMA_DATA_TYPE_S32, |
67 | .sync_mode = OMAP_DMA_SYNC_PACKET, | ||
68 | }; | 67 | }; |
69 | 68 | ||
70 | static inline void omap_dmic_write(struct omap_dmic *dmic, u16 reg, u32 val) | 69 | static inline void omap_dmic_write(struct omap_dmic *dmic, u16 reg, u32 val) |
diff --git a/sound/soc/omap/omap-hdmi.c b/sound/soc/omap/omap-hdmi.c index a08245d9203c..b19464697ac8 100644 --- a/sound/soc/omap/omap-hdmi.c +++ b/sound/soc/omap/omap-hdmi.c | |||
@@ -290,7 +290,6 @@ static __devinit int omap_hdmi_probe(struct platform_device *pdev) | |||
290 | 290 | ||
291 | hdmi_data->dma_params.dma_req = hdmi_rsrc->start; | 291 | hdmi_data->dma_params.dma_req = hdmi_rsrc->start; |
292 | hdmi_data->dma_params.name = "HDMI playback"; | 292 | hdmi_data->dma_params.name = "HDMI playback"; |
293 | hdmi_data->dma_params.sync_mode = OMAP_DMA_SYNC_PACKET; | ||
294 | 293 | ||
295 | /* | 294 | /* |
296 | * TODO: We assume that there is only one DSS HDMI device. Future | 295 | * TODO: We assume that there is only one DSS HDMI device. Future |
diff --git a/sound/soc/omap/omap-mcbsp.c b/sound/soc/omap/omap-mcbsp.c index fe3debcc2d0b..5b3baccd74c3 100644 --- a/sound/soc/omap/omap-mcbsp.c +++ b/sound/soc/omap/omap-mcbsp.c | |||
@@ -225,7 +225,7 @@ static int omap_mcbsp_dai_hw_params(struct snd_pcm_substream *substream, | |||
225 | struct omap_mcbsp *mcbsp = snd_soc_dai_get_drvdata(cpu_dai); | 225 | struct omap_mcbsp *mcbsp = snd_soc_dai_get_drvdata(cpu_dai); |
226 | struct omap_mcbsp_reg_cfg *regs = &mcbsp->cfg_regs; | 226 | struct omap_mcbsp_reg_cfg *regs = &mcbsp->cfg_regs; |
227 | struct omap_pcm_dma_data *dma_data; | 227 | struct omap_pcm_dma_data *dma_data; |
228 | int wlen, channels, wpf, sync_mode = OMAP_DMA_SYNC_ELEMENT; | 228 | int wlen, channels, wpf; |
229 | int pkt_size = 0; | 229 | int pkt_size = 0; |
230 | unsigned int format, div, framesize, master; | 230 | unsigned int format, div, framesize, master; |
231 | 231 | ||
@@ -272,15 +272,12 @@ static int omap_mcbsp_dai_hw_params(struct snd_pcm_substream *substream, | |||
272 | return -EINVAL; | 272 | return -EINVAL; |
273 | 273 | ||
274 | pkt_size = period_words / divider; | 274 | pkt_size = period_words / divider; |
275 | sync_mode = OMAP_DMA_SYNC_PACKET; | ||
276 | } else if (channels > 1) { | 275 | } else if (channels > 1) { |
277 | /* Use packet mode for non mono streams */ | 276 | /* Use packet mode for non mono streams */ |
278 | pkt_size = channels; | 277 | pkt_size = channels; |
279 | sync_mode = OMAP_DMA_SYNC_PACKET; | ||
280 | } | 278 | } |
281 | } | 279 | } |
282 | 280 | ||
283 | dma_data->sync_mode = sync_mode; | ||
284 | dma_data->packet_size = pkt_size; | 281 | dma_data->packet_size = pkt_size; |
285 | 282 | ||
286 | snd_soc_dai_set_dma_data(cpu_dai, substream, dma_data); | 283 | snd_soc_dai_set_dma_data(cpu_dai, substream, dma_data); |
diff --git a/sound/soc/omap/omap-mcpdm.c b/sound/soc/omap/omap-mcpdm.c index f7babb374a37..baf92da42aec 100644 --- a/sound/soc/omap/omap-mcpdm.c +++ b/sound/soc/omap/omap-mcpdm.c | |||
@@ -73,14 +73,12 @@ static struct omap_pcm_dma_data omap_mcpdm_dai_dma_params[] = { | |||
73 | .name = "Audio playback", | 73 | .name = "Audio playback", |
74 | .dma_req = OMAP44XX_DMA_MCPDM_DL, | 74 | .dma_req = OMAP44XX_DMA_MCPDM_DL, |
75 | .data_type = OMAP_DMA_DATA_TYPE_S32, | 75 | .data_type = OMAP_DMA_DATA_TYPE_S32, |
76 | .sync_mode = OMAP_DMA_SYNC_PACKET, | ||
77 | .port_addr = OMAP44XX_MCPDM_L3_BASE + MCPDM_REG_DN_DATA, | 76 | .port_addr = OMAP44XX_MCPDM_L3_BASE + MCPDM_REG_DN_DATA, |
78 | }, | 77 | }, |
79 | { | 78 | { |
80 | .name = "Audio capture", | 79 | .name = "Audio capture", |
81 | .dma_req = OMAP44XX_DMA_MCPDM_UP, | 80 | .dma_req = OMAP44XX_DMA_MCPDM_UP, |
82 | .data_type = OMAP_DMA_DATA_TYPE_S32, | 81 | .data_type = OMAP_DMA_DATA_TYPE_S32, |
83 | .sync_mode = OMAP_DMA_SYNC_PACKET, | ||
84 | .port_addr = OMAP44XX_MCPDM_L3_BASE + MCPDM_REG_UP_DATA, | 82 | .port_addr = OMAP44XX_MCPDM_L3_BASE + MCPDM_REG_UP_DATA, |
85 | }, | 83 | }, |
86 | }; | 84 | }; |
diff --git a/sound/soc/omap/omap-pcm.h b/sound/soc/omap/omap-pcm.h index b92248cbd47a..1bf47e4b60c2 100644 --- a/sound/soc/omap/omap-pcm.h +++ b/sound/soc/omap/omap-pcm.h | |||
@@ -33,7 +33,6 @@ struct omap_pcm_dma_data { | |||
33 | unsigned long port_addr; /* transmit/receive register */ | 33 | unsigned long port_addr; /* transmit/receive register */ |
34 | void (*set_threshold)(struct snd_pcm_substream *substream); | 34 | void (*set_threshold)(struct snd_pcm_substream *substream); |
35 | int data_type; /* data type 8,16,32 */ | 35 | int data_type; /* data type 8,16,32 */ |
36 | int sync_mode; /* DMA sync mode */ | ||
37 | int packet_size; /* packet size only in PACKET mode */ | 36 | int packet_size; /* packet size only in PACKET mode */ |
38 | }; | 37 | }; |
39 | 38 | ||