diff options
author | Hans Verkuil <hverkuil-cisco@xs4all.nl> | 2023-03-02 11:39:41 +0000 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@kernel.org> | 2023-04-15 08:54:58 +0100 |
commit | 1ba2615e468ec70de1b7dfa9868d3f0456d5f40c (patch) | |
tree | e4962e3c07e33ba64fe6b32aeccbb94a727570f2 | |
parent | b2943a0e9a7859c52d75f2f5cce532e04c4320a9 (diff) | |
download | linux-1ba2615e468ec70de1b7dfa9868d3f0456d5f40c.tar.gz linux-1ba2615e468ec70de1b7dfa9868d3f0456d5f40c.tar.bz2 linux-1ba2615e468ec70de1b7dfa9868d3f0456d5f40c.zip |
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>
-rw-r--r-- | drivers/media/pci/saa7146/mxb.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/media/pci/saa7146/mxb.c b/drivers/media/pci/saa7146/mxb.c index 557ba89cd12d..3b0c475c7ab4 100644 --- a/drivers/media/pci/saa7146/mxb.c +++ b/drivers/media/pci/saa7146/mxb.c @@ -512,6 +512,9 @@ static int vidioc_s_input(struct file *file, void *fh, unsigned int input) if (err) return err; + mxb->video_dev.tvnorms = mxb_inputs[input].std; + mxb->vbi_dev.tvnorms = mxb_inputs[input].std; + /* switch video in saa7111a */ if (saa7111a_call(mxb, video, s_routing, i, SAA7111_FMT_CCIR, 0)) pr_err("VIDIOC_S_INPUT: could not address saa7111a\n"); |