media: venus: helpers: Add a helper to map v4l2 ids to HFI ids
authorStanimir Varbanov <stanimir.varbanov@linaro.org>
Tue, 8 Sep 2020 08:50:21 +0000 (10:50 +0200)
committerMauro Carvalho Chehab <mchehab+huawei@kernel.org>
Mon, 14 Sep 2020 13:40:38 +0000 (15:40 +0200)
commit2c2dc2fdc1949545ed269ae6a6412b5185c5d5b9
treea80b2e971f4817e53a8e664b761771e5c4fd17f2
parentcbaa3117ea9a8d97836caee0e080de8add7aeb2e
media: venus: helpers: Add a helper to map v4l2 ids to HFI ids

Introduce a helper to set and get profile and levels which
includes the translation between v4l2 ctrl ids and HFI ids.
The input arguments are always in v4l2 ids space.

Signed-off-by: Stanimir Varbanov <stanimir.varbanov@linaro.org>
Signed-off-by: Mauro Carvalho Chehab <mchehab+huawei@kernel.org>
drivers/media/platform/qcom/venus/helpers.c
drivers/media/platform/qcom/venus/helpers.h