Skip to content

Commit

Permalink
drivers: media: imx296: Add the link frequency control
Browse files Browse the repository at this point in the history
Add the V4L2_CID_LINK_FREQ menu control for the imx296. Report a single value
of 1188 Mhz for the link frequency.

Signed-off-by: Naushir Patuck <naush@raspberrypi.com>
  • Loading branch information
naushir committed May 20, 2022
1 parent 29668a8 commit 0770d7b
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions drivers/media/i2c/imx296.c
Expand Up @@ -306,6 +306,10 @@ static const char * const imx296_test_pattern_menu[] = {
"Checks",
};

static const s64 imx296_link_freq_menu[] = {
1188000000ULL,
};

static void imx296_adjust_exposure_range(struct imx296 *sensor,
struct v4l2_ctrl *ctrl)
{
Expand Down Expand Up @@ -461,6 +465,10 @@ static int imx296_ctrls_init(struct imx296 *sensor)
ARRAY_SIZE(imx296_test_pattern_menu) - 1,
0, 0, imx296_test_pattern_menu);

v4l2_ctrl_new_int_menu(&sensor->ctrls, NULL, V4L2_CID_LINK_FREQ,
ARRAY_SIZE(imx296_link_freq_menu) - 1, 0,
imx296_link_freq_menu);

v4l2_ctrl_new_fwnode_properties(&sensor->ctrls, &imx296_ctrl_ops,
&props);

Expand Down

0 comments on commit 0770d7b

Please sign in to comment.