From 8c6a9aa9822d898d5bb23b1a5ad9f344925a0a43 Mon Sep 17 00:00:00 2001 From: =?utf8?q?=E9=82=B1=E5=BB=BA=E6=96=8C?= Date: Thu, 30 Jun 2011 20:19:46 +0800 Subject: [PATCH] rk29_phone : fix wm8994 change channel noise --- sound/soc/codecs/wm8994.c | 6 +++--- sound/soc/codecs/wm8994.h | 10 ++++++++++ 2 files changed, 13 insertions(+), 3 deletions(-) diff --git a/sound/soc/codecs/wm8994.c b/sound/soc/codecs/wm8994.c index 66283338cd78..5d19782f91ab 100755 --- a/sound/soc/codecs/wm8994.c +++ b/sound/soc/codecs/wm8994.c @@ -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); diff --git a/sound/soc/codecs/wm8994.h b/sound/soc/codecs/wm8994.h index 62d4e7a2c17f..b8c394ab4eb3 100755 --- a/sound/soc/codecs/wm8994.h +++ b/sound/soc/codecs/wm8994.h @@ -21,6 +21,16 @@ #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 -- 2.34.1