Merge branch 'for-3.0' into for-3.1
authorMark Brown <broonie@opensource.wolfsonmicro.com>
Thu, 23 Jun 2011 19:10:28 +0000 (20:10 +0100)
committerMark Brown <broonie@opensource.wolfsonmicro.com>
Thu, 23 Jun 2011 19:10:28 +0000 (20:10 +0100)
1  2 
sound/soc/imx/imx-ssi.c
sound/soc/pxa/pxa2xx-pcm.c

diff --combined sound/soc/imx/imx-ssi.c
@@@ -388,11 -388,10 +388,11 @@@ static int imx_pcm_preallocate_dma_buff
  
  static u64 imx_pcm_dmamask = DMA_BIT_MASK(32);
  
 -int imx_pcm_new(struct snd_card *card, struct snd_soc_dai *dai,
 -      struct snd_pcm *pcm)
 +int imx_pcm_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;
  
        if (!card->dev->dma_mask)
@@@ -775,4 -774,4 +775,4 @@@ module_exit(imx_ssi_exit)
  MODULE_AUTHOR("Sascha Hauer, <s.hauer@pengutronix.de>");
  MODULE_DESCRIPTION("i.MX I2S/ac97 SoC Interface");
  MODULE_LICENSE("GPL");
+ MODULE_ALIAS("platform:imx-ssi");
@@@ -85,11 -85,9 +85,11 @@@ static struct snd_pcm_ops pxa2xx_pcm_op
  
  static u64 pxa2xx_pcm_dmamask = DMA_BIT_MASK(32);
  
 -static int pxa2xx_soc_pcm_new(struct snd_card *card, struct snd_soc_dai *dai,
 -      struct snd_pcm *pcm)
 +static int pxa2xx_soc_pcm_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;
  
        if (!card->dev->dma_mask)
        if (!card->dev->coherent_dma_mask)
                card->dev->coherent_dma_mask = DMA_BIT_MASK(32);
  
-       if (dai->driver->playback.channels_min) {
+       if (pcm->streams[SNDRV_PCM_STREAM_PLAYBACK].substream) {
                ret = pxa2xx_pcm_preallocate_dma_buffer(pcm,
                        SNDRV_PCM_STREAM_PLAYBACK);
                if (ret)
                        goto out;
        }
  
-       if (dai->driver->capture.channels_min) {
+       if (pcm->streams[SNDRV_PCM_STREAM_CAPTURE].substream) {
                ret = pxa2xx_pcm_preallocate_dma_buffer(pcm,
                        SNDRV_PCM_STREAM_CAPTURE);
                if (ret)