Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

media: ar0521: Add LINK_FREQ control

Add support for V4L2_CID_LINK_FREQ which currently reports a single
hard-coded frequency which depends on the fixed pixel clock.

Signed-off-by: Jacopo Mondi <jacopo@jmondi.org>
Signed-off-by: Sakari Ailus <sakari.ailus@linux.intel.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@kernel.org>

authored by

Jacopo Mondi and committed by
Mauro Carvalho Chehab
f9746da3 6e27ef31

+11
+11
drivers/media/i2c/ar0521.c
··· 89 89 "vaa", /* Analog (2.7V) supply */ 90 90 }; 91 91 92 + static const s64 ar0521_link_frequencies[] = { 93 + 184000000, 94 + }; 95 + 92 96 struct ar0521_ctrls { 93 97 struct v4l2_ctrl_handler handler; 94 98 struct { ··· 574 570 const struct v4l2_ctrl_ops *ops = &ar0521_ctrl_ops; 575 571 struct ar0521_ctrls *ctrls = &sensor->ctrls; 576 572 struct v4l2_ctrl_handler *hdl = &ctrls->handler; 573 + struct v4l2_ctrl *link_freq; 577 574 int ret; 578 575 579 576 v4l2_ctrl_handler_init(hdl, 32); ··· 612 607 /* Manual exposure time */ 613 608 ctrls->exposure = v4l2_ctrl_new_std(hdl, ops, V4L2_CID_EXPOSURE, 0, 614 609 65535, 1, 360); 610 + 611 + link_freq = v4l2_ctrl_new_int_menu(hdl, ops, V4L2_CID_LINK_FREQ, 612 + ARRAY_SIZE(ar0521_link_frequencies) - 1, 613 + 0, ar0521_link_frequencies); 614 + if (link_freq) 615 + link_freq->flags |= V4L2_CTRL_FLAG_READ_ONLY; 615 616 616 617 ctrls->test_pattern = v4l2_ctrl_new_std_menu_items(hdl, ops, 617 618 V4L2_CID_TEST_PATTERN,