aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/media/pci/cx88
diff options
context:
space:
mode:
authorHans Verkuil <hans.verkuil@cisco.com>2012-09-14 06:15:03 -0400
committerMauro Carvalho Chehab <mchehab@redhat.com>2012-10-01 16:07:07 -0400
commit34a6b7d093d8fe738ada191b36648d00bc18b7eb (patch)
tree854584731068996a381af03b95884911c07074b5 /drivers/media/pci/cx88
parenta4f64407b9b33122a58cb78afd73f86d4bb022c4 (diff)
[media] v4l2-ctrls: add a filter function to v4l2_ctrl_add_handler
With a filter function you can control more precisely which controls are added. This is useful in particular for radio device nodes for combined TV/Radio cards where you want to show just the radio-specific controls and not controls like brightness. Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com> Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
Diffstat (limited to 'drivers/media/pci/cx88')
-rw-r--r--drivers/media/pci/cx88/cx88-blackbird.c2
-rw-r--r--drivers/media/pci/cx88/cx88-video.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/drivers/media/pci/cx88/cx88-blackbird.c b/drivers/media/pci/cx88/cx88-blackbird.c
index 843ffd9e533b..def363fb71c0 100644
--- a/drivers/media/pci/cx88/cx88-blackbird.c
+++ b/drivers/media/pci/cx88/cx88-blackbird.c
@@ -1236,7 +1236,7 @@ static int cx8802_blackbird_probe(struct cx8802_driver *drv)
1236 err = cx2341x_handler_init(&dev->cxhdl, 36); 1236 err = cx2341x_handler_init(&dev->cxhdl, 36);
1237 if (err) 1237 if (err)
1238 goto fail_core; 1238 goto fail_core;
1239 v4l2_ctrl_add_handler(&dev->cxhdl.hdl, &core->video_hdl); 1239 v4l2_ctrl_add_handler(&dev->cxhdl.hdl, &core->video_hdl, NULL);
1240 1240
1241 /* blackbird stuff */ 1241 /* blackbird stuff */
1242 printk("%s/2: cx23416 based mpeg encoder (blackbird reference design)\n", 1242 printk("%s/2: cx23416 based mpeg encoder (blackbird reference design)\n",
diff --git a/drivers/media/pci/cx88/cx88-video.c b/drivers/media/pci/cx88/cx88-video.c
index f6fcc7e763ab..a146d50d7795 100644
--- a/drivers/media/pci/cx88/cx88-video.c
+++ b/drivers/media/pci/cx88/cx88-video.c
@@ -1795,7 +1795,7 @@ static int __devinit cx8800_initdev(struct pci_dev *pci_dev,
1795 if (vc->id == V4L2_CID_CHROMA_AGC) 1795 if (vc->id == V4L2_CID_CHROMA_AGC)
1796 core->chroma_agc = vc; 1796 core->chroma_agc = vc;
1797 } 1797 }
1798 v4l2_ctrl_add_handler(&core->video_hdl, &core->audio_hdl); 1798 v4l2_ctrl_add_handler(&core->video_hdl, &core->audio_hdl, NULL);
1799 1799
1800 /* load and configure helper modules */ 1800 /* load and configure helper modules */
1801 1801