This device supports V4L2_STD_ALL, but its check for 60Hz standards
is broken, as NTSC is not the only standard that uses 60Hz.
Cc: Federico Vaga <federico.vaga@gmail.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
return -EIO;
*std = vip->std = newstd;
if (oldstd != *std) {
- if (V4L2_STD_NTSC & (*std))
+ if (V4L2_STD_525_60 & (*std))
vip->format = formats_60[0];
else
vip->format = formats_50[0];
}
if (oldstd != *std) {
- if (V4L2_STD_NTSC & (*std))
+ if (V4L2_STD_525_60 & (*std))
vip->format = formats_60[0];
else
vip->format = formats_50[0];
if (V4L2_PIX_FMT_UYVY != f->fmt.pix.pixelformat)
return -EINVAL;
- if (V4L2_STD_NTSC & vip->std)
+ if (V4L2_STD_525_60 & vip->std)
interlace_lim = 240;
else
interlace_lim = 288;