Reset all attributes except read only attribute
in msm_vidc_get_driver_buf() for an existing buffer
to avoid buffer flow problems in driver.
Change-Id: If6170caa9b9315f73b6023ef496aed2ba3e6efba
Signed-off-by: Maheshwar Ajja <majja@codeaurora.org>
Core capabitlities are not created before opening first instance,
hence add a check before accesing capabilities.
Change-Id: I46b85e685624a2219fcf9e1153f8f470c17dcec0
Signed-off-by: Mihir Ganu <mganu@codeaurora.org>
- Set enc colorspace info to firmware via
HFI_PROP_SIGNAL_COLOR_INFO property.
- Fix dec colorspace payload packaging.
Change-Id: Ib7ef2395a4f98f6497bbb200770a8612410eb8f5
Signed-off-by: Akshata Sahukar <asahukar@codeaurora.org>
After drc/drain sequence completion, if client initiates input port
streamoff, then firmware is expected to release all EBD's. But looks
like couple of FBD's also returned by firmware and gets added to
q->done_list.
Due to valid vb2_buffer entry, poll() gets unblocked everytime and
attempts to dequeue but dqbuf request on capture port after last_flag
will be rajected by vb2 with -EPIPE error.
So v2_buffer never gets dequeued and poll always gets unblocked i.e
leading to barrage of dqbuf failure prints.
Added change to clear last_buffer_dequeued flag as part of streamoff.
This is required for both input & output port side.
Change-Id: I9e84e642811100b1e32317228e7d9b3739def1c4
Signed-off-by: Govindaraj Rajagopal <grajagop@codeaurora.org>
[1] DRC_DRAIN_LAST_FLAG to DRC is not allowed. So remove support
[2] introduced in_range macro
[3] removed process_response_packet function
[4] introduced msm_vidc_process_pending_ipsc function.
Change-Id: I1bc7ed6f0d94052900a4655a2e3da9ea44d60143
Signed-off-by: Govindaraj Rajagopal <grajagop@codeaurora.org>
HFI_CMD_RESUME should be sent for following cases:
Decoder(V4L2_DEC_CMD_START)
input port: ipsc & drain
output port: opsc
Encoder(V4L2_ENC_CMD_START)
input port: drain
output port: no usage
Change-Id: I77b29c2da542a3d91f7ba96fb36291303d6af3f9
Signed-off-by: Govindaraj Rajagopal <grajagop@codeaurora.org>
Initialize queues first and then add the session
to the core. This will avoid the access to uninitialized
queues of new instance while voting the clocks/buses of the
other instance.
Change-Id: I92b06dba361eb1539aced90fb58251c04a55b175
- Set dynamic flag in inst database to allow
dynamic setting of necessary controls.
- avoid enc qbuf call routed to dec.
Change-Id: I66cfcc6be86bfbfe237191a11d533ab6c9455f32
Signed-off-by: Akshata Sahukar <asahukar@codeaurora.org>
-queue persist buffer as session buffer at the start
of the session for decoder
-fix hfi buffer packet parsing when payload is none.
Change-Id: I5da2472d00bf85dd328bbdfcbd35074a46522d25
Signed-off-by: Darshana Patil <darshana@codeaurora.org>
Update the fw load and fw unload functions to
make them non-static to allow calls from other
files.
Change-Id: I387a884a1274354e78defdf00245bd0108dd61fc
Signed-off-by: Rohit Kulkarni <rkulkarn@codeaurora.org>
Currently firmware debug log command is sent only in
system initialization command which is not sufficient as
system init cmd will be sent only once during system bootup
and hence set firmware debug log cmd in every session open.
Change-Id: I5d6cf781ac8f168afd182777a6b8a0579db22d09
Signed-off-by: Maheshwar Ajja <majja@codeaurora.org>
To simplify the boot process, firmware needs to know the type of architecture
before it boots up.
Change-Id: I42ff87094b816f9783d18fa67126e9b7a4dab320
Signed-off-by: Chinmay Sawarkar <chinmays@codeaurora.org>
reset data size to zero for last flag buffer.
reset RO flag for last flag buffer.
Change-Id: Idb340217c00ce478d1ec7de338b2ad38da23016d
Signed-off-by: Darshana Patil <darshana@codeaurora.org>
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>