[media] media: stk1160: Ignore unchanged standard set
authorEzequiel Garcia <ezequiel.garcia@free-electrons.com>
Thu, 18 Jul 2013 12:01:23 +0000 (09:01 -0300)
committerMauro Carvalho Chehab <m.chehab@samsung.com>
Fri, 26 Jul 2013 16:31:33 +0000 (13:31 -0300)
commitb3ba8fa6b89bd99efe75080bfd8f3168781ae7de
treef4693fc452d6c8bd64602648b47bc2b84d5e2841
parent9928ac7cddd5db4cdf3121f1992192adb41df9c3
[media] media: stk1160: Ignore unchanged standard set

This commit adds an early check to vidioc_s_std() to detect if the
new and current standards are equal, and exit with success in that
case.
This is needed to prevent userspace applications that might attempt
to re-set the same standard from failing if that's done when streaming
has started.

Signed-off-by: Ezequiel Garcia <ezequiel.garcia@free-electrons.com>
Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com>
Signed-off-by: Mauro Carvalho Chehab <m.chehab@samsung.com>
drivers/media/usb/stk1160/stk1160-v4l.c