upstream: [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)
committerChanho Park <chanho61.park@samsung.com>
Tue, 18 Nov 2014 02:51:29 +0000 (11:51 +0900)
commit8ba9d8a6322619633655189767b0f4e65707963a
tree282edf19f65a77d81dc03530530b49c42b19f17c
parent41889014d54ae5497e6d932bcb87583e6212a74a
upstream: [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