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

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

Merge "post_proc: Fix for KW reported P1 issues"

parents f57a1d46 b9bf50f6
Loading
Loading
Loading
Loading
+7 −2
Original line number Diff line number Diff line
@@ -114,7 +114,7 @@ int offload_update_mixer_and_effects_ctl(int card, int device_id,
        return -EINVAL;
    } else {
        *ctl = mixer_get_ctl_by_name(*mixer, mixer_string);
        if (!ctl) {
        if (!(*ctl)) {
            ALOGE("mixer_get_ctl_by_name failed");
            mixer_close(*mixer);
            *mixer = NULL;
@@ -968,6 +968,11 @@ static int hpx_send_params(eff_mode_t mode, void *ctl,
    uint32_t i;

    ALOGV("%s", __func__);
    if (!ctl) {
        ALOGE("%s: ctl is NULL, return invalid", __func__);
        return -EINVAL;
    }

    if (param_send_flags & OFFLOAD_SEND_HPX_STATE_OFF) {
        *p_param_values++ = DTS_EAGLE_MODULE_ENABLE;
        *p_param_values++ = 0; /* hpx off*/
@@ -976,7 +981,7 @@ static int hpx_send_params(eff_mode_t mode, void *ctl,
        *p_param_values++ = 1; /* hpx on*/
    }

    if ((mode == OFFLOAD) && ctl)
    if (mode == OFFLOAD)
        mixer_ctl_set_array(ctl, param_values, ARRAY_SIZE(param_values));
    else {
        if (ioctl(*(int *)ctl, AUDIO_EFFECTS_SET_PP_PARAMS, param_values) < 0)