g_mutex_unlock(&(cb_info->api_mutex[api]));
+ if (ret == CAMERA_ERROR_SOUND_POLICY)
+ LOGW("DEPRECATION WARNING: CAMERA_ERROR_SOUND_POLICY is deprecated and will be removed from next release.");
+ else if (ret == CAMERA_ERROR_SOUND_POLICY_BY_CALL)
+ LOGW("DEPRECATION WARNING: CAMERA_ERROR_SOUND_POLICY_BY_CALL is deprecated and will be removed from next release.");
+ else if (ret == CAMERA_ERROR_SOUND_POLICY_BY_ALARM)
+ LOGW("DEPRECATION WARNING: CAMERA_ERROR_SOUND_POLICY_BY_ALARM is deprecated and will be removed from next release.");
+
return ret;
}
LOGD("INTERRUPTED - policy %d, state previous %d, current %d",
policy, previous, current);
+ if (policy == CAMERA_POLICY_SOUND)
+ LOGW("DEPRECATION WARNING: CAMERA_POLICY_SOUND is deprecated and will be removed from next release.");
+ else if (policy == CAMERA_POLICY_SOUND_BY_CALL)
+ LOGW("DEPRECATION WARNING: CAMERA_POLICY_SOUND_BY_CALL is deprecated and will be removed from next release.");
+ else if (policy == CAMERA_POLICY_SOUND_BY_ALARM)
+ LOGW("DEPRECATION WARNING: CAMERA_POLICY_SOUND_BY_ALARM is deprecated and will be removed from next release.");
+
((camera_interrupted_cb)cb_info->user_cb[event])((camera_policy_e)policy,
(camera_state_e)previous, (camera_state_e)current, cb_info->user_data[event]);
}
LOGE("ERROR - error 0x%x, current_state %d", error, current_state);
+ if (error == CAMERA_ERROR_SOUND_POLICY)
+ LOGW("DEPRECATION WARNING: CAMERA_ERROR_SOUND_POLICY is deprecated and will be removed from next release.");
+ else if (error == CAMERA_ERROR_SOUND_POLICY_BY_CALL)
+ LOGW("DEPRECATION WARNING: CAMERA_ERROR_SOUND_POLICY_BY_CALL is deprecated and will be removed from next release.");
+ else if (error == CAMERA_ERROR_SOUND_POLICY_BY_ALARM)
+ LOGW("DEPRECATION WARNING: CAMERA_ERROR_SOUND_POLICY_BY_ALARM is deprecated and will be removed from next release.");
+
((camera_error_cb)cb_info->user_cb[event])((camera_error_e)error,
(camera_state_e)current_state, cb_info->user_data[event]);
}