summaryrefslogtreecommitdiffstats
path: root/hal/msm8974/platform.h
diff options
context:
space:
mode:
authorPrashant Malani <pmalani@google.com>2015-08-11 15:10:18 -0700
committerPrashant Malani <pmalani@google.com>2015-08-11 15:10:18 -0700
commitc92c59683257878fb8dc08d827313b4a865898da (patch)
tree68eea1e05ff163a6fb92d58d921e53c92f353461 /hal/msm8974/platform.h
parent93be0a55c20477c0857f92d0a8a8808536c8d93f (diff)
downloadhardware_qcom_audio-c92c59683257878fb8dc08d827313b4a865898da.tar.gz
hardware_qcom_audio-c92c59683257878fb8dc08d827313b4a865898da.tar.bz2
hardware_qcom_audio-c92c59683257878fb8dc08d827313b4a865898da.zip
Revert "Revert "hal: add support for multi-mic input and multi-channel output""
This reverts commit 93be0a55c20477c0857f92d0a8a8808536c8d93f.
Diffstat (limited to 'hal/msm8974/platform.h')
-rw-r--r--hal/msm8974/platform.h18
1 files changed, 18 insertions, 0 deletions
diff --git a/hal/msm8974/platform.h b/hal/msm8974/platform.h
index efc3bb1d..456e61f4 100644
--- a/hal/msm8974/platform.h
+++ b/hal/msm8974/platform.h
@@ -17,6 +17,19 @@
#ifndef QCOM_AUDIO_PLATFORM_H
#define QCOM_AUDIO_PLATFORM_H
+enum {
+ FLUENCE_DISABLE, /* Target dosent support fluence */
+ FLUENCE_ENABLE = 0x1, /* Target supports fluence */
+ FLUENCE_PRO_ENABLE = 0x2, /* Target supports fluence pro */
+};
+
+enum {
+ SOURCE_MONO_MIC = 0x1, /* Target contains 1 mic */
+ SOURCE_DUAL_MIC = 0x2, /* Target contains 2 mics */
+ SOURCE_THREE_MIC = 0x4, /* Target contains 3 mics */
+ SOURCE_QUAD_MIC = 0x8, /* Target contains 4 mics */
+};
+
/*
* Below are the devices for which is back end is same, SLIMBUS_0_RX.
* All these devices are handled by the internal HW codec. We can
@@ -118,8 +131,12 @@ enum {
SND_DEVICE_IN_VOICE_RX,
+ SND_DEVICE_IN_THREE_MIC,
+ SND_DEVICE_IN_QUAD_MIC,
SND_DEVICE_IN_CAPTURE_VI_FEEDBACK,
+ SND_DEVICE_IN_HANDSET_TMIC,
+ SND_DEVICE_IN_HANDSET_QMIC,
SND_DEVICE_IN_END,
SND_DEVICE_MAX = SND_DEVICE_IN_END,
@@ -225,6 +242,7 @@ enum {
#define LIB_MDM_DETECT "libmdmdetect.so"
#define PLATFORM_CONFIG_KEY_SOUNDCARD_NAME "snd_card_name"
+#define PLATFORM_MAX_MIC_COUNT "input_mic_max_count"
/* CSD-CLIENT related functions */
typedef int (*init_t)(bool);