BTTV module load very slow

Hi everybody,

Just I have upgrade my computer from 11.4 to 12.1.
I have a video capturecard Conexant with eight inputs, where I connect somes cctv cameras. I used the Bttv kernel module.

When de system is ready (not at init system because is too slow), from kde-konsole I make:

modprobe bttv

The options on modprobe.d are

options bttv card=77,77,77,77,77,77,77,77 tuner=-1,-1,-1,-1,-1,-1,-1,-1 audiodev=-1,-1,-1,-1,-1,-1,-1,-1 v4l2=1 bttv_verbose=0 lumafilter=1

Until yesterday, the load of kernel module BTTV was very slow: About 1-2 minutes.
But, after the instalation of opensuse 12.1 and kernel 3.1, the load of module BTTV is extremely slow.

Look, this is some lines system log:

Apr 16 04:55:57 jardinero kernel:   376.254487] bttv: Bt8xx card found (4).
Apr 16 04:55:57 jardinero kernel:   376.254507] bttv 0000:02:0c.0: PCI->APIC IRQ transform: INT A -> IRQ 34
Apr 16 04:55:57 jardinero kernel:   376.254518] bttv4: Bt878 (rev 17) at 0000:02:0c.0, irq: 34, latency: 32, mmio: 0xec108000
Apr 16 04:55:57 jardinero kernel:   376.254557] bttv4: using: GrandTec Multi Capture Card (Bt878) [card=77,insmod option]
Apr 16 04:55:57 jardinero kernel:   376.254651] bttv4: tuner absent
Apr 16 04:55:57 jardinero kernel:   376.256102] bttv4: registered device video4
Apr 16 04:55:57 jardinero kernel:   376.256769] bttv4: registered device vbi4
Apr 16 04:56:29 jardinero kernel:   408.427949] bttv: Bt8xx card found (5).
Apr 16 04:56:29 jardinero kernel:   408.427974] bttv 0000:02:0d.0: PCI->APIC IRQ transform: INT A -> IRQ 39
Apr 16 04:56:29 jardinero kernel:   408.427986] bttv5: Bt878 (rev 17) at 0000:02:0d.0, irq: 39, latency: 32, mmio: 0xec10a000
Apr 16 04:56:29 jardinero kernel:   408.428026] bttv5: using: GrandTec Multi Capture Card (Bt878) [card=77,insmod option]
Apr 16 04:56:29 jardinero kernel:   408.428119] bttv5: tuner absent
Apr 16 04:56:29 jardinero kernel:   408.428489] bttv5: registered device video5
Apr 16 04:56:29 jardinero kernel:   408.428607] bttv5: registered device vbi5
Apr 16 04:57:01 jardinero kernel:   440.601566] bttv: Bt8xx card found (6).
Apr 16 04:57:01 jardinero kernel:   440.601588] bttv 0000:02:0e.0: PCI->APIC IRQ transform: INT A -> IRQ 35
Apr 16 04:57:01 jardinero kernel:   440.601600] bttv6: Bt878 (rev 17) at 0000:02:0e.0, irq: 35, latency: 32, mmio: 0xec10c000
Apr 16 04:57:01 jardinero kernel:   440.601635] bttv6: using: GrandTec Multi Capture Card (Bt878) [card=77,insmod option]
Apr 16 04:57:01 jardinero kernel:   440.601769] bttv6: tuner absent
Apr 16 04:57:01 jardinero kernel:   440.602133] bttv6: registered device video6
Apr 16 04:57:01 jardinero kernel:   440.602178] bttv6: registered device vbi6
Apr 16 04:57:34 jardinero kernel:   472.775776] bttv: Bt8xx card found (7).

The system create a device 4 at 55:57… wait 32 seconds … create device 5 … wait 32 seconds … create device 6
The card have 8 ports. Load the BTTV module take longer 5 minutes.

All system running fine, before and after the load. The module options in modprobe.d not seem to change the speed.

What it is the problem? Any way to speed up this?

On 04/15/2012 10:26 PM, trebol-a wrote:
>
> The system create a device 4 at 55:57… wait 32 seconds … create
> device 5 … wait 32 seconds … create device 6
> The card have 8 ports. Load the BTTV module take longer 5 minutes.
>
> All system running fine, before and after the load. The module options
> in modprobe.d not seem to change the speed.
>
> What it is the problem? Any way to speed up this?

The Documentation/video4linux/bttv/README in the kernel source says:

“If bttv takes very long to load (happens sometimes with the cheap
cards which have no tuner), try adding this to your modules.conf:
options i2c-algo-bit bit_test=1”.

Perhaps this will help.

My bttv card broke a month ago, but this was a fix that worked for me.

Waw, fantastic! the module is load in seconds, now I can load it to the system init !!!
I owe you four minutes and thirty seconds! :wink:

On 04/17/2012 05:46 PM, trebol-a wrote:
>
> lwfinger;2456306 Wrote:
>> options i2c-algo-bit bit_test=1".
>>
>> Perhaps this will help.
>
> Waw, fantastic! the module is load in seconds, now I can load it to the
> system init !!!
> I owe you four minutes and thirty seconds! :wink:

Make sure you keep track of the reboot count. You never know when I might want
to collect! :slight_smile: