From: 邱建斌 Date: Thu, 13 Jun 2013 06:35:26 +0000 (+0800) Subject: i2s:Set the default drive current 8ma X-Git-Tag: firefly_0821_release~6977 X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=92b2ba2625186cee9dbd4a379075748f4217dfb0;p=firefly-linux-kernel-4.4.55.git i2s:Set the default drive current 8ma --- diff --git a/sound/soc/rk29/rk30_i2s.c b/sound/soc/rk29/rk30_i2s.c index 0e66efffff72..0f8f219b8a4d 100755 --- a/sound/soc/rk29/rk30_i2s.c +++ b/sound/soc/rk29/rk30_i2s.c @@ -557,16 +557,15 @@ static int __devinit rockchip_i2s_probe(struct platform_device *pdev) struct rk29_i2s_info *i2s; struct snd_soc_dai_driver *dai; int ret; - int v; #if defined(CONFIG_SND_I2S_USE_18V) - v = 0x2000200;//bit9: 1,1.8v;0,3.3v - writel_relaxed(v,RK30_GRF_BASE + GRF_IO_CON4); + writel_relaxed(0x2000200,RK30_GRF_BASE + GRF_IO_CON4);//bit9: 1,1.8v;0,3.3v #elif defined(CONFIG_SND_I2S_USE_33V) - v = 0x2000000; - writel_relaxed(v,RK30_GRF_BASE + GRF_IO_CON4); + writel_relaxed(0x2000000,RK30_GRF_BASE + GRF_IO_CON4); #endif - + //default 8ma 0xF000F = 12ma 0xF0005=4ma 0xF0000=2ma + writel_relaxed(0xF000A,RK30_GRF_BASE + GRF_IO_CON1); + I2S_DBG("Enter %s, %d pdev->id = %d >>>>>>>>>>>\n", __func__, __LINE__, pdev->id); if(pdev->id >= MAX_I2S) {