rk30_i2s: fix for rk3188, add i2s1 support
author黄涛 <huangtao@rock-chips.com>
Wed, 23 Jan 2013 15:12:20 +0000 (23:12 +0800)
committer黄涛 <huangtao@rock-chips.com>
Wed, 23 Jan 2013 15:12:20 +0000 (23:12 +0800)
sound/soc/rk29/rk30_i2s.c

index a10c548c9d1edec54c0b72a3e1d8d58a482022a5..62bb21bd6f98e7d714ddcff2652b7f37d2cdf236 100755 (executable)
@@ -678,6 +678,14 @@ static int __devinit rockchip_i2s_probe(struct platform_device *pdev)
                i2s->dma_playback->dma_addr = RK30_I2S2_2CH_PHYS + I2S_TXR_BUFF;        
                break;
 #endif
+#if defined(CONFIG_ARCH_RK3188)
+       case 1:
+               i2s->dma_capture->channel = DMACH_I2S1_2CH_RX;
+               i2s->dma_capture->dma_addr = RK30_I2S1_2CH_PHYS + I2S_RXR_BUFF;
+               i2s->dma_playback->channel = DMACH_I2S1_2CH_TX;
+               i2s->dma_playback->dma_addr = RK30_I2S1_2CH_PHYS + I2S_TXR_BUFF;
+               break;
+#endif
 #ifdef CONFIG_ARCH_RK2928
        case 0:
                i2s->dma_capture->channel = DMACH_I2S0_8CH_RX;