summaryrefslogtreecommitdiff
path: root/drivers/media/platform/qcom/camss/camss.h
diff options
context:
space:
mode:
authorRadoslav Tsvetkov <quic_rtsvetko@quicinc.com>2024-05-22 18:46:53 +0300
committerHans Verkuil <hverkuil-cisco@xs4all.nl>2024-06-29 13:20:04 +0300
commit6c46cb0d0aa0a9339d317d55fd3895caa0e655d4 (patch)
tree3855dc35a2b768245869fcf869c86cc703e03ac3 /drivers/media/platform/qcom/camss/camss.h
parentae44829a4a97a34486a89dbafc2653e9cbf896dd (diff)
downloadlinux-6c46cb0d0aa0a9339d317d55fd3895caa0e655d4.tar.xz
media: qcom: camss: Attach formats to VFE resources
Video node formats have direct dependency by the sub-device pad formats. Remove dependency for SoC version and move format definitions in device which creates video node. This commit attaches a struct to the VFE resources that holds format description, so it is much easier to assign them to the video node. No need to use a switch-case. NOTE: The mbus_bpp is used to calculate the clock rates and is different from bpp which is the bits per pixel written to memory. We need to keep both values to not break the calcualtions. Signed-off-by: Radoslav Tsvetkov <quic_rtsvetko@quicinc.com> Signed-off-by: Gjorgji Rosikopulos <quic_grosikop@quicinc.com> Acked-by: Bryan O'Donoghue <bryan.odonoghue@linaro.org> Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl>
Diffstat (limited to 'drivers/media/platform/qcom/camss/camss.h')
-rw-r--r--drivers/media/platform/qcom/camss/camss.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/media/platform/qcom/camss/camss.h b/drivers/media/platform/qcom/camss/camss.h
index e6d9fba646a1..9e73a55a257b 100644
--- a/drivers/media/platform/qcom/camss/camss.h
+++ b/drivers/media/platform/qcom/camss/camss.h
@@ -22,6 +22,7 @@
#include "camss-csiphy.h"
#include "camss-ispif.h"
#include "camss-vfe.h"
+#include "camss-format.h"
#define to_camss(ptr_module) \
container_of(ptr_module, struct camss, ptr_module)