Revert disabling CP memory protection for secure non
pixel cb to avoid firmware hang issue for enc session.
Change-Id: I93260691d9504b33fc8f88a28fb81e66c9d24ce4
Signed-off-by: Akshata Sahukar <asahukar@codeaurora.org>
- Move driver to MSM_VIDC_DRAIN state when drain command
is receieved for an encoder session
- Static HFI_PROP_FRAME_RATE setting to video fw handling
is moved to inst database set function via
msm_vidc_set_v4l2_properties to avoid enc session failure
due to setting HFI_PROP_FRAME_RATE before starting video fw
Change-Id: I207b4bce932c5959fe47b9cca32abd15660ce2a9
Signed-off-by: Akshata Sahukar <asahukar@codeaurora.org>
Avoid sending subscribe or delivery comannds to firmware
when no metadata is enabled by client.
Change-Id: I379aa018b676ebc9b7e327757213371dbf089d53
Signed-off-by: Mihir Ganu <mganu@codeaurora.org>
Add support for S_PARM and G_PARM to enable client to
set and get frame rate and operating rate to driver. Also
includes some inst database grooming changes.
Change-Id: I5b39537662faa56effa0ac63acdfc100d83bf403
Signed-off-by: Akshata Sahukar <asahukar@codeaurora.org>
Enable delivery and subscriptions of various metadata based
on client settings. Also, skip instance state changes during
metadata port streamon/streamoff.
Change-Id: I063b562818c661bf1932c3362ecb709d7fe6bc20
Signed-off-by: Mihir Ganu <mganu@codeaurora.org>
- post input psc, output psc and last flag
events to response work handler
- fix issue with release and create internal
buffers during input psc
- clear last flag after session continue
Change-Id: Ic0278a09a0f6ee8ffff8840a47cd80c046ecadc4
Signed-off-by: Darshana Patil <darshana@codeaurora.org>
Use STAGE_1 work mode and HFI_SEQ_HEADER_JOINED_WITH_1ST_FRAME
as header mode as default values to avoid firmware sync issue with
enc HEVC NV12_UBWC session.
Change-Id: If15c743ec8f9d34e6ec878e4fbbedd20f7bb4e73
Signed-off-by: Akshata Sahukar <asahukar@codeaurora.org>
- update basic functionality controls with their parents
and children list.
- deprecate MPEG2 related code.
- rename driver internal color formats.
Change-Id: I918d6fd238486098f10c5b9ce40c895bcd9468e5
Signed-off-by: Akshata Sahukar <asahukar@codeaurora.org>
Add support for all the required instance states and
move the states accordingly.
Change-Id: Iac1046ab8c7a0116df6ed3069d566c7a1b65e61c
Signed-off-by: Maheshwar Ajja <majja@codeaurora.org>
Add support to get and set selection to update
crop and compose values in driver.
Change-Id: I1f38ac6a4f3ceac64d08d66f30b422efd79959a9
Signed-off-by: Maheshwar Ajja <majja@codeaurora.org>
create a new work handler and post and handle
events like psc.
introduce reuse concept for internal buffers.
Change-Id: Ibeaabae1b5923681756e959389df00b287206fb6
Signed-off-by: Darshana Patil <darshana@codeaurora.org>
-Add support to set metadata controls.
-Adjust set/get format for metadata ports.
-Add check when queuing metadata buffers.
Change-Id: I73725e26106621386dcb62cbf916186b9bc43995
Signed-off-by: Mihir Ganu <mganu@codeaurora.org>
Add video encoder internal buffer sizes to be used by
video hardware to process input data and produce output.
Change-Id: Icf58c748d5be2f81c7de69e914c526821a7effaf
Signed-off-by: Maheshwar Ajja <majja@codeaurora.org>
Non secure buffer allocation will use dma-heaps, while
secure allocations will continue using ion apis.
Change-Id: I7a7d77d197275814c8e6a9e1effe59ad3bd15224
Signed-off-by: Chinmay Sawarkar <chinmays@codeaurora.org>
update hfi_property.h and hfi_command.h files to align
with firmware hfi_lx_prop_v1.0_doc.h and hfi_lx_cmd_v1.0_doc.h
files respectively.
Change-Id: Id1e01fab0d40040075987d5b745a2d9ade4cd3a1
Signed-off-by: Akshata Sahukar <asahukar@codeaurora.org>
Enable video DLKM compilation in vendor SI
CRs-Fixed: 2836617
Signed-off-by: Karthikeyan Periasamy <kperiasa@codeaurora.org>
Change-Id: I281d1c18d72f75c43d7a14a174e892d44c1d9a3d
Allocate ARP buffer in CB4 to avoid HW hang issue.
Add support to set HFI_PROP_RAW_RESOLUTION at enc INPUT port
and did necessary changes to set HFI_PROP_CROP_OFFSETS at
OUTPUT port only for encoder. Also added support to set
missing basic control properties to video firmware.
Change-Id: If5bc2940d37ac20c1889cd4de466be09f1e1f28b
Signed-off-by: Akshata Sahukar <asahukar@codeaurora.org>
Set ipsc subscribe properties once during start input
and opsc subscribe once during start output. Fetch all
property values from ipsc and set the same values to
output port.
added codec config control support.
Change-Id: I3683becdb62096ee4dbed36181a2dc9876c53724
Signed-off-by: Darshana Patil <darshana@codeaurora.org>
Disable subscribe and delivery mode metadata.
increase hardware timeout. fix to set port
settings subscription once on input and
output port.
Change-Id: I16bbc40d2efe852d1d7f626feb871317a3bc6c08
Signed-off-by: Darshana Patil <darshana@codeaurora.org>
Firmware returns meta buffer after actual buffer but
client needs meta buffer before actual buffer. Handle
the case using MSM_VIDC_ATTR_DEQUEUED flag.
Change-Id: I99048a2f110a1b14bc4bb140b6211afa340c9f38
Signed-off-by: Maheshwar Ajja <majja@codeaurora.org>
below are the fixes added to get enc start/stop working
along with setting default values to firmware for basic
functionality controls.
- Create and queue COMV and NON COMV internal buffers
- Use HFI_PAYLOAD_64_PACKED as payload_info type instead
of HFI_PAYLOAD_32_PACKED HFI_PROP_CROP_OFFSETS
- Introduce new control port specifier flags in instance
database to help set correct port to controls while
packetization
- Add support to map basic functionality controls
v4l2 enum values to hfi enum values
- Enable static adjust and set controls support
Change-Id: Idc0dc3e3d07d8f6349c74136327a45d77ced1035
Signed-off-by: Akshata Sahukar <asahukar@codeaurora.org>
Added support for compiling video as kernel loadable module.
Change-Id: I5b9183d56d14e5e413b786b9ac2b449c6f8ab8ba
Signed-off-by: Karthikeyan Periasamy <kperiasa@codeaurora.org>
add support for input port settings change raised
by fw. update driver subscribed port settings
properties with instance. Raise event to client.
Release, get, create and queue input internal buffers.
Send resume commond to fw on input port.
Add support to destroy internal buffers.
Change-Id: Ic979cf2d0c7298b8083347173a973d553ed52af8
Signed-off-by: Darshana Patil <darshana@codeaurora.org>