1: int32_t AG903_VidMgrReleaseInputHandle(
AG903_VidMgrInputHandle *handle)
2: {
3:
4:
if ((handle == NULL) || (handle->id !=
AG903_VID_MGR_INPUT_HANDLE_ID)) {
5:
return -
AG903_EINVAL;
6: }
7:
8:
9: VidContext.used_in_ports[handle->port_no] =
false;
10:
11:
12: handle->id = 0;
13: handle->is_dirty =
false;
14: handle->sync_signal = 0;
15: handle->inout_vsync_pol = 0;
16: handle->inout_hsync_pol = 0;
17: handle->in_de_pol = 0;
18: handle->in_field_pol = 0;
19: handle->in_clk_pol = 0;
20: handle->h_pulse_width = 0;
21: handle->h_front_porch = 0;
22: handle->h_back_porch = 0;
23: handle->h_frame_size = 0;
24: handle->v_pulse_width = 0;
25: handle->v_front_porch = 0;
26: handle->v_back_porch = 0;
27: handle->v_frame_size = 0;
28:
29:
return AG903_ENONE;
30: }