summaryrefslogtreecommitdiffstats
path: root/hal/msm8960
diff options
context:
space:
mode:
authorNarsinga Rao Chella <nrchella@codeaurora.org>2015-07-08 19:38:38 -0700
committerGerrit - the friendly Code Review server <code-review@localhost>2015-08-04 18:37:18 -0700
commit81491baea99149a08ec14bb2d474fcde5f7d5599 (patch)
tree66d48a381c750276526dc8c38034eab2cb205703 /hal/msm8960
parente7d6703a6c9a7aa67dcea5528455042eb3d834ce (diff)
downloadhardware_qcom_audio-81491baea99149a08ec14bb2d474fcde5f7d5599.tar.gz
hardware_qcom_audio-81491baea99149a08ec14bb2d474fcde5f7d5599.tar.bz2
hardware_qcom_audio-81491baea99149a08ec14bb2d474fcde5f7d5599.zip
hal: reroute active capture usecases which share same backend
During device switch, all active capture usecases need to be switched to new sound device if they all share same backend. This is not happening because of an improper check of capture usecase's device against output backend devices. Correct the check to compare against input backend devices. Change-Id: Iaf43c30b091f78c2ffb8b2740f241f2edfbe5a08 CRs-fixed: 873528
Diffstat (limited to 'hal/msm8960')
-rw-r--r--hal/msm8960/platform.h11
1 files changed, 10 insertions, 1 deletions
diff --git a/hal/msm8960/platform.h b/hal/msm8960/platform.h
index 4b4d14e3..aab54366 100644
--- a/hal/msm8960/platform.h
+++ b/hal/msm8960/platform.h
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2013, The Linux Foundation. All rights reserved.
+ * Copyright (c) 2013, 2015 The Linux Foundation. All rights reserved.
* Not a contribution.
*
* Copyright (C) 2013 The Android Open Source Project
@@ -35,6 +35,15 @@ enum {
(AUDIO_DEVICE_OUT_EARPIECE | AUDIO_DEVICE_OUT_SPEAKER | \
AUDIO_DEVICE_OUT_WIRED_HEADSET | AUDIO_DEVICE_OUT_WIRED_HEADPHONE)
+/*
+ * Below are the input devices for which back end is same, SLIMBUS_0_TX.
+ * All these devices are handled by the internal HW codec. We can
+ * enable any one of these devices at any time
+ */
+#define AUDIO_DEVICE_IN_ALL_CODEC_BACKEND \
+ (AUDIO_DEVICE_IN_BUILTIN_MIC | AUDIO_DEVICE_IN_BACK_MIC | \
+ AUDIO_DEVICE_IN_WIRED_HEADSET | AUDIO_DEVICE_IN_VOICE_CALL) & ~AUDIO_DEVICE_BIT_IN
+
/* Sound devices specific to the platform
* The DEVICE_OUT_* and DEVICE_IN_* should be mapped to these sound
* devices to enable corresponding mixer paths