_MMCAMCORDER_LOCK_ASM(camcorder);
- /* set value to inform a status is changed by resource manaer */
- camcorder->state_change_by_system = _MMCAMCORDER_STATE_CHANGE_BY_RM;
-
/* Stop the camera */
- __mmcamcorder_force_stop(camcorder);
-
- /* restore value */
- camcorder->state_change_by_system = _MMCAMCORDER_STATE_CHANGE_NORMAL;
+ __mmcamcorder_force_stop(camcorder, _MMCAMCORDER_STATE_CHANGE_BY_RM);
_MMCAMCORDER_UNLOCK_ASM(camcorder);
_MMCAMCORDER_LOCK_ASM(camcorder);
- /* set value to inform a status is changed by resource manager */
- camcorder->state_change_by_system = _MMCAMCORDER_STATE_CHANGE_BY_RM;
-
/* Stop the camera */
- __mmcamcorder_force_stop(camcorder);
-
- /* restore value */
- camcorder->state_change_by_system = _MMCAMCORDER_STATE_CHANGE_NORMAL;
+ __mmcamcorder_force_stop(camcorder, _MMCAMCORDER_STATE_CHANGE_BY_RM);
_MMCAMCORDER_UNLOCK_ASM(camcorder);