[media] v4l2-ioctl: Fill the default value for VIDIOC_QUERYSTD
authorMauro Carvalho Chehab <mchehab@redhat.com>
Tue, 4 Oct 2011 12:32:23 +0000 (09:32 -0300)
committerMauro Carvalho Chehab <mchehab@redhat.com>
Sat, 8 Oct 2011 11:00:35 +0000 (08:00 -0300)
commit8715e6cbae2ec8b451920496a73786402a5d879d
treee38ca245b3b1bdff952bd7a0b916d50ca633e25e
parent7383a47395fd5c5ae564b754ca14f6ae25dedecd
[media] v4l2-ioctl: Fill the default value for VIDIOC_QUERYSTD

According with the V4L2 API spec:

"When detection is not possible or fails, the set must contain
 all standards supported by the current video input or output."

The V4L2 core has the mask with all supported standards already. So,
apply it. Driver and subdevs can then just remove standards from the
mask, as they're able of detecting audio, video and frames frequency.

Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
drivers/media/video/v4l2-ioctl.c