V4L/DVB (9229): cx88: Add intial config for FM radio support
authorDarron Broad <darron@kewl.org>
Sat, 11 Oct 2008 14:57:59 +0000 (11:57 -0300)
committerMauro Carvalho Chehab <mchehab@redhat.com>
Fri, 17 Oct 2008 20:24:26 +0000 (17:24 -0300)
This add initial configuration for radio support on the
hvr-3000/4000. FM radio doesn't work as yet without
further patches (to come), but this prepares for
that.

Experimental radio support shows that it works
when combined with additional audio routing
work for cards with an FMD1216ME analogue
frontend, but not the MEX variant (more later).

Signed-off-by: Darron Broad <darron@kewl.org>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
drivers/media/video/cx88/cx88-cards.c

index 6986844e33c84369e115ef4c184bcbb057c67676..db691abbb64656d62b8ae0e133c7925d2b67c736 100644 (file)
@@ -1270,7 +1270,6 @@ static const struct cx88_board cx88_boards[] = {
                .mpeg           = CX88_MPEG_DVB,
        },
        [CX88_BOARD_HAUPPAUGE_HVR3000] = {
-               /* FIXME: Add dvb & radio support */
                .name           = "Hauppauge WinTV-HVR3000 TriMode Analog/DVB-S/DVB-T",
                .tuner_type     = TUNER_PHILIPS_FMD1216ME_MK3,
                .radio_type     = UNSET,
@@ -1294,6 +1293,11 @@ static const struct cx88_board cx88_boards[] = {
                        .gpio0  = 0x84bf,
                        .audioroute = 2,
                }},
+               /* FIXME Radio tunes but only noise is heard */
+               .radio = {
+                       .type   = CX88_RADIO,
+                       .gpio0  = 0x84bf,
+               },
                .mpeg           = CX88_MPEG_DVB,
                .num_frontends  = 2,
        },
@@ -1735,7 +1739,7 @@ static const struct cx88_board cx88_boards[] = {
                 * BIT  VALUE   FUNCTION GP{x}_IO
                 * 0    1       I:?
                 * 1    1       I:?
-                * 2    1       O:DVB-T DEMOD ENABLE LOW/ANALOG DEMOD ENABLE HIGH
+                * 2    1       O:MPEG PORT 0=DVB-T 1=DVB-S
                 * 3    1       I:?
                 * 4    1       I:?
                 * 5    1       I:?
@@ -1768,7 +1772,11 @@ static const struct cx88_board cx88_boards[] = {
                        .gpio0  = 0xc4bf,
                        .audioroute = 2,
                } },
-               /* fixme: Add radio support */
+               /* FIXME Radio tunes but only noise is heard */
+               .radio = {
+                       .type   = CX88_RADIO,
+                       .gpio0  = 0xc4bf,
+               },
                .mpeg           = CX88_MPEG_DVB,
                .num_frontends  = 2,
        },