]> git.kernelconcepts.de Git - karo-tx-linux.git/commitdiff
Merge branch 'for-3.2' into for-3.3
authorMark Brown <broonie@opensource.wolfsonmicro.com>
Tue, 20 Dec 2011 00:53:23 +0000 (00:53 +0000)
committerMark Brown <broonie@opensource.wolfsonmicro.com>
Tue, 20 Dec 2011 00:53:23 +0000 (00:53 +0000)
1  2 
sound/soc/mxs/mxs-pcm.c

diff --combined sound/soc/mxs/mxs-pcm.c
index 0e12f4e0a76d60ac10dab9b70ad4e12f80e0d0c7,5dfd3250ddf1863cd027d1a66867c53c9986097e..105f42a394df6460e80899f22c567f3ac6192c7f
@@@ -136,7 -136,7 +136,7 @@@ static int snd_mxs_pcm_hw_params(struc
                        iprtd->period_bytes * iprtd->periods,
                        iprtd->period_bytes,
                        substream->stream == SNDRV_PCM_STREAM_PLAYBACK ?
-                       DMA_TO_DEVICE : DMA_FROM_DEVICE);
+                       DMA_MEM_TO_DEV : DMA_DEV_TO_MEM);
        if (!iprtd->desc) {
                dev_err(&chan->dev->device, "cannot prepare slave dma\n");
                return -EINVAL;
@@@ -346,7 -346,17 +346,7 @@@ static struct platform_driver mxs_pcm_d
        .remove = __devexit_p(mxs_soc_platform_remove),
  };
  
 -static int __init snd_mxs_pcm_init(void)
 -{
 -      return platform_driver_register(&mxs_pcm_driver);
 -}
 -module_init(snd_mxs_pcm_init);
 -
 -static void __exit snd_mxs_pcm_exit(void)
 -{
 -      platform_driver_unregister(&mxs_pcm_driver);
 -}
 -module_exit(snd_mxs_pcm_exit);
 +module_platform_driver(mxs_pcm_driver);
  
  MODULE_LICENSE("GPL");
  MODULE_ALIAS("platform:mxs-pcm-audio");