]> git.openfabrics.org - ~shefty/rdma-dev.git/commitdiff
[media] cx18: Fix FM radio
authorAndy Walls <awalls@md.metrocast.net>
Sun, 23 Oct 2011 23:51:11 +0000 (00:51 +0100)
committerMauro Carvalho Chehab <mchehab@redhat.com>
Thu, 3 Nov 2011 09:42:21 +0000 (07:42 -0200)
The cx18 driver was not setting up the analog tuner driver to enable
FM radio.  This change fixes that.  Thanks go to Ian Armstrong for
reporting and fixing the analogous problem in ivtv.

Signed-off-by: Andy Walls <awalls@md.metrocast.net>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
drivers/media/video/cx18/cx18-driver.c

index 9e2f870f4258665ae6093c762f752d45147a8c98..c6ff32a6137c61a22c6b0774c09a18d5fd0158d0 100644 (file)
@@ -1085,6 +1085,8 @@ static int __devinit cx18_probe(struct pci_dev *pci_dev,
                setup.addr = ADDR_UNSET;
                setup.type = cx->options.tuner;
                setup.mode_mask = T_ANALOG_TV;  /* matches TV tuners */
+               if (cx->options.radio > 0)
+                       setup.mode_mask |= T_RADIO;
                setup.tuner_callback = (setup.type == TUNER_XC2028) ?
                        cx18_reset_tuner_gpio : NULL;
                cx18_call_all(cx, tuner, s_type_addr, &setup);