video: driver: amend stop and last flag processing

- do not ignore last flag buffer in last flag not allowed
  case also
- ignore stop command if input port is not streaming
  instead of returning -EBUSY error.
- defer input port settings change in few states instead of
  ignoring it.

Change-Id: I705f0c8ae2da899a5d262f6246aa65de5591ac26
Signed-off-by: Maheshwar Ajja <majja@codeaurora.org>
This commit is contained in:
Maheshwar Ajja
2021-01-26 22:42:15 -08:00
committed by Gerrit - the friendly Code Review server
orang tua d172684c07
melakukan 2719badd2b
6 mengubah file dengan 69 tambahan dan 38 penghapusan

Melihat File

@@ -713,6 +713,13 @@ struct msm_vidc_buffers {
bool reuse;
};
enum msm_vidc_allow {
MSM_VIDC_DISALLOW = 0,
MSM_VIDC_ALLOW,
MSM_VIDC_DEFER,
MSM_VIDC_IGNORE,
};
enum response_work_type {
RESP_WORK_INPUT_PSC = 1,
RESP_WORK_OUTPUT_PSC,