From: 邱建斌 Date: Sun, 7 Apr 2013 09:26:13 +0000 (+0800) Subject: rk610 codec : modfiy rk610_codec_write_incall funtion X-Git-Tag: firefly_0821_release~7291 X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=bba149e876d814b5555939d18ac48555ff01d649;p=firefly-linux-kernel-4.4.55.git rk610 codec : modfiy rk610_codec_write_incall funtion --- diff --git a/sound/soc/codecs/rk610_codec.c b/sound/soc/codecs/rk610_codec.c index d735aba1cc75..d850f7b69ec8 100755 --- a/sound/soc/codecs/rk610_codec.c +++ b/sound/soc/codecs/rk610_codec.c @@ -249,25 +249,25 @@ void call_set_spk(int on) { case 0: //modem exit call,codec disable loopback - printk("%s modem exit call \n", __FUNCTION__); - rk610_codec_write(rk610_codec_codec,ACCELCODEC_R0E, 0x80); + printk("%s modem exit call \n", __FUNCTION__); + rk610_codec_write_incall(rk610_codec_codec,ACCELCODEC_R0E, 0x80); rk610_codec->call_enable = 0; break; case 1: //modem calling,codec enable loopback,spk hp different volume printk("%s spk incalling\n", __FUNCTION__); - rk610_codec_write(rk610_codec_codec,ACCELCODEC_R0E, 0x00); rk610_codec->call_enable = 1; + rk610_codec_write_incall(rk610_codec_codec,ACCELCODEC_R0E, 0x00); return; case 2: printk("%s hp incalling\n", __FUNCTION__); - rk610_codec_write(rk610_codec_codec,ACCELCODEC_R0E, 0x00); - rk610_codec->call_enable = 1; + rk610_codec->call_enable = 1; + rk610_codec_write_incall(rk610_codec_codec,ACCELCODEC_R0E, 0x00); break; case 3: printk("%s bt incalling\n", __FUNCTION__); - rk610_codec_write(rk610_codec_codec,ACCELCODEC_R0E, 0x00); - rk610_codec->call_enable = 1; + rk610_codec->call_enable = 1; + rk610_codec_write_incall(rk610_codec_codec,ACCELCODEC_R0E, 0x00); break; }