aboutsummaryrefslogtreecommitdiffstats
path: root/audio/audio_hw.c
diff options
context:
space:
mode:
authorDaniel Hillenbrand <codeworkx@cyanogenmod.org>2013-04-14 16:23:27 +0200
committerDaniel Hillenbrand <codeworkx@cyanogenmod.org>2013-04-14 16:23:27 +0200
commitc7b7cf5b51fcb01084e67b8e0c2e5624a56bdbd2 (patch)
tree30563a9bfdbf3aa48b03b8f89ff7609f3a817bfd /audio/audio_hw.c
parent03e36e352405424a6c9eee42040712723b7b0462 (diff)
downloaddevice_samsung_espressowifi-c7b7cf5b51fcb01084e67b8e0c2e5624a56bdbd2.zip
device_samsung_espressowifi-c7b7cf5b51fcb01084e67b8e0c2e5624a56bdbd2.tar.gz
device_samsung_espressowifi-c7b7cf5b51fcb01084e67b8e0c2e5624a56bdbd2.tar.bz2
p3100: refine incall audio settings
Change-Id: Iecee3ee43ef988ec1fc97f1d763596dfda4c6271
Diffstat (limited to 'audio/audio_hw.c')
-rwxr-xr-xaudio/audio_hw.c15
1 files changed, 9 insertions, 6 deletions
diff --git a/audio/audio_hw.c b/audio/audio_hw.c
index 60ad2cf..2dde2eb 100755
--- a/audio/audio_hw.c
+++ b/audio/audio_hw.c
@@ -676,10 +676,10 @@ static void select_output_device(struct espresso_audio_device *adev)
}
if (headset_on || headphone_on || speaker_on || earpiece_on) {
- ALOGD("%s: set voicecall: voicecall_default", __func__);
+ ALOGD("%s: set voicecall route: voicecall_default", __func__);
set_bigroute_by_array(adev->mixer, voicecall_default, 1);
} else {
- ALOGD("%s: set voicecall: voicecall_default_disable", __func__);
+ ALOGD("%s: set voicecall route: voicecall_default_disable", __func__);
set_bigroute_by_array(adev->mixer, voicecall_default_disable, 1);
}
@@ -691,18 +691,21 @@ static void select_output_device(struct espresso_audio_device *adev)
set_bigroute_by_array(adev->mixer, default_input_disable, 1);
}
- if (headset_on || headphone_on) {
- ALOGD("%s: set voicecall: headset_input", __func__);
+ if (headset_on) {
+ ALOGD("%s: set voicecall route: headset_input", __func__);
set_bigroute_by_array(adev->mixer, headset_input, 1);
+ } else {
+ ALOGD("%s: set voicecall route: headset_input_disable", __func__);
+ set_bigroute_by_array(adev->mixer, headset_input_disable, 1);
}
if (bt_on) {
// bt uses a different port (PORT_BT) for playback, reopen the pcms
end_call(adev);
start_call(adev);
- ALOGD("%s: set voicecall: bt_input", __func__);
+ ALOGD("%s: set voicecall route: bt_input", __func__);
set_bigroute_by_array(adev->mixer, bt_input, 1);
- ALOGD("%s: set voicecall: bt_output", __func__);
+ ALOGD("%s: set voicecall route: bt_output", __func__);
set_bigroute_by_array(adev->mixer, bt_output, 1);
}
set_incall_device(adev);