Merge "qahw: test: Add support for dual main decoding"
diff --git a/hal/audio_hw.c b/hal/audio_hw.c
index a04cc45..c8b1cae 100644
--- a/hal/audio_hw.c
+++ b/hal/audio_hw.c
@@ -4652,7 +4652,10 @@
if ((usecase->type == PCM_PLAYBACK) &&
(usecase->devices & AUDIO_DEVICE_OUT_ALL_A2DP)){
ALOGD("reconfigure a2dp... forcing device switch");
+
+ pthread_mutex_unlock(&adev->lock);
lock_output_stream(usecase->stream.out);
+ pthread_mutex_lock(&adev->lock);
audio_extn_a2dp_set_handoff_mode(true);
//force device switch to re configure encoder
select_devices(adev, usecase->id);
diff --git a/visualizer/Android.mk b/visualizer/Android.mk
index 622af33..aa780a1 100644
--- a/visualizer/Android.mk
+++ b/visualizer/Android.mk
@@ -21,7 +21,7 @@
LOCAL_CFLAGS+= -O2 -fvisibility=hidden
-ifneq ($(filter sdm660 msm8998,$(TARGET_BOARD_PLATFORM)),)
+ifneq ($(filter sdm660 sdm845 msm8998,$(TARGET_BOARD_PLATFORM)),)
LOCAL_CFLAGS += -DCAPTURE_DEVICE=7
endif