Merge branch 'for-3.0' into for-3.1
[deliverable/linux.git] / sound / soc / blackfin / bf5xx-i2s-pcm.c
index b5101efd1c8733bd002cf5ae700f5807b665ebed..4a805a859723fcedbe61cee5fbfa657e028e7e0f 100644 (file)
@@ -159,7 +159,7 @@ static int bf5xx_pcm_open(struct snd_pcm_substream *substream)
 
        snd_soc_set_runtime_hwparams(substream, &bf5xx_pcm_hardware);
 
-       ret = snd_pcm_hw_constraint_integer(runtime, \
+       ret = snd_pcm_hw_constraint_integer(runtime,
                        SNDRV_PCM_HW_PARAM_PERIODS);
        if (ret < 0)
                goto out;
@@ -248,9 +248,11 @@ static void bf5xx_pcm_free_dma_buffers(struct snd_pcm *pcm)
 
 static u64 bf5xx_pcm_dmamask = DMA_BIT_MASK(32);
 
-int bf5xx_pcm_i2s_new(struct snd_card *card, struct snd_soc_dai *dai,
-       struct snd_pcm *pcm)
+int bf5xx_pcm_i2s_new(struct snd_soc_pcm_runtime *rtd)
 {
+       struct snd_card *card = rtd->card->snd_card;
+       struct snd_soc_dai *dai = rtd->cpu_dai;
+       struct snd_pcm *pcm = rtd->pcm;
        int ret = 0;
 
        pr_debug("%s enter\n", __func__);
@@ -295,8 +297,8 @@ static int __devexit bfin_i2s_soc_platform_remove(struct platform_device *pdev)
 
 static struct platform_driver bfin_i2s_pcm_driver = {
        .driver = {
-                       .name = "bfin-i2s-pcm-audio",
-                       .owner = THIS_MODULE,
+               .name = "bfin-i2s-pcm-audio",
+               .owner = THIS_MODULE,
        },
 
        .probe = bfin_i2s_soc_platform_probe,
This page took 0.025761 seconds and 5 git commands to generate.