Loading post_proc/effect_api.c +7 −2 Original line number Diff line number Diff line Loading @@ -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; Loading Loading @@ -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*/ Loading @@ -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) Loading Loading
post_proc/effect_api.c +7 −2 Original line number Diff line number Diff line Loading @@ -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; Loading Loading @@ -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*/ Loading @@ -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) Loading