Loading post_proc/volume_listener.c +6 −6 Original line number Diff line number Diff line Loading @@ -432,7 +432,7 @@ static int vol_effect_command(effect_handle_t self, // After changing the state and if device is speaker // recalculate gain dep cal level if (context->dev_id & AUDIO_DEVICE_OUT_SPEAKER) { if (context->dev_id == AUDIO_DEVICE_OUT_SPEAKER) { check_and_set_gain_dep_cal(); } Loading @@ -459,7 +459,7 @@ static int vol_effect_command(effect_handle_t self, // After changing the state and if device is speaker // recalculate gain dep cal level if (context->dev_id & AUDIO_DEVICE_OUT_SPEAKER) { if (context->dev_id == AUDIO_DEVICE_OUT_SPEAKER) { check_and_set_gain_dep_cal(); } Loading Loading @@ -490,8 +490,8 @@ static int vol_effect_command(effect_handle_t self, __func__, context->dev_id, new_device); // check if old or new device is speaker if ((context->dev_id & AUDIO_DEVICE_OUT_SPEAKER) || (new_device & AUDIO_DEVICE_OUT_SPEAKER)) { if ((context->dev_id == AUDIO_DEVICE_OUT_SPEAKER) || (new_device == AUDIO_DEVICE_OUT_SPEAKER)) { recompute_gain_dep_cal_Level = true; } Loading @@ -516,7 +516,7 @@ static int vol_effect_command(effect_handle_t self, goto exit; } if (context->dev_id & AUDIO_DEVICE_OUT_SPEAKER) { if (context->dev_id == AUDIO_DEVICE_OUT_SPEAKER) { recompute_gain_dep_cal_Level = true; } Loading Loading @@ -696,7 +696,7 @@ static int vol_prc_lib_release(effect_handle_t handle) && (context->stream_type == recv_contex->stream_type)) { ALOGV("--- Found something to remove ---"); PRINT_STREAM_TYPE(context->stream_type); if (context->dev_id && AUDIO_DEVICE_OUT_SPEAKER) { if (context->dev_id == AUDIO_DEVICE_OUT_SPEAKER) { recompute_flag = true; } list_remove(&context->effect_list_node); Loading Loading
post_proc/volume_listener.c +6 −6 Original line number Diff line number Diff line Loading @@ -432,7 +432,7 @@ static int vol_effect_command(effect_handle_t self, // After changing the state and if device is speaker // recalculate gain dep cal level if (context->dev_id & AUDIO_DEVICE_OUT_SPEAKER) { if (context->dev_id == AUDIO_DEVICE_OUT_SPEAKER) { check_and_set_gain_dep_cal(); } Loading @@ -459,7 +459,7 @@ static int vol_effect_command(effect_handle_t self, // After changing the state and if device is speaker // recalculate gain dep cal level if (context->dev_id & AUDIO_DEVICE_OUT_SPEAKER) { if (context->dev_id == AUDIO_DEVICE_OUT_SPEAKER) { check_and_set_gain_dep_cal(); } Loading Loading @@ -490,8 +490,8 @@ static int vol_effect_command(effect_handle_t self, __func__, context->dev_id, new_device); // check if old or new device is speaker if ((context->dev_id & AUDIO_DEVICE_OUT_SPEAKER) || (new_device & AUDIO_DEVICE_OUT_SPEAKER)) { if ((context->dev_id == AUDIO_DEVICE_OUT_SPEAKER) || (new_device == AUDIO_DEVICE_OUT_SPEAKER)) { recompute_gain_dep_cal_Level = true; } Loading @@ -516,7 +516,7 @@ static int vol_effect_command(effect_handle_t self, goto exit; } if (context->dev_id & AUDIO_DEVICE_OUT_SPEAKER) { if (context->dev_id == AUDIO_DEVICE_OUT_SPEAKER) { recompute_gain_dep_cal_Level = true; } Loading Loading @@ -696,7 +696,7 @@ static int vol_prc_lib_release(effect_handle_t handle) && (context->stream_type == recv_contex->stream_type)) { ALOGV("--- Found something to remove ---"); PRINT_STREAM_TYPE(context->stream_type); if (context->dev_id && AUDIO_DEVICE_OUT_SPEAKER) { if (context->dev_id == AUDIO_DEVICE_OUT_SPEAKER) { recompute_flag = true; } list_remove(&context->effect_list_node); Loading