diff options
| author | Stanimir Varbanov <stanimir.varbanov@linaro.org> | 2019-06-27 12:59:11 -0300 |
|---|---|---|
| committer | Mauro Carvalho Chehab <mchehab+samsung@kernel.org> | 2019-08-05 10:57:51 -0300 |
| commit | d42974e438feebda372fe4a39d7761cc596abc57 (patch) | |
| tree | 4db9b340f272811f950955bec6ca4ec96fd500d5 /drivers/media/platform/qcom/venus/vdec.c | |
| parent | 059790467bf4a75441615c69e5efd2b4bac3cba4 (diff) | |
| download | cachepc-linux-d42974e438feebda372fe4a39d7761cc596abc57.tar.gz cachepc-linux-d42974e438feebda372fe4a39d7761cc596abc57.zip | |
media: venus: dec: populate properly timestamps and flags for capture buffers
Cache flags, timestamps and timecode structure of OUTPUT buffers
in per-instance structure array and fill correctly the same when
the CAPTURE buffers are done.
This will make v4l2-compliance decoder streaming test happy.
Signed-off-by: Stanimir Varbanov <stanimir.varbanov@linaro.org>
Signed-off-by: Mauro Carvalho Chehab <mchehab+samsung@kernel.org>
Diffstat (limited to 'drivers/media/platform/qcom/venus/vdec.c')
| -rw-r--r-- | drivers/media/platform/qcom/venus/vdec.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/media/platform/qcom/venus/vdec.c b/drivers/media/platform/qcom/venus/vdec.c index 336d49132d19..0b7d65db5cdc 100644 --- a/drivers/media/platform/qcom/venus/vdec.c +++ b/drivers/media/platform/qcom/venus/vdec.c @@ -1135,6 +1135,8 @@ static void vdec_buf_done(struct venus_inst *inst, unsigned int buf_type, vbuf->sequence = inst->sequence_out++; } + venus_helper_get_ts_metadata(inst, timestamp_us, vbuf); + if (hfi_flags & HFI_BUFFERFLAG_READONLY) venus_helper_acquire_buf_ref(vbuf); |
