hal: Pass multisession configuration param to STHAL
Sound Trigger App uses setParameters() API to pass the number of sessions to be configured to STHAL. Change-Id: I14abff49863d82178fb633c9a93af0cd02c83e2e
This commit is contained in:
parent
86ed63f7cf
commit
c694f8a5e0
|
@ -252,7 +252,7 @@ void audio_extn_sound_trigger_set_parameters(struct audio_device *adev __unused,
|
|||
{
|
||||
audio_event_info_t event;
|
||||
char value[32];
|
||||
int ret;
|
||||
int ret, val;
|
||||
|
||||
if(!st_dev || !params) {
|
||||
ALOGE("%s: str_params NULL", __func__);
|
||||
|
@ -287,6 +287,12 @@ void audio_extn_sound_trigger_set_parameters(struct audio_device *adev __unused,
|
|||
else
|
||||
ALOGE("%s: unknown CPE status", __func__);
|
||||
}
|
||||
|
||||
ret = str_parms_get_int(params, "SVA_NUM_SESSIONS", &val);
|
||||
if (ret >= 0) {
|
||||
event.u.value = val;
|
||||
st_dev->st_callback(AUDIO_EVENT_NUM_ST_SESSIONS, &event);
|
||||
}
|
||||
}
|
||||
|
||||
int audio_extn_sound_trigger_init(struct audio_device *adev)
|
||||
|
|
Loading…
Reference in New Issue