From 92b0f682c0db8c27edbc34d256b801c425d93f73 Mon Sep 17 00:00:00 2001 From: Daniel Hillenbrand Date: Mon, 15 Apr 2013 19:30:57 +0200 Subject: p5100: refine incall bluetooth audio Change-Id: I35e39c4603e2504f6651843300ba3eff40ceee98 --- audio/audio_hw.c | 5 +++++ audio/audio_hw.h | 12 ++++++++++++ 2 files changed, 17 insertions(+) (limited to 'audio') diff --git a/audio/audio_hw.c b/audio/audio_hw.c index 8a14def..e06946a 100755 --- a/audio/audio_hw.c +++ b/audio/audio_hw.c @@ -707,6 +707,11 @@ static void select_output_device(struct espresso_audio_device *adev) set_bigroute_by_array(adev->mixer, bt_input, 1); ALOGD("%s: set voicecall route: bt_output", __func__); set_bigroute_by_array(adev->mixer, bt_output, 1); + } else { + ALOGD("%s: set voicecall route: bt_input_disable", __func__); + set_bigroute_by_array(adev->mixer, bt_input_disable, 1); + ALOGD("%s: set voicecall route: bt_output_disable", __func__); + set_bigroute_by_array(adev->mixer, bt_output_disable, 1); } set_incall_device(adev); } diff --git a/audio/audio_hw.h b/audio/audio_hw.h index 70afc63..d2b2e0e 100644 --- a/audio/audio_hw.h +++ b/audio/audio_hw.h @@ -197,6 +197,12 @@ struct route_setting bt_output[] = { { .ctl_name = NULL, }, }; +struct route_setting bt_output_disable[] = { + { .ctl_name = "AIF2DAC2L Mixer AIF2 Switch", .intval = 0, }, + { .ctl_name = "AIF2DAC2R Mixer AIF2 Switch", .intval = 0, }, + { .ctl_name = NULL, }, +}; + struct route_setting bt_input[] = { { .ctl_name = "AIF2ADC Mux", .intval = 1, }, { .ctl_name = "AIF2DACR Source", .intval = 1, }, @@ -214,3 +220,9 @@ struct route_setting bt_input[] = { { .ctl_name = "MIXINL IN1L Switch", .intval = 0, }, { .ctl_name = NULL, }, }; + +struct route_setting bt_input_disable[] = { + { .ctl_name = "AIF2ADC Mux", .intval = 0, }, + { .ctl_name = "HP Switch", .intval = 1, }, + { .ctl_name = NULL, }, +}; -- cgit v1.1