rk29_phone : fix wm8994 change channel noise
author邱建斌 <qjb@rock-chips.com>
Thu, 30 Jun 2011 12:19:46 +0000 (20:19 +0800)
committer邱建斌 <qjb@rock-chips.com>
Thu, 30 Jun 2011 12:19:46 +0000 (20:19 +0800)
sound/soc/codecs/wm8994.c
sound/soc/codecs/wm8994.h

index 66283338cd7823509b5944818c748813ce02eefc..5d19782f91abe307502b87bb2c827a3eb5adaf25 100755 (executable)
@@ -989,7 +989,7 @@ void AP_to_speakers_and_headset(void)
        DBG("%s::%d\n",__FUNCTION__,__LINE__);
        if(wm8994_current_mode==wm8994_AP_to_speakers_and_headset)return;
        wm8994_current_mode=wm8994_AP_to_speakers_and_headset;
-       wm8994_write(WM8994_RESET, 0);
+       wm8994_reset();
        msleep(WM8994_DELAY);
 
        wm8994_write(0x39,  0x006C);
@@ -1053,7 +1053,7 @@ void recorder_and_AP_to_headset(void)
 
        if(wm8994_current_mode==wm8994_recorder_and_AP_to_headset)return;
        wm8994_current_mode=wm8994_recorder_and_AP_to_headset;
-       wm8994_write(WM8994_RESET, 0);
+       wm8994_reset();
        msleep(WM8994_DELAY);
        
        wm8994_write(0x39, 0x006C);
@@ -1133,7 +1133,7 @@ void recorder_and_AP_to_speakers(void)
 
        if(wm8994_current_mode==wm8994_recorder_and_AP_to_speakers)return;
        wm8994_current_mode=wm8994_recorder_and_AP_to_speakers;
-       wm8994_write(WM8994_RESET, 0);
+       wm8994_reset();
        msleep(WM8994_DELAY);
 
        wm8994_write(0x39,  0x006C);
index 62d4e7a2c17f45ad3837e1218028b397f9b0dbb7..b8c394ab4eb32110d46915ab8914771924476ff2 100755 (executable)
 #define wm8994_mic_VCC 0x0010
 #define WM8994_DELAY 50
 
+/* Sources for AIF1/2 SYSCLK - use with set_dai_sysclk() */
+#define WM8994_SYSCLK_MCLK1 1
+#define WM8994_SYSCLK_MCLK2 2
+#define WM8994_SYSCLK_FLL1  3
+#define WM8994_SYSCLK_FLL2  4
+
+#define WM8994_FLL1 1
+#define WM8994_FLL2 2
+
+
 #define call_maxvol 5                  //Sound level during a call
 #define BT_call_maxvol 15