projects
/
platform
/
kernel
/
linux-arm64.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
609c4c1
)
[media] v4l2-ctrls: V4L2_CTRL_CLASS_FM_RX controls are also valid radio controls
author
Hans Verkuil
<hans.verkuil@cisco.com>
Sun, 2 Jun 2013 10:55:59 +0000
(07:55 -0300)
committer
Mauro Carvalho Chehab
<mchehab@redhat.com>
Sun, 9 Jun 2013 00:35:22 +0000
(21:35 -0300)
The radio filter function that filters controls that are valid for a radio
device should also accept V4L2_CTRL_CLASS_FM_RX controls.
Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
drivers/media/v4l2-core/v4l2-ctrls.c
patch
|
blob
|
history
diff --git
a/drivers/media/v4l2-core/v4l2-ctrls.c
b/drivers/media/v4l2-core/v4l2-ctrls.c
index
ebb8e48
..
fccd08b
100644
(file)
--- a/
drivers/media/v4l2-core/v4l2-ctrls.c
+++ b/
drivers/media/v4l2-core/v4l2-ctrls.c
@@
-1835,6
+1835,8
@@
bool v4l2_ctrl_radio_filter(const struct v4l2_ctrl *ctrl)
{
if (V4L2_CTRL_ID2CLASS(ctrl->id) == V4L2_CTRL_CLASS_FM_TX)
return true;
+ if (V4L2_CTRL_ID2CLASS(ctrl->id) == V4L2_CTRL_CLASS_FM_RX)
+ return true;
switch (ctrl->id) {
case V4L2_CID_AUDIO_MUTE:
case V4L2_CID_AUDIO_VOLUME: