[media] ivtv: Fix radio support
authorIan Armstrong <ian@iarmst.demon.co.uk>
Sun, 23 Oct 2011 23:41:27 +0000 (00:41 +0100)
committerMauro Carvalho Chehab <mchehab@redhat.com>
Thu, 3 Nov 2011 09:42:15 +0000 (07:42 -0200)
Although the ivtv driver reports radio support through the V4L2 API, it fails
to actually enable it. This patch fixes that.

Signed-off-by: Ian Armstrong <ian@iarmst.demon.co.uk>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
drivers/media/video/ivtv/ivtv-driver.c

index 0fb75524484d909af4925c3c33c9f12cf6d6519e..41108a9a195ecb5b07fd6ad4697f978fc7cd0c9a 100644 (file)
@@ -1180,6 +1180,8 @@ static int __devinit ivtv_probe(struct pci_dev *pdev,
                setup.addr = ADDR_UNSET;
                setup.type = itv->options.tuner;
                setup.mode_mask = T_ANALOG_TV;  /* matches TV tuners */
+               if (itv->options.radio > 0)
+                       setup.mode_mask |= T_RADIO;
                setup.tuner_callback = (setup.type == TUNER_XC2028) ?
                        ivtv_reset_tuner_gpio : NULL;
                ivtv_call_all(itv, tuner, s_type_addr, &setup);