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:17:58 +0000 (16:17 +0200)
commit9b7c44c4394621bec8ff7753089441e0ea9323ca
tree28f43fc17a5725b3b02a5a1e75192a5429ee9880
parent8cfcd5bbb72319fc4cc338cbfb08ae51370ae734
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