hal: Add sound card support for sdm660 qrd skus
- Add sdm660 qrd skus variant sound card
details
CRs-Fixed: 1088368
Change-Id: Ife20f7975d936bd32a9d484a8c58884320dba9d7
diff --git a/hal/msm8916/hw_info.c b/hal/msm8916/hw_info.c
index 1fa40b4..ca21e98 100644
--- a/hal/msm8916/hw_info.c
+++ b/hal/msm8916/hw_info.c
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2014-2016, The Linux Foundation. All rights reserved.
+ * Copyright (c) 2014-2017, The Linux Foundation. All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are
@@ -160,6 +160,8 @@
strlcpy(hw_info->name, "sdm660", sizeof(hw_info->name));
} else if (!strcmp(snd_card_name, "sdm660-tashalite-snd-card")) {
strlcpy(hw_info->name, "sdm660", sizeof(hw_info->name));
+ } else if (!strcmp(snd_card_name, "sdm660-tasha-skus-snd-card")) {
+ strlcpy(hw_info->name, "sdm660", sizeof(hw_info->name));
} else if (!strcmp(snd_card_name, "msm8920-sku7-snd-card")) {
strlcpy(hw_info->name, "msm8920", sizeof(hw_info->name));
} else if (!strcmp(snd_card_name, "apq8009-tashalite-snd-card")) {
diff --git a/hal/msm8916/platform.c b/hal/msm8916/platform.c
index ac72862..5cef2b8 100644
--- a/hal/msm8916/platform.c
+++ b/hal/msm8916/platform.c
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2013-2016, The Linux Foundation. All rights reserved.
+ * Copyright (c) 2013-2017, The Linux Foundation. All rights reserved.
* Not a Contribution.
*
* Copyright (C) 2013 The Android Open Source Project
@@ -47,6 +47,7 @@
#define MIXER_XML_PATH_SKUC "/system/etc/mixer_paths_skuc.xml"
#define MIXER_XML_PATH_SKUE "/system/etc/mixer_paths_skue.xml"
#define MIXER_XML_PATH_SKUL "/system/etc/mixer_paths_skul.xml"
+#define MIXER_XML_PATH_SKUS "/system/etc/mixer_paths_skus.xml"
#define MIXER_XML_PATH_SKUM "/system/etc/mixer_paths_qrd_skum.xml"
#define MIXER_XML_PATH_SKU1 "/system/etc/mixer_paths_qrd_sku1.xml"
#define MIXER_XML_PATH_SKUN_CAJON "/system/etc/mixer_paths_qrd_skun_cajon.xml"
@@ -905,6 +906,8 @@
sizeof("mdm9607-tomtom-i2s-snd-card")) ||
!strncmp(snd_card_name, "sdm660-tashalite-snd-card",
sizeof("sdm660-tashalite-snd-card")) ||
+ !strncmp(snd_card_name, "sdm660-tasha-skus-snd-card",
+ sizeof("sdm660-tasha-skus-snd-card")) ||
!strncmp(snd_card_name, "sdm660-tavil-snd-card",
sizeof("sdm660-tavil-snd-card")))
{
@@ -1223,6 +1226,13 @@
msm_device_to_be_id = msm_device_to_be_id_external_codec;
msm_be_id_array_len =
sizeof(msm_device_to_be_id_external_codec) / sizeof(msm_device_to_be_id_external_codec[0]);
+ } else if (!strncmp(snd_card_name, "sdm660-tasha-skus-snd-card",
+ sizeof("sdm660-tasha-skus-snd-card"))) {
+ strlcpy(mixer_xml_path, MIXER_XML_PATH_SKUS,
+ sizeof(MIXER_XML_PATH_SKUS));
+ msm_device_to_be_id = msm_device_to_be_id_external_codec;
+ msm_be_id_array_len =
+ sizeof(msm_device_to_be_id_external_codec) / sizeof(msm_device_to_be_id_external_codec[0]);
} else if (!strncmp(snd_card_name, "sdm660-tavil-snd-card",
sizeof("sdm660-tavil-snd-card"))) {
strlcpy(mixer_xml_path, MIXER_XML_PATH_WCD9340,