[alsa-devel] [PATCH] ASoC: wm_hubs: Fix DC Servo readback

Nikesh Oswal nikesh at opensource.wolfsonmicro.com
Wed Aug 13 12:47:20 CEST 2014


wm_hubs is a common driver code shared by WM8958, WM1811, WM8944
and WM8993 all these codecs have the DC Servo Values either in register
57h or 59h. Current code was reading register 58h for WM8958 and WM8994
revisions 2 and 3 but looking at the data sheet the DC Servo Values are
stored in register 57h for these codecs. This patch fixes it by reading
the correct register for DC Servo

Signed-off-by: Nikesh Oswal <nikesh at opensource.wolfsonmicro.com>
---
 sound/soc/codecs/wm_hubs.c |    3 ---
 1 file changed, 3 deletions(-)

diff --git a/sound/soc/codecs/wm_hubs.c b/sound/soc/codecs/wm_hubs.c
index 916817f..95c5d71 100644
--- a/sound/soc/codecs/wm_hubs.c
+++ b/sound/soc/codecs/wm_hubs.c
@@ -210,9 +210,6 @@ static int wm_hubs_read_dc_servo(struct snd_soc_codec *codec,
 	case 2:
 		dcs_reg = WM8994_DC_SERVO_4E;
 		break;
-	case 1:
-		dcs_reg = WM8994_DC_SERVO_READBACK;
-		break;
 	default:
 		dcs_reg = WM8993_DC_SERVO_3;
 		break;
-- 
1.7.9.5



More information about the Alsa-devel mailing list