summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authormarkcs <mcampbellsmith@gmail.com>2014-03-24 21:40:37 +1100
committermarkcs <mcampbellsmith@gmail.com>2014-03-24 21:41:40 +1100
commite7cbd85a310e75815567c664145a7ec9fc658c8a (patch)
tree85c9884da036a0450241faeb7b860b4a46cfecf9
parent21d8a2854e64115adb39f6d1c6a4baaaaa02c6ac (diff)
downloaddevice_samsung_i9305-e7cbd85a310e75815567c664145a7ec9fc658c8a.zip
device_samsung_i9305-e7cbd85a310e75815567c664145a7ec9fc658c8a.tar.gz
device_samsung_i9305-e7cbd85a310e75815567c664145a7ec9fc658c8a.tar.bz2
i9305: audio hal mic updates
Fix for audio mic distortion during video recordings and reset in_device to NONE at call completion Change-Id: I011a5123a87a17a3f478af93bce7df4ba0108839
-rw-r--r--audio/audio_hw.c2
-rw-r--r--configs/tiny_hw.xml8
2 files changed, 5 insertions, 5 deletions
diff --git a/audio/audio_hw.c b/audio/audio_hw.c
index 355c8e4..be0ebe7 100644
--- a/audio/audio_hw.c
+++ b/audio/audio_hw.c
@@ -684,7 +684,7 @@ static void select_mode(struct m0_audio_device *adev)
ALOGE("%s: csd_stop_voice error %d\n", __func__, err);
}
}
-
+ adev->in_device = AUDIO_DEVICE_NONE;
force_all_standby(adev);
select_output_device(adev);
select_input_device(adev);
diff --git a/configs/tiny_hw.xml b/configs/tiny_hw.xml
index cc8bcbd..7d2a4f6 100644
--- a/configs/tiny_hw.xml
+++ b/configs/tiny_hw.xml
@@ -266,9 +266,9 @@ We are able to have most of our routing static so do that
<device name="builtin-mic">
<path name="on">
<ctl name="Main Mic Switch" val="1"/>
- <ctl name="IN2L Volume" val="28"/>
+ <ctl name="IN2L Volume" val="26"/>
<ctl name="MIXINL IN2L Switch" val="1"/>
- <ctl name="MIXINL IN2L Volume" val="1"/>
+ <ctl name="MIXINL IN2L Volume" val="0"/>
<ctl name="AIF1ADCL Source" val="0"/>
<ctl name="AIF1ADC1 HPF Mode" val="0"/>
<ctl name="AIF1ADC1 HPF Switch" val="1"/>
@@ -284,9 +284,9 @@ We are able to have most of our routing static so do that
<device name="back-mic">
<path name="on">
<ctl name="Sub Mic Switch" val="1"/>
- <ctl name="IN1R Volume" val="28"/>
+ <ctl name="IN1R Volume" val="27"/>
<ctl name="MIXINR IN1R Switch" val="1"/>
- <ctl name="MIXINR IN1R Volume" val="1"/>
+ <ctl name="MIXINR IN1R Volume" val="0"/>
<ctl name="AIF1ADCR Source" val="1"/>
<ctl name="AIF1ADC1 HPF Mode" val="1"/>
<ctl name="AIF1ADC1 HPF Switch" val="1"/>