[PATCH 1/3] media: v4l: Support obtaining link frequency from INTEGER64 controls

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Support INTEGER64 controls in v4l2_get_link_freq().

Signed-off-by: Sakari Ailus <sakari.ailus@xxxxxxxxxxxxxxx>
---
 drivers/media/v4l2-core/v4l2-common.c | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/drivers/media/v4l2-core/v4l2-common.c b/drivers/media/v4l2-core/v4l2-common.c
index 273d83de2a87..8e2fd81b7edf 100644
--- a/drivers/media/v4l2-core/v4l2-common.c
+++ b/drivers/media/v4l2-core/v4l2-common.c
@@ -473,6 +473,9 @@ s64 v4l2_get_link_freq(struct v4l2_ctrl_handler *handler, unsigned int mul,
 		struct v4l2_querymenu qm = { .id = V4L2_CID_LINK_FREQ };
 		int ret;
 
+		if (ctrl->type == V4L2_CTRL_TYPE_INTEGER64)
+			return v4l2_ctrl_g_ctrl_int64(ctrl);
+
 		qm.index = v4l2_ctrl_g_ctrl(ctrl);
 
 		ret = v4l2_querymenu(handler, &qm);
-- 
2.39.2





[Index of Archives]     [Linux Input]     [Video for Linux]     [Gstreamer Embedded]     [Mplayer Users]     [Linux USB Devel]     [Linux Audio Users]     [Linux Kernel]     [Linux SCSI]     [Yosemite Backpacking]

  Powered by Linux