media: vivid: fix incorrect capabilities for radio
authorHans Verkuil <hverkuil@xs4all.nl>
Thu, 1 Feb 2018 07:36:33 +0000 (02:36 -0500)
committerMauro Carvalho Chehab <mchehab@s-opensource.com>
Mon, 26 Feb 2018 13:00:53 +0000 (08:00 -0500)
commit65243386f41d38460bfd4375d231a7c0346d0401
tree852114ea86704b3b7774d3ba9adcd92ac2f54ecb
parent67300abdbe9f1717532aaf4e037222762716d0f6
media: vivid: fix incorrect capabilities for radio

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>
drivers/media/platform/vivid/vivid-ctrls.c