[media] vivi: fix a few format-related compliance issues
authorHans Verkuil <hverkuil@xs4all.nl>
Wed, 25 Jul 2012 14:48:53 +0000 (11:48 -0300)
committerMauro Carvalho Chehab <mchehab@redhat.com>
Tue, 31 Jul 2012 00:09:46 +0000 (21:09 -0300)
commitcd779254f92f30cef8d43d0c4345cfeebfc94db8
treefb17252f30bdd239f2bcebbbe6aade8a8ab6f169
parente53a99eb154d1ab6a7ddcaa960b4bddc701c7c2d
[media] vivi: fix a few format-related compliance issues

This patch will always set the field to INTERLACED (this fixes a bug were a driver should
never return FIELD_ANY), and will default to YUYV pixelformat if an unknown pixelformat
was specified.

This way S/TRY_FMT will always return a valid format struct.

Regards,

Hans

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