summaryrefslogtreecommitdiffstats
path: root/hal/msm8974/platform.h
diff options
context:
space:
mode:
authorRavi Kumar Alamanda <ralama@codeaurora.org>2015-06-26 17:41:02 -0700
committerEric Laurent <elaurent@google.com>2015-06-30 16:51:24 -0700
commitc4f57314a49fb83ed602395d9fe0c0164c9e863d (patch)
tree3d5c82499a140a600ea34dbb43b1a9a2bbe1786d /hal/msm8974/platform.h
parent0d438e220dfe96bede717c47fa2b842da15e9687 (diff)
downloadhardware_qcom_audio-c4f57314a49fb83ed602395d9fe0c0164c9e863d.tar.gz
hardware_qcom_audio-c4f57314a49fb83ed602395d9fe0c0164c9e863d.tar.bz2
hardware_qcom_audio-c4f57314a49fb83ed602395d9fe0c0164c9e863d.zip
hal: update logic to identify primary sound card
Check if the sound card name contains the hw codec name to validate the primary sound card name before initializing the audio route library. Bug: 21731989 Change-Id: I2a14201e8774c07a922c87d3fc08f55a389a56e6
Diffstat (limited to 'hal/msm8974/platform.h')
-rw-r--r--hal/msm8974/platform.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/hal/msm8974/platform.h b/hal/msm8974/platform.h
index ca75b8fd..63c1357e 100644
--- a/hal/msm8974/platform.h
+++ b/hal/msm8974/platform.h
@@ -203,6 +203,8 @@ enum {
#define LIB_CSD_CLIENT "libcsd-client.so"
#define LIB_MDM_DETECT "libmdmdetect.so"
+#define PLATFORM_CONFIG_KEY_SOUNDCARD_NAME "snd_card_name"
+
/* CSD-CLIENT related functions */
typedef int (*init_t)(bool);
typedef int (*deinit_t)();