Initialized the variable to avoid setting clock
with some random number
CRs-Fixed: 2836558
Change-Id: Id5673210c9e7431aad35b830c9538f8dae4982fc
Signed-off-by: Swarna Vanka <slatha@codeaurora.org>
While removing driver fw should be unloaded.
Also improved error handling.
Change-Id: Ia9f224da6f176c8a50c153f67fe8a77a92b7b08f
Signed-off-by: Chinmay Sawarkar <chinmays@codeaurora.org>
return POLLERR when inst is in error state.
Change-Id: If207b8e3346322424e95d70a45aa684643e9461d
Signed-off-by: Darshana Patil <darshana@codeaurora.org>
- introduce STRIDE_BYTES and STRIDE_PIX to
calculate size is bytes and pxls respectively.
- DEPRECATE VENUS_BUFFER_SIZE and introduce
VIDEO_RAW_BUFFER_SIZE. All buffer sizes are
calculated by using STRIDE_BYTES.
- For s_fmt, use STRIDE_PIX to calculate size.
- For v4l2 bytesperline, use STRIDE_IN_BYTES to
calculates size in bytes
Change-Id: I3db4d843d1834b25c6160ebc318572ac67e22806
Signed-off-by: Darshana Patil <darshana@codeaurora.org>
If not initialized, power control may wrongly be transferred
to firmware, even though regulator handoff is not done.
Change-Id: Ic76a679ff5f848bfb50c95dc3306f05ee62bc82f
Signed-off-by: Chinmay Sawarkar <chinmays@codeaurora.org>
Hand off regulators to hw to enable interframe power collapse.
Change-Id: I11d3d96f0a6cce23ef374e2065532a13af38d2f4
Signed-off-by: Chinmay Sawarkar <chinmays@codeaurora.org>
modify internal buffer counts for vp9. fix comv and
noncomv buffer count to 0 for vp9 as they are not
supported for this codec.
Change-Id: I5d504128ab587c425d4cd4cfd2059241e8d256aa
Signed-off-by: Darshana Patil <darshana@codeaurora.org>
set default header property once per session for decoder.
Change-Id: I5ca9088b8bed09907f2c9f829acec3db23e65a7c
Signed-off-by: Darshana Patil <darshana@codeaurora.org>
Currently msm_vidc_close is called directly for any failure
in msm_vidc_open(at any level). So i.e leading to free without
alloc & deinit without init problems.
Example:
if msm_vdec_inst_init is failed, msm_vidc_event_queue_deinit
will be called as part of msm_vidc_close and leading to crash
at v4l2_fh_del.
v4l2_fh_del should be called only if v4l2_fh_add is successful.
Change-Id: I5dd063c19327b881f533aa141f77b23ee7fad125
Signed-off-by: Govindaraj Rajagopal <grajagop@codeaurora.org>
modify decoder subscribe psc list according
to supported codecs.
Change-Id: Id54ea26bac07491b80877ef88ab7888c08750335
Signed-off-by: Darshana Patil <darshana@codeaurora.org>
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>