rk610 codec : modfiy rk610_codec_write_incall funtion
author邱建斌 <qjb@rock-chips.com>
Sun, 7 Apr 2013 09:26:13 +0000 (17:26 +0800)
committer邱建斌 <qjb@rock-chips.com>
Sun, 7 Apr 2013 09:26:13 +0000 (17:26 +0800)
sound/soc/codecs/rk610_codec.c

index d735aba1cc75269d2fd842fe011252f3dd072a6e..d850f7b69ec83ecec2c8f26b49a90b1d6fef7ffc 100755 (executable)
@@ -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;
        }