post_proc: include BT A2DP headset for BassBoost effect
Add BT A2DP headset as supported device for BassBoost effect
CRs-Fixed: 849162
Change-Id: I830e31344aeeab055d88da5e6c735f3747d69ad4
diff --git a/msm8909/post_proc/bass_boost.c b/msm8909/post_proc/bass_boost.c
index 5266d86..76755da 100644
--- a/msm8909/post_proc/bass_boost.c
+++ b/msm8909/post_proc/bass_boost.c
@@ -176,6 +176,7 @@
ALOGV("%s: set PBE mode, device: %x", __func__, device);
} else if (device == AUDIO_DEVICE_OUT_WIRED_HEADSET ||
device == AUDIO_DEVICE_OUT_WIRED_HEADPHONE ||
+ device == AUDIO_DEVICE_OUT_BLUETOOTH_A2DP ||
device == AUDIO_DEVICE_OUT_BLUETOOTH_A2DP_HEADPHONES) {
ALOGV("%s: set BB mode, device: %x", __func__, device);
bass_ctxt->active_index = BASS_BOOST;
@@ -302,6 +303,7 @@
bass_ctxt->device = device;
if (device == AUDIO_DEVICE_OUT_WIRED_HEADSET ||
device == AUDIO_DEVICE_OUT_WIRED_HEADPHONE ||
+ device == AUDIO_DEVICE_OUT_BLUETOOTH_A2DP ||
device == AUDIO_DEVICE_OUT_BLUETOOTH_A2DP_HEADPHONES) {
if (bass_ctxt->temp_disabled) {
if (effect_is_active(&bass_ctxt->common)) {