aboutsummaryrefslogtreecommitdiffstats
path: root/sound/soc/atmel
diff options
context:
space:
mode:
Diffstat (limited to 'sound/soc/atmel')
-rw-r--r--sound/soc/atmel/atmel-pcm.c8
-rw-r--r--sound/soc/atmel/atmel-pcm.h2
-rw-r--r--sound/soc/atmel/atmel_ssc_dai.c6
-rw-r--r--sound/soc/atmel/sam9g20_wm8731.c1
4 files changed, 9 insertions, 8 deletions
diff --git a/sound/soc/atmel/atmel-pcm.c b/sound/soc/atmel/atmel-pcm.c
index d0e75323ec1..f81d4c3f895 100644
--- a/sound/soc/atmel/atmel-pcm.c
+++ b/sound/soc/atmel/atmel-pcm.c
@@ -364,9 +364,11 @@ static struct snd_pcm_ops atmel_pcm_ops = {
364\*--------------------------------------------------------------------------*/ 364\*--------------------------------------------------------------------------*/
365static u64 atmel_pcm_dmamask = 0xffffffff; 365static u64 atmel_pcm_dmamask = 0xffffffff;
366 366
367static int atmel_pcm_new(struct snd_card *card, 367static int atmel_pcm_new(struct snd_soc_pcm_runtime *rtd)
368 struct snd_soc_dai *dai, struct snd_pcm *pcm)
369{ 368{
369 struct snd_card *card = rtd->card->snd_card;
370 struct snd_soc_dai *dai = rtd->cpu_dai;
371 struct snd_pcm *pcm = rtd->pcm;
370 int ret = 0; 372 int ret = 0;
371 373
372 if (!card->dev->dma_mask) 374 if (!card->dev->dma_mask)
@@ -382,7 +384,7 @@ static int atmel_pcm_new(struct snd_card *card,
382 } 384 }
383 385
384 if (dai->driver->capture.channels_min) { 386 if (dai->driver->capture.channels_min) {
385 pr_debug("at32-pcm:" 387 pr_debug("atmel-pcm:"
386 "Allocating PCM capture DMA buffer\n"); 388 "Allocating PCM capture DMA buffer\n");
387 ret = atmel_pcm_preallocate_dma_buffer(pcm, 389 ret = atmel_pcm_preallocate_dma_buffer(pcm,
388 SNDRV_PCM_STREAM_CAPTURE); 390 SNDRV_PCM_STREAM_CAPTURE);
diff --git a/sound/soc/atmel/atmel-pcm.h b/sound/soc/atmel/atmel-pcm.h
index 2597329302e..5e0a95e6432 100644
--- a/sound/soc/atmel/atmel-pcm.h
+++ b/sound/soc/atmel/atmel-pcm.h
@@ -60,7 +60,7 @@ struct atmel_ssc_mask {
60 * This structure, shared between the PCM driver and the interface, 60 * This structure, shared between the PCM driver and the interface,
61 * contains all information required by the PCM driver to perform the 61 * contains all information required by the PCM driver to perform the
62 * PDC DMA operation. All fields except dma_intr_handler() are initialized 62 * PDC DMA operation. All fields except dma_intr_handler() are initialized
63 * by the interface. The dms_intr_handler() pointer is set by the PCM 63 * by the interface. The dma_intr_handler() pointer is set by the PCM
64 * driver and called by the interface SSC interrupt handler if it is 64 * driver and called by the interface SSC interrupt handler if it is
65 * non-NULL. 65 * non-NULL.
66 */ 66 */
diff --git a/sound/soc/atmel/atmel_ssc_dai.c b/sound/soc/atmel/atmel_ssc_dai.c
index eda955b1583..71225090c49 100644
--- a/sound/soc/atmel/atmel_ssc_dai.c
+++ b/sound/soc/atmel/atmel_ssc_dai.c
@@ -402,7 +402,7 @@ static int atmel_ssc_hw_params(struct snd_pcm_substream *substream,
402 if ((ssc_p->daifmt & SND_SOC_DAIFMT_FORMAT_MASK) == SND_SOC_DAIFMT_I2S 402 if ((ssc_p->daifmt & SND_SOC_DAIFMT_FORMAT_MASK) == SND_SOC_DAIFMT_I2S
403 && bits > 16) { 403 && bits > 16) {
404 printk(KERN_WARNING 404 printk(KERN_WARNING
405 "atmel_ssc_dai: sample size %d" 405 "atmel_ssc_dai: sample size %d "
406 "is too large for I2S\n", bits); 406 "is too large for I2S\n", bits);
407 return -EINVAL; 407 return -EINVAL;
408 } 408 }
@@ -838,10 +838,8 @@ int atmel_ssc_set_audio(int ssc_id)
838 } 838 }
839 839
840 ssc_pdev = platform_device_alloc("atmel-ssc-dai", ssc_id); 840 ssc_pdev = platform_device_alloc("atmel-ssc-dai", ssc_id);
841 if (!ssc_pdev) { 841 if (!ssc_pdev)
842 ssc_free(ssc);
843 return -ENOMEM; 842 return -ENOMEM;
844 }
845 843
846 /* If we can grab the SSC briefly to parent the DAI device off it */ 844 /* If we can grab the SSC briefly to parent the DAI device off it */
847 ssc = ssc_request(ssc_id); 845 ssc = ssc_request(ssc_id);
diff --git a/sound/soc/atmel/sam9g20_wm8731.c b/sound/soc/atmel/sam9g20_wm8731.c
index 95572d290c2..bad3aa14d5b 100644
--- a/sound/soc/atmel/sam9g20_wm8731.c
+++ b/sound/soc/atmel/sam9g20_wm8731.c
@@ -92,6 +92,7 @@ static struct snd_soc_ops at91sam9g20ek_ops = {
92}; 92};
93 93
94static int at91sam9g20ek_set_bias_level(struct snd_soc_card *card, 94static int at91sam9g20ek_set_bias_level(struct snd_soc_card *card,
95 struct snd_soc_dapm_context *dapm,
95 enum snd_soc_bias_level level) 96 enum snd_soc_bias_level level)
96{ 97{
97 static int mclk_on; 98 static int mclk_on;