lists.zerezo.com



[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: TV tuner doesn't work with kernels > 2.6.14



On Wed, Apr 19, 2006 at 12:54:55AM +0200, Michal Kochanowicz wrote:
> This card worked very well for years. Then came kernel 2.6.15. On this
> kernel tuner just don't tune anything. If I boot 2.6.14 and set some
> channel, I will not be able to select different channel after reboot
> with 2.6.15 kernel. If I powercycle and boot into 2.6.16 I will have
> static instead of TV.

I've modified tuner-core.c and hard-coded type of tuner into it - and it
works now. So it seems the bug is in tuner type passing code - or in my
setup. Any ideas?

Modification:
#v+
--- tuner-core.c.orig   2006-04-20 01:01:43.000000000 +0200
+++ tuner-core.c        2006-04-20 01:04:45.000000000 +0200
@@ -494,6 +494,7 @@

        /* Should be just before return */
 register_client:
+       t->type = 5;
        tuner_info("chip found @ 0x%x (%s)\n", addr << 1, adap->name);
        i2c_attach_client (&t->i2c);
        set_type (&t->i2c,t->type, t->mode_mask);
#v-

Result of "modprobe bttv" with original tuner-core.c from 2.6.16:
#v+
==> kernel <==
Apr 20 01:02:24 wieszak kernel: bttv: driver version 0.9.16 loaded
Apr 20 01:02:24 wieszak kernel: bttv: using 8 buffers with 2080k (520 pages) each for capture
Apr 20 01:02:24 wieszak kernel: bttv: Bt8xx card found (0).
Apr 20 01:02:24 wieszak kernel: ACPI: PCI Interrupt 0000:00:0c.0[A] -> Link [LNKD] -> GSI 11 (level, low) -> IRQ 11
Apr 20 01:02:24 wieszak kernel: bttv0: Bt878 (rev 2) at 0000:00:0c.0, irq: 11, latency: 32, mmio: 0xd7000000
Apr 20 01:02:24 wieszak kernel: bttv0: using: Prolink Pixelview PlayTV (bt878) [card=16,insmod option]
Apr 20 01:02:24 wieszak kernel: bttv0: gpio: en=00000000, out=00000000 in=00ffffff [init]
Apr 20 01:02:25 wieszak kernel: bttv0: i2c scan: found device @ 0xc2  [tuner (analog)]
Apr 20 01:02:25 wieszak kernel: bttv0: using tuner=5
Apr 20 01:02:25 wieszak kernel: bttv0: i2c: checking for MSP34xx @ 0x80... not found
Apr 20 01:02:25 wieszak kernel: bttv0: i2c: checking for TDA9875 @ 0xb0... not found
Apr 20 01:02:25 wieszak kernel: bttv0: i2c: checking for TDA7432 @ 0x8a... not found
Apr 20 01:02:25 wieszak kernel: bttv0: i2c: checking for TDA9887 @ 0x86... not found
Apr 20 01:02:25 wieszak kernel: tuner: tuner_debug is deprecated and will be removed in 2.6.17.
Apr 20 01:02:25 wieszak kernel: tuner: use the debug option instead.
Apr 20 01:02:25 wieszak kernel: tuner 1-0061: I2C RECV = 68 68 68 68 68 68 68 68 68 68 68 68 68 68 68 68
Apr 20 01:02:25 wieszak kernel: tuner 1-0061: Setting mode_mask to 0x0e
Apr 20 01:02:25 wieszak kernel: tuner 1-0061: chip found @ 0xc2 (bt878 #0 [sw])
Apr 20 01:02:25 wieszak kernel: tuner 1-0061: tuner 0x61: Tuner type absent
Apr 20 01:02:25 wieszak kernel: bttv0: registered device video0
Apr 20 01:02:25 wieszak kernel: bttv0: registered device vbi0
Apr 20 01:02:25 wieszak kernel: tuner 1-0061: v4l2_int ioctl AUDC_SET_INPUT, dir=-w (0x40046459)
Apr 20 01:02:25 wieszak kernel: tuner 1-0061: v4l2_int ioctl AUDC_SET_INPUT, dir=-w (0x40046459)
Apr 20 01:02:25 wieszak kernel: bttv0: PLL: 28636363 => 35468950 . ok
Apr 20 01:02:25 wieszak kernel: tuner 1-0061: v4l1 ioctl VIDIOCSCHAN, dir=-w (0x40307603)
Apr 20 01:02:25 wieszak kernel: tuner 1-0061: Cmd VIDIOCSCHAN accepted for analog TV
Apr 20 01:02:25 wieszak kernel: tuner 1-0061: tuner type not set
#v-

Modified tuner-core.c:
#v+
==> kernel <==
Apr 20 01:06:26 wieszak kernel: bttv: driver version 0.9.16 loaded
Apr 20 01:06:26 wieszak kernel: bttv: using 8 buffers with 2080k (520 pages) each for capture
Apr 20 01:06:26 wieszak kernel: bttv: Bt8xx card found (0).
Apr 20 01:06:26 wieszak kernel: ACPI: PCI Interrupt 0000:00:0c.0[A] -> Link [LNKD] -> GSI 11 (level, low) -> IRQ 11
Apr 20 01:06:26 wieszak kernel: bttv0: Bt878 (rev 2) at 0000:00:0c.0, irq: 11, latency: 32, mmio: 0xd7000000
Apr 20 01:06:26 wieszak kernel: bttv0: using: Prolink Pixelview PlayTV (bt878) [card=16,insmod option]
Apr 20 01:06:26 wieszak kernel: bttv0: gpio: en=00000000, out=00000000 in=00ffffff [init]
Apr 20 01:06:27 wieszak kernel: bttv0: i2c scan: found device @ 0xc2  [tuner (analog)]
Apr 20 01:06:27 wieszak kernel: bttv0: using tuner=5
Apr 20 01:06:27 wieszak kernel: bttv0: i2c: checking for MSP34xx @ 0x80... not found
Apr 20 01:06:27 wieszak kernel: bttv0: i2c: checking for TDA9875 @ 0xb0... not found
Apr 20 01:06:27 wieszak kernel: bttv0: i2c: checking for TDA7432 @ 0x8a... not found
Apr 20 01:06:27 wieszak kernel: bttv0: i2c: checking for TDA9887 @ 0x86... not found
Apr 20 01:06:27 wieszak kernel: tuner: tuner_debug is deprecated and will be removed in 2.6.17.
Apr 20 01:06:27 wieszak kernel: tuner: use the debug option instead.
Apr 20 01:06:27 wieszak kernel: tuner 1-0061: I2C RECV = 68 68 68 68 68 68 68 68 68 68 68 68 68 68 68 68
Apr 20 01:06:27 wieszak kernel: tuner 1-0061: Setting mode_mask to 0x0e
Apr 20 01:06:27 wieszak kernel: tuner 1-0061: chip found @ 0xc2 (bt878 #0 [sw])
Apr 20 01:06:27 wieszak kernel: tuner 1-0061: type set to 5 (Philips PAL_BG (FI1216 and compatibles))
Apr 20 01:06:27 wieszak kernel: tuner 1-0061: bt878 #0 [sw] tuner I2C addr 0xc2 with type 5 used for 0x0e
Apr 20 01:06:27 wieszak kernel: bttv0: registered device video0
Apr 20 01:06:27 wieszak kernel: bttv0: registered device vbi0
Apr 20 01:06:27 wieszak kernel: tuner 1-0061: v4l2_int ioctl AUDC_SET_INPUT, dir=-w (0x40046459)
Apr 20 01:06:27 wieszak kernel: tuner 1-0061: v4l2_int ioctl AUDC_SET_INPUT, dir=-w (0x40046459)
Apr 20 01:06:27 wieszak kernel: bttv0: PLL: 28636363 => 35468950 . ok
Apr 20 01:06:27 wieszak kernel: tuner 1-0061: v4l1 ioctl VIDIOCSCHAN, dir=-w (0x40307603)
Apr 20 01:06:27 wieszak kernel: tuner 1-0061: Cmd VIDIOCSCHAN accepted for analog TV
Apr 20 01:06:27 wieszak kernel: tuner 1-0061: tv: range 1
Apr 20 01:06:27 wieszak kernel: tuner 1-0061: Freq= 400.00 MHz, V_IF=38.93 MHz, Offset=0.00 MHz, div=7023
Apr 20 01:06:27 wieszak kernel: tuner 1-0061: tv 0x1b 0x6f 0x8e 0x90
#v-
-- 
--= Michal Kochanowicz =--==--==BOFH==--==--= michal@xxxxxxxxxxxxx =--
--= finger me for PGP public key or visit http://michal.waw.pl/PGP =--
--==--==--==--==--==-- Vodka. Connecting people.--==--==--==--==--==--
A chodzenie po górach SSIE!!!

--
video4linux-list mailing list
Unsubscribe mailto:video4linux-list-request@xxxxxxxxxx?subject=unsubscribe
https://www.redhat.com/mailman/listinfo/video4linux-list