1
0
Fork 0

[media] bttv: fix querystd

AND the standard mask with the detected standards.

Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
hifive-unleashed-5.1
Hans Verkuil 2013-05-29 10:19:02 -03:00 committed by Mauro Carvalho Chehab
parent 32cb3b09f4
commit 0bde6c3e4c
1 changed files with 2 additions and 2 deletions

View File

@ -1760,9 +1760,9 @@ static int bttv_querystd(struct file *file, void *f, v4l2_std_id *id)
struct bttv *btv = fh->btv;
if (btread(BT848_DSTATUS) & BT848_DSTATUS_NUML)
*id = V4L2_STD_625_50;
*id &= V4L2_STD_625_50;
else
*id = V4L2_STD_525_60;
*id &= V4L2_STD_525_60;
return 0;
}