Commit graph

748 commits

Author SHA1 Message Date
Linux Build Service Account
093f38c166 Merge 6a0ea99fe2 on remote branch
Change-Id: Ic63309cba31138573cf85135545fcb1aa23992c0
2023-03-01 21:42:24 -08:00
Miaomiao Chen
6a0ea99fe2 msm:vidc: add enums for crop event
Add crop-left/right/width/height into enum msm_vidc_cb_event_types
to support reporting crop infomation from driver side. Video framework
can get crop info during output port reconfiguration.

Change-Id: I59a77ad698b586c197de735ee65ec049e42cbc7f
Signed-off-by: Miaomiao Chen <quic_miaochen@quicinc.com>
2022-11-22 05:38:58 -08:00
Linux Build Service Account
165735cca4 Merge 679dbb6bea on remote branch
Change-Id: Ic1ba260f36a7c9580d44fbad1cdd070f834c1964
2022-02-11 01:24:19 -08:00
Vasantha Balla
679dbb6bea msm: vidc: Fix coverity static code analysis violations
Debug prints modified to fix type mismatch errors.

Change-Id: I194ff4842f79f5cc32df8686855b88d3f6f4c5e8
2022-01-21 08:15:48 +05:30
Linux Build Service Account
66d44ae87e Merge 6602b657ee on remote branch
Change-Id: I97e55e81dfacabd31c9b3c877a9c93cb8a3cf9cf
2021-11-24 05:57:57 -08:00
Linux Build Service Account
455175665e Merge 446693d0b9 on remote branch
Change-Id: I589cd6745e41e32784b24053f171d373f233236e
2021-10-24 02:18:49 -07:00
qctecmdr
6602b657ee Merge "msm: vidc: Cancel batch work in case of pm_suspend" 2021-10-18 23:17:08 -07:00
Gaviraju Doddabettahalli Bettegowda
446693d0b9 msm: vidc: update VP9 level ranges
Added changes to update decoder VP9 level ranges
According to the platform specific.

Change-Id: Ie0115bf255fa2edc2ebed047d095e086cb18b3e0
2021-09-21 07:35:39 -07:00
Priyanka Gujjula
565adaa83c msm: vidc: Cancel batch work in case of pm_suspend
Cancel batch work when core is suspended due to
pm suspend.

Change-Id: I5c6e4f0eb0883a9c3cd2711f65e0d74a6cced310
Signed-off-by: Priyanka Gujjula <pgujjula@codeaurora.org>
2021-09-20 12:16:06 +05:30
Linux Build Service Account
c585c9cb5b Merge 667025ee57 on remote branch
Change-Id: Ibada0c2e29744bbb2e515d40cadfad25464586ed
2021-09-17 03:00:05 -07:00
Fudong Zhang
ebf28bcfef msm: vidc: Add max supported instances for scuba target
Add MAX_SUPPORTED_INSTANCES

Change-Id: I615745e486155b156ba2637ccd2ab89f4adee1bf
2021-09-08 19:10:35 -07:00
Fudong Zhang
548cf4ba56 msm: vidc: Enable v4l2 for bengal
Enable v4l2 enc/dec for bengal target.

Change-Id: I06411b9cf1a6ae846ec3243bd5e8e8bd9c9189a7
2021-09-08 19:10:21 -07:00
Linux Build Service Account
83cf2396f9 Merge 0e56923f41 on remote branch
Change-Id: I23b0c6dcd01b31191d06725cc3017bd3ba094a3c
2021-08-27 00:03:41 -07:00
Vikash Garodia
667025ee57 msm: vidc: Ping hardware during timeouts
Added PING command. Send the command to video firmware
when any awaited response is not received within the
stipulated time.
PING would help firmware to check if some commands or
messages are not processed in queue. At the same time,
the interrupts for handling PING command would clear
up the queues processing, if any.

Change-Id: Iee981dde3b3a1a21b74639703f86881fd5779027
Signed-off-by: Vikash Garodia <vgarodia@codeaurora.org>
Signed-off-by: Govindaraj Rajagopal <grajagop@codeaurora.org>
2021-08-20 11:43:46 +05:30
Linux Build Service Account
bdcea9dfa1 Merge 1d97a50965 on remote branch
Change-Id: I2acc062a432789854181769795793490f6c50ae0
2021-08-13 00:44:30 -07:00
Vikash Garodia
0e56923f41 msm: vidc: set ib bandwidth for holi
For holi, there is a requirement to vote for ib
bandwidth as twice the ab. Configuring the same.

Change-Id: Idccc40669c8d84bbe9a1f536ea230c2f1cae6662
2021-08-09 03:54:04 -07:00
qctecmdr
1d97a50965 Merge "msm: vidc: support input crop feature for encoder" 2021-08-03 18:16:38 -07:00
qctecmdr
0c5245b9cc Merge "msm: vidc: Add platform capabilities for scuba" 2021-08-03 18:08:25 -07:00
qctecmdr
362689d1df Merge "msm: vidc: Add config files for scuba" 2021-08-03 18:00:48 -07:00
Linux Build Service Account
3638174b4e Merge c121e47aad on remote branch
Change-Id: I85e90ccf44def14e28aeb92ba43636867ad5300b
2021-07-23 03:48:45 -07:00
Fudong Zhang
43cb7c3234 msm: vidc: support input crop feature for encoder
Support input crop feature for encoder

Change-Id: Ic7b5a273fc589b917b4b7672d67026cda7264941
2021-07-22 01:33:28 -07:00
qctecmdr
c121e47aad Merge "msm: venc: set auto frame rate only for VBR CFR native recorder" 2021-07-20 10:29:10 -07:00
Priyanka Gujjula
046dec9f65 msm: vidc: Add support for cx_ipeak
Add supporting changes in video driver for
cx_ipeak feature

Change-Id: Iea30144b52dce525c6abc80f415c859fffdb0b2d
2021-07-12 12:04:12 +05:30
Linux Build Service Account
c63742c8af Merge 171f80434d on remote branch
Change-Id: If108155c0fbff698ae59c013bee137ea8caaecf4
2021-07-09 08:48:23 -07:00
Fudong Zhang
ad091aa6ae msm: vidc: Add platform capabilities for scuba
Add platform specific capabilities for scuba target.

Change-Id: I1296b4934b1d3e2fb338fd0eff2617d45d406286
2021-07-09 01:02:59 -07:00
Fudong Zhang
a65ceebe83 msm: vidc: Add config files for scuba
Add video config files for scuba to enable
the video driver for scuba target

Change-Id: I2ee99356ab66f81e2b1a15b4a76155938ffe0db5
2021-07-09 14:42:44 +08:00
qctecmdr
171f80434d Merge "msm: vidc: Fix low latency log print" 2021-07-04 18:21:53 -07:00
Yang Xiaoqin
a2e13c93b9 msm: venc: set auto frame rate only for VBR CFR native recorder
Don't set AUDO_FRAME_RATE for non camera-recorder usercase.

Change-Id: I1e072538d2a7f431653c7bfd933b5d1c0b83f906
Signed-off-by: Yang Xiaoqin <quic_xiaoqiny@codeaurora.org>
2021-07-01 23:27:08 -07:00
Linux Build Service Account
35795cf95d Merge d8e78d23c3 on remote branch
Change-Id: Iba420d74b0709474d7a42e4f9624c72fe4f4b4d7
2021-06-23 05:12:59 -07:00
Priyanka Gujjula
763a8236a8 msm: vidc: Fix low latency log print
Fix low latency log print for decoder

Change-Id: I9fbcb0650a1c89ef4863866225c0e98092f51409
Signed-off-by: Priyanka Gujjula <pgujjula@codeaurora.org>
2021-06-22 10:19:33 +05:30
Sayantan Majumder
20846af219 msm: vidc: enabling dynamic session context for different targets
Adding support to enable dynamic maximum no of instances for
video sessions based on the different platforms.

Change-Id: I16b92cc8cc740809042947590dcd73dcf4801f96
Signed-off-by: Sayantan Majumder <smajumde@codeaurora.org>
2021-06-17 00:52:55 +05:30
Sayantan Majumder
b1b38cd347 msm: vidc: enabling new DTSI compatibility for IOT specific target
Added new compatibility string to enable video H/W acceleration
for qcm6490

Change-Id: I51fcc010cc85e05f26ac5b1e8d3ba4ad5fa8b052
Signed-off-by: Sayantan Majumder <smajumde@codeaurora.org>
2021-06-17 00:31:15 +05:30
qctecmdr
d8e78d23c3 Merge "msm: vidc: Add support for encoder complexity" 2021-06-15 00:47:01 -07:00
Linux Build Service Account
6e185ab23f Merge f0556555c7 on remote branch
Change-Id: Ia8b567c049ee58634ac8b609eee6ebedb2a3a4c2
2021-06-08 02:23:52 -07:00
Santhosh Behara
ca17de823f msm: vidc: Add support for encoder complexity
Add support for encoder complexity handling.
Enable lowpower mode if the complexity is 0.

Change-Id: Ife290b377c844e5b1d3be93b2509c787f8e05c59
Signed-off-by: Santhosh Behara <santhoshbehara@codeaurora.org>
2021-05-29 03:14:58 -07:00
Priyanka Gujjula
f0556555c7 msm: vidc: Allow adaptive B frame encode for hevc
Both H264 and HEVC can support adaptive B frame
encoding.

Change-Id: I4b51a224d9ed9bb173f40ea5c4c919ff2800a85c
2021-05-24 15:04:35 +05:30
Linux Build Service Account
cef8963e7c Merge d435c9e7f1 on remote branch
Change-Id: Ia21c48ce0742790879702adc98bf2425f3426a58
2021-05-19 00:25:19 -07:00
Linux Build Service Account
7fe766f303 Merge 797c9a6a15 on remote branch
Change-Id: I116c6ced7440b3553f46b41e349b643476e4b057
2021-05-07 21:21:44 -07:00
qctecmdr
d435c9e7f1 Merge "msm: vidc: Resolve compilation erorr on 32bit device" 2021-05-06 20:55:14 -07:00
qctecmdr
797c9a6a15 Merge "msm: vidc: fix memory leak in open/close" 2021-05-02 01:04:47 -07:00
Anand Abhishek
f537e62907 msm: vidc: Resolve compilation erorr on 32bit device
Division(/) and modulus(%) are failed to link on 32-bit kernel.
To resolve the linker error, use API for division and modulus which
are available for both 32bit and 64bit architecture.

Change-Id: Ib45b993c5ec4eee45d5f50e0d7b6d4831c256d8c
2021-04-27 22:52:40 -07:00
Linux Build Service Account
f9eb6170c5 Merge 38853169b3 on remote branch
Change-Id: I53ac95d2aa55f4b2d7cb97eea586e26d52b2d64a
2021-04-22 02:16:12 -07:00
qctecmdr
38853169b3 Merge "msm: vidc: Add check for maximum height" 2021-04-16 20:03:47 -07:00
Laisheng Hu
15964d6663 msm: vidc: fix memory leak in open/close
refbufs should be destroyed in vidc close.

CRs-Fixed: 2846268
Change-Id: Ic36b7ac824a6c46524b0c4f0ca364e9c87f015ba
Signed-off-by: Laisheng Hu <laisheng@codeaurora.org>
2021-04-16 16:43:50 +05:30
Linux Build Service Account
8ff62631e0 Merge 26782be248 on remote branch
Change-Id: I9ce2d0afc54f16a6f6623d953f02340fbb21416d
2021-04-09 18:51:55 -07:00
Vikash Garodia
8f2e5d7832 msm: vidc: Add check for maximum height
While accepting a video session, keep a check
for frame height w.r.t maximum capability.

CRs-Fixed: 2883699
Change-Id: I068dd9af868093dbdddf0301d8d40a95643314e0
Signed-off-by: Vikash Garodia <vgarodia@codeaurora.org>
2021-03-24 11:31:46 +05:30
Priyanka Gujjula
26782be248 msm: vidc: Allocate required bin size for >=UHD enc
Allocate equal bin size across all the pipes for
encoder >=UHD

Change-Id: Id6a4c2bda50da2bbd81e968be22b76bada51449a
2021-03-22 20:07:25 +05:30
Linux Build Service Account
02daf202b7 Merge 6b5756c37a on remote branch
Change-Id: I698e878048bd1027bd3267cc5ad74475966cbaa4
2021-03-18 21:25:02 -07:00
qctecmdr
6b5756c37a Merge "msm: vidc: Update BW calc for yupik" 2021-03-07 21:05:46 -08:00
Priyanka Gujjula
b28166cbf0 msm: vidc: Release scratch buffers of size 0 during reconfig
Release the existing scratch buffers instead of reuse,
provided the new buffer requirements is of size zero.
For ex, scratch buffer for interlace clips is zero.

Change-Id: Ic540839f1b5f8063ae5a1e4eda6df90b60b49af5
2021-03-02 16:52:57 +05:30