media: vivid: fix incorrect capabilities for radio
authorHans Verkuil <hverkuil@xs4all.nl>
Thu, 1 Feb 2018 07:36:33 +0000 (02:36 -0500)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 25 May 2018 14:13:13 +0000 (16:13 +0200)
commit9639854bd3b82d8590e1888f80b6ca4bacc3465b
tree2d115d9113e76f7cf32a102afd0fd11506646b31
parent28ea156b65622edc8384d0688db8aeb206f2e48b
media: vivid: fix incorrect capabilities for radio

[ Upstream commit 65243386f41d38460bfd4375d231a7c0346d0401 ]

The vivid driver has two custom controls that change the behavior of RDS.
Depending on the control setting the V4L2_CAP_READWRITE capability is toggled.
However, after an earlier commit the capability was no longer set correctly.
This is now fixed.

Fixes: 9765a32cd8 ("vivid: set device_caps in video_device")

Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@s-opensource.com>
Signed-off-by: Sasha Levin <alexander.levin@microsoft.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/media/platform/vivid/vivid-ctrls.c