V4L/DVB (13912): cx18: Fix tuner reset pin in card entry for the Leadtek PVR2100
authorSergey Bolshakov <sbolshakov@altlinux.ru>
Sun, 3 Jan 2010 00:56:42 +0000 (21:56 -0300)
committerMauro Carvalho Chehab <mchehab@redhat.com>
Fri, 26 Feb 2010 18:10:30 +0000 (15:10 -0300)
Fix the "xceive_pin" setting from "15" to "1" for the PVR2100 -- the same as
the PVR3100H.  This properly resets the XC2028 tuner on the PVR2100.

Sergey's original email report:

Hi.
Seems cx18 module has incorrect .xceive_pin value for card,
as i see lots of i2c errors in dmesg from xc2028.
i'm using 2.6.32.2, my hardware is:

00:09.0 Multimedia video controller [0400]: Conexant Systems, Inc. CX23418
Single-Chip MPEG-2 Encoder with Integrated Analog Video/Broadcast Audio Decoder
[14f1:5b7a]
        Subsystem: LeadTek Research Inc. Device [107d:6f27]
        Flags: bus master, medium devsel, latency 64, IRQ 17
        Memory at f0000000 (32-bit, non-prefetchable) [size=64M]
        Capabilities: [44] Vital Product Data
        Capabilities: [4c] Power Management version 2
        Kernel driver in use: cx18
        Kernel modules: cx18

Following fixes this problem for me, the rest seems working:

Reported-by: Sergey Bolshakov <sbolshakov@altlinux.ru>
Tested-by: Sergey Bolshakov <sbolshakov@altlinux.ru>
Signed-off-by: Andy Walls <awalls@radix.net>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
drivers/media/video/cx18/cx18-cards.c

index f11e47a58286ae1b87901f60f6033d7e6a70878f..f808fb6fc1c12c1e4bc9cb320e881dfa66fba0c2 100644 (file)
@@ -393,7 +393,7 @@ static const struct cx18_card cx18_card_leadtek_pvr2100 = {
        .gpio_init.direction = 0x7,
        .gpio_audio_input = { .mask   = 0x7,
                              .tuner  = 0x6, .linein = 0x2, .radio  = 0x2 },
-       .xceive_pin = 15,
+       .xceive_pin = 1,
        .pci_list = cx18_pci_leadtek_pvr2100,
        .i2c = &cx18_i2c_std,
 };