hal: add support for FFV get params
-Audio HAL to support FFV get_paramters via sound trigger
callback.
-FFV needs clients to pass down the SM handle info to get a few
paramerters with respect to the given SM handle but standard
get_parameters doesn't support kvpairs for input keys, it does
support for return of kvpairs, add support for a new delimiter
which will be used while sending keys in get_parameter.
-Enable Keep alive for Red Dragon
-Adjust volume gains based on the systems team tuned values
Change-Id: I96c7214b4a084568862e3550eaabbb9d51e253d9
diff --git a/hal/audio_hw.c b/hal/audio_hw.c
index 99c291c..7d6db15 100644
--- a/hal/audio_hw.c
+++ b/hal/audio_hw.c
@@ -6928,9 +6928,12 @@
static char* adev_get_parameters(const struct audio_hw_device *dev,
const char *keys)
{
+ ALOGD("%s:%s", __func__, keys);
+
struct audio_device *adev = (struct audio_device *)dev;
struct str_parms *reply = str_parms_create();
struct str_parms *query = str_parms_create_str(keys);
+
char *str;
char value[256] = {0};
int ret = 0;
@@ -6982,7 +6985,7 @@
str_parms_destroy(query);
str_parms_destroy(reply);
- ALOGV("%s: exit: returns - %s", __func__, str);
+ ALOGD("%s: exit: returns - %s", __func__, str);
return str;
}