mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-10-02 07:04:24 +00:00
media: mxb: update the tvnorms when changing input
The tuner input uses different tvnorms compared to the S-Video/Composite inputs. So update the tvnorms field in struct video_device when switching inputs. This fixes a V4L2 compliance issue. Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl> Signed-off-by: Mauro Carvalho Chehab <mchehab@kernel.org>
This commit is contained in:
parent
b2943a0e9a
commit
1ba2615e46
1 changed files with 3 additions and 0 deletions
|
@ -512,6 +512,9 @@ static int vidioc_s_input(struct file *file, void *fh, unsigned int input)
|
||||||
if (err)
|
if (err)
|
||||||
return err;
|
return err;
|
||||||
|
|
||||||
|
mxb->video_dev.tvnorms = mxb_inputs[input].std;
|
||||||
|
mxb->vbi_dev.tvnorms = mxb_inputs[input].std;
|
||||||
|
|
||||||
/* switch video in saa7111a */
|
/* switch video in saa7111a */
|
||||||
if (saa7111a_call(mxb, video, s_routing, i, SAA7111_FMT_CCIR, 0))
|
if (saa7111a_call(mxb, video, s_routing, i, SAA7111_FMT_CCIR, 0))
|
||||||
pr_err("VIDIOC_S_INPUT: could not address saa7111a\n");
|
pr_err("VIDIOC_S_INPUT: could not address saa7111a\n");
|
||||||
|
|
Loading…
Reference in a new issue