static u32 vid_dec_pause_resume(struct video_client_ctx *client_ctx, u32 pause) { u32 vcd_status; if (!client_ctx) { ERR("\n %s(): Invalid client_ctx", __func__); return FALSE; } if (pause) { INFO("\n msm_vidc_dec: PAUSE command from client = %p\n", client_ctx); vcd_status = vcd_pause(client_ctx->vcd_handle); } else{ INFO("\n msm_vidc_dec: RESUME command from client = %p\n", client_ctx); vcd_status = vcd_resume(client_ctx->vcd_handle); } if (vcd_status) return FALSE; return TRUE; }
u32 vid_enc_pause_resume(struct video_client_ctx *client_ctx, u32 pause) { u32 vcd_status; if (!client_ctx) return FALSE; if (pause) { DBG("PAUSE command from client = %p\n", client_ctx); vcd_status = vcd_pause(client_ctx->vcd_handle); } else { DBG("Resume command from client = %p\n", client_ctx); vcd_status = vcd_resume(client_ctx->vcd_handle); } if (vcd_status) return FALSE; return TRUE; }