From d437bdc0c727eb10dfb9db1c979e6f4d3034cb6e Mon Sep 17 00:00:00 2001 From: codeworkx Date: Sat, 17 Nov 2012 22:57:33 +0100 Subject: i9300: implement noise suppression for calls Change-Id: Iadf1c59ae5d94364bccad97ca2f49d6a68c80244 --- audio/audio_hw.h | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) (limited to 'audio/audio_hw.h') diff --git a/audio/audio_hw.h b/audio/audio_hw.h index b01ab33..4f0919a 100644 --- a/audio/audio_hw.h +++ b/audio/audio_hw.h @@ -161,6 +161,24 @@ struct route_setting default_input_disable[] = { { .ctl_name = NULL, }, }; +struct route_setting noise_suppression[] = { + { .ctl_name = "Sub Mic Switch", .intval = 1, }, + { .ctl_name = "IN1R Volume", .intval = 25, }, + { .ctl_name = "MIXINR IN1R Switch", .intval = 1, }, + { .ctl_name = "MIXINR IN1R Volume", .intval = 0, }, + { .ctl_name = "AIF1ADCR Source", .intval = 1, }, + { .ctl_name = "AIF2ADCR Source", .intval = 1, }, + { .ctl_name = NULL, }, +}; + +struct route_setting noise_suppression_disable[] = { + { .ctl_name = "Sub Mic Switch", .intval = 0, }, + { .ctl_name = "IN1R Volume", .intval = 7, }, + { .ctl_name = "MIXINR IN1R Switch", .intval = 0, }, + { .ctl_name = "MIXINR IN1R Volume", .intval = 0, }, + { .ctl_name = NULL, }, +}; + struct route_setting headset_input[] = { { .ctl_name = "MIXINL IN1L Switch", .intval = 0, }, { .ctl_name = "MIXINR IN1R Switch", .intval = 0, }, -- cgit v1.1