From: 黄涛 Date: Wed, 23 Jan 2013 15:12:20 +0000 (+0800) Subject: rk30_i2s: fix for rk3188, add i2s1 support X-Git-Tag: firefly_0821_release~7829 X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=51316e7b6fbeff807ecc42b6e05ad78deeab7f46;p=firefly-linux-kernel-4.4.55.git rk30_i2s: fix for rk3188, add i2s1 support --- diff --git a/sound/soc/rk29/rk30_i2s.c b/sound/soc/rk29/rk30_i2s.c index a10c548c9d1e..62bb21bd6f98 100755 --- a/sound/soc/rk29/rk30_i2s.c +++ b/sound/soc/rk29/rk30_i2s.c @@ -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;