Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 8a0d03c9 authored by Linux Build Service Account's avatar Linux Build Service Account Committed by Gerrit - the friendly Code Review server
Browse files

Merge "hal: Pass multisession configuration param to STHAL"

parents 035ae613 c694f8a5
Loading
Loading
Loading
Loading
+7 −1
Original line number Diff line number Diff line
@@ -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)