Skip to content

Commit

Permalink
media: rockchip: hdmirx: add VIDIOC_S_INPUT and VIDIOC_G_INPUT
Browse files Browse the repository at this point in the history
  • Loading branch information
ramiropolla authored and amazingfate committed Jan 2, 2024
1 parent d925a36 commit 89e4ac2
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions drivers/media/platform/rockchip/hdmirx/rk_hdmirx.c
Original file line number Diff line number Diff line change
Expand Up @@ -1614,6 +1614,17 @@ static int hdmirx_enum_input(struct file *file, void *priv,
return 0;
}

static int hdmirx_g_input(struct file *file, void *priv, unsigned int *i)
{
*i = 0;
return 0;
}

static int hdmirx_s_input(struct file *file, void *priv, unsigned int i)
{
return i == 0 ? 0 : -EINVAL;
}

static int fcc_xysubs(u32 fcc, u32 *xsubs, u32 *ysubs)
{
/* Note: cbcr plane bpp is 16 bit */
Expand Down Expand Up @@ -2280,6 +2291,8 @@ static const struct v4l2_ioctl_ops hdmirx_v4l2_ioctl_ops = {
.vidioc_query_dv_timings = hdmirx_query_dv_timings,
.vidioc_dv_timings_cap = hdmirx_dv_timings_cap,
.vidioc_enum_input = hdmirx_enum_input,
.vidioc_g_input = hdmirx_g_input,
.vidioc_s_input = hdmirx_s_input,
.vidioc_g_edid = hdmirx_get_edid,
.vidioc_s_edid = hdmirx_set_edid,

Expand Down

0 comments on commit 89e4ac2

Please sign in to comment.