when fw sends FBDs with read only flag for second time,
do not send vb2 buffer done on that buffer.
Change-Id: Iacf6fe87403664f2063b9d2e1859323506fa22a8
Signed-off-by: Darshana Patil <darshana@codeaurora.org>
Add support to added buf flags in dequeued buffers based
on HFI_PROP_NO_OUTPUT and HFI_PROP_PICTURE_TYPE property
values received from video fw.
Change-Id: Icf285ab7feb88daf8991705964ed0d3214c99870
Signed-off-by: Akshata Sahukar <asahukar@codeaurora.org>
For decoder FW should not assume any default sequence header.
Decodering should start only after FW receives first sequence
header. Also, decoding starts only after discovery of random
access point frame. RAP frame means IDR for AVC, IDR/CRA/BLA
for HEVC, I frame for VP9 and MPEG2.
Change-Id: Ie12b8140f6b63e57c52a9c96cb1250f4958a42c6
Signed-off-by: Darshana Patil <darshana@codeaurora.org>
Add support to set HFI_PROP_LINEAR_STRIDE_SCANLINE
property to video fw.
Change-Id: I0ce3549a472388a5d2471bf4c8978a5a5f524a34
Signed-off-by: Akshata Sahukar <asahukar@codeaurora.org>
On latest kernel version the debugfs functions
return type is void and hence update debugfs
functions in driver accordingly.
Change-Id: I13b10aaf84dc1c9bd0e2dd2b632e543f2a2e878d
Signed-off-by: Maheshwar Ajja <majja@codeaurora.org>
reset internal buffer size, buffers counts at the
time of destroy buffers.
Change-Id: Ibb83792c093849ac123bb8b0bfd01c5d97f675aa
Signed-off-by: Darshana Patil <darshana@codeaurora.org>
Since linux/time.h is not visible in waipio branch, compilation
issue is seen due to usage of timeval structure. Get rid of
timeval struct usage to avoid encountering this issue.
Change-Id: I03ce4f72f97b5e96e4dd495595c60c6835498f66
Signed-off-by: Akshata Sahukar <asahukar@codeaurora.org>
- return all buffers in streamoff error cases as well
- free instance memory in close
Change-Id: I06464bb0df4d2851c361a8027528e7cb5c7d241f
Signed-off-by: Maheshwar Ajja <majja@codeaurora.org>
- 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>
Video domain information is required to make correct
BW vote calculations.
Change-Id: I36cf1d157ba50f43a64e736f7d3e86d15d195244
Signed-off-by: Chinmay Sawarkar <chinmays@codeaurora.org>
fixes for nv12 format and dpb buffers. modified
PIX_FMTS and corresponding driver color format
structure, therby fixing enum_fmts.
Change-Id: I955b76dd4938e96fe259311e107a0cdca39425bc
Signed-off-by: Darshana Patil <darshana@codeaurora.org>
print error message from FW during system error
Change-Id: Id27469d786b647d2b61e8090fa1f4337b8bc79f6
Signed-off-by: Darshana Patil <darshana@codeaurora.org>
- destroy enc internal buffers when firmware returns these
buffers after its usage.
- fix some incorrect log masks that result in false error
logs.
Change-Id: I4707e915b725769bbbaa0a2c4c4e0d9cd10805a4
Signed-off-by: Akshata Sahukar <asahukar@codeaurora.org>
If required, Firmware can be unloaded after every session.
Power collapse is enabled by default.
Change-Id: Ie014a26ae600816d8713cd34826f1f9a77088e4a
Signed-off-by: Chinmay Sawarkar <chinmays@codeaurora.org>
Use hashed value for session id to over come the
same session ids being used concurrently where
one session is being closed and the other session
opening might be getting same session id.
Change-Id: I0bba056f26e404a7ff3b92ca9a81e673a0a6802f
Signed-off-by: Maheshwar Ajja <majja@codeaurora.org>
Decoder full reconfig testcase timeouts and fails with
fw logs disabled. Set only interrupt required flag without
response required flag for HFI_CMD_BUFFER to fix this issue.
Change-Id: I5509372fe34cbea8a62d7d9cb7f541ee2d6e1e15
Signed-off-by: Akshata Sahukar <asahukar@codeaurora.org>
Add support to deduce min, max, frame qp values from client set
controls and set the same to video firmware.
Change-Id: Id94e781cc0c8afdf0e9e00562bdaea32db04fd74
Signed-off-by: Akshata Sahukar <asahukar@codeaurora.org>
- Set correct metadata buffer sizes/counts in initialization.
- Update metadata buffer sizes/count when a metadata control is set.
Change-Id: Ib695b267efac26caa5858cdcdec1868d85182b90
Signed-off-by: Mihir Ganu <mganu@codeaurora.org>
Iris2 specific calculations for Work Mode and Route.
Also add quality mode support.
Change-Id: I7a1e2fa27236aa749978d146d85fd0af6177084c
Signed-off-by: Chinmay Sawarkar <chinmays@codeaurora.org>
Add below support
- kill session in case of errors
- core deinit in case of timeout errors
- flush buffers in streamoff
- decide supported colorformats based on
bitdepth and interlace info
- print level based logs
Change-Id: I45b9b0eae4220a818de23308da8802a9e12ae255
Signed-off-by: Maheshwar Ajja <majja@quicinc.com>
Add support for some advance controls to set adjusted
client set values to video fw. Mentioned below
are the properties added.
- HFI_PROP_LTR_COUNT
- HFI_PROP_LTR_USE
- HFI_PROP_LTR_MARK
- HFI_PROP_IR_RANDOM_PERIOD
- HFI_PROP_AUD
- HFI_PROP_TIME_DELTA_BASED_RATE_CONTROL
- HFI_PROP_8X8_TRANSFORM
- HFI_PROP_LTR_MARK_USE_DETAILS
- HFI_PROP_DEBLOCKING_MODE
Change-Id: Id31e9774154556df7c66cda366913489815a2723
Signed-off-by: Akshata Sahukar <asahukar@codeaurora.org>