summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDaniel Hillenbrand <codeworkx@cyanogenmod.org>2016-06-22 12:42:53 -0700
committerEthan Chen <intervigil@gmail.com>2016-06-22 12:42:53 -0700
commita4fb123bd3ae1629808fbb986692efd05b30dcd7 (patch)
treefcf5c48d867d828ebd1a5174d037789ec8beac0d
parenta6a590893b4cec714c41a3c6e3448c0ba84033f9 (diff)
downloadhardware_qcom_audio-a4fb123bd3ae1629808fbb986692efd05b30dcd7.tar.gz
hardware_qcom_audio-a4fb123bd3ae1629808fbb986692efd05b30dcd7.tar.bz2
hardware_qcom_audio-a4fb123bd3ae1629808fbb986692efd05b30dcd7.zip
hal: Detect additional baseband properties
* Some devices use alternate properties for the baseband type Change-Id: I3483c3c6f4c136845a786ac45fb38f83b8022faa
-rw-r--r--hal/msm8960/platform.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/hal/msm8960/platform.c b/hal/msm8960/platform.c
index 5f06083a..443016a1 100644
--- a/hal/msm8960/platform.c
+++ b/hal/msm8960/platform.c
@@ -743,6 +743,7 @@ void *platform_init(struct audio_device *adev)
{
char platform[PROPERTY_VALUE_MAX];
char baseband[PROPERTY_VALUE_MAX];
+ char baseband_arch[PROPERTY_VALUE_MAX];
char value[PROPERTY_VALUE_MAX];
struct platform_data *my_data = NULL;
int retry_num = 0, snd_card_num = 0;
@@ -889,8 +890,10 @@ void *platform_init(struct audio_device *adev)
*/
property_get("ro.board.platform", platform, "");
property_get("ro.baseband", baseband, "");
+ property_get("ro.baseband.arch", baseband_arch, "");
if (!strncmp("msm8960", platform, sizeof("msm8960")) &&
- !strncmp("mdm", baseband, sizeof("mdm"))) {
+ (!strncmp("mdm", baseband, sizeof("mdm")) ||
+ !strncmp("mdm", baseband_arch, sizeof("mdm")))) {
my_data->csd = open_csd_client();
}