]> git.kernelconcepts.de Git - karo-tx-linux.git/commitdiff
V4L: cx88: enable radio GPIO correctly
authorSteven Toth <stoth@hauppauge.com>
Fri, 25 Apr 2008 00:52:40 +0000 (20:52 -0400)
committerGreg Kroah-Hartman <gregkh@suse.de>
Thu, 1 May 2008 21:44:34 +0000 (14:44 -0700)
(cherry picked from commit 6b92b3bd7ac91b7e255541f4be9bfd55b12dae41)

This patch fixes an issue on the HVR1300, where GPIO is blown away due to
the radio input being undefined, breaking the functionality of the DVB
demodulator and MPEG2 encoder used on the cx8802 mpeg TS port.

This is a minimal patch for 2.6.26 and the -stable series.  This must be
fixed a better way for 2.6.27.

Signed-off-by: Steven Toth <stoth@hauppauge.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
Signed-off-by: Michael Krufky <mkrufky@linuxtv.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/media/video/cx88/cx88-cards.c

index 8c9a8adf52de2c2b5af95ed32d0805968857b20f..8bf55961002339f030ff454073708b1580d05822 100644 (file)
@@ -1354,6 +1354,10 @@ static const struct cx88_board cx88_boards[] = {
                }},
                /* fixme: Add radio support */
                .mpeg           = CX88_MPEG_DVB | CX88_MPEG_BLACKBIRD,
+               .radio = {
+                       .type   = CX88_RADIO,
+                       .gpio0  = 0xe780,
+               },
        },
        [CX88_BOARD_ADSTECH_PTV_390] = {
                .name           = "ADS Tech Instant Video PCI",