Page 1 of 1

Techwell TW6805A Modprobe and Insmod Help

Posted: Thu Mar 29, 2012 6:44 am
by chad9090
Hi,

Here in the Philippines I bought a cheap DVR card from the local media provider called "CD-R King"

It has four input channels but I can only get 1 to work using Ubuntu 11.10.

You can see the card if you search for "cd-r king + AOP-V8101T"
I'm a new member so I can't yet post any direct URLs in my message.

Adopt Techwell 6805 decode chipset
Video Input: 4 Channels
Video Out: 1 Channel
Display & Recording rate: 30 fps (NTSC) 25 fps (PAL)
Record Resolution: 352 x 288 (PAL); 320 x 240 (NTSC)
Display Resolution:704 x 576 (PAL); 640 x 480 (NTSC)
Compression Format: H.264
High-Picture Quality: IE Browser
Max 4pcs/16ch cards in one PC

I've compiled and loaded the tw68 driver from gitorious but I think my modprobe is wrong.

The chipset is TW6805A. When loaded I expect to see /dev/video0, /devvideo1, /dev/video2 and /dev/video3.

I am only seeing /dev/video0. I wonder can anyone adive me what to try?

This is some of what I've been trying:

1)
modprobe bttv card=130,130,130,130
insmod tw68.ko

2)
modprobe bttv card=130,130,130,130
insmod tw68.ko

3)
modprobe bttv card=77,77,77,77
insmod tw68.ko

4)
modprobe bttv card=113,113,113,113
insmod tw68.ko

Plus other variations of this. /var/log/syslog always logs the same message:

Mar 29 14:18:46 zm1 kernel: [ 2392.232250] Linux video capture interface: v2.00
Mar 29 14:18:46 zm1 kernel: [ 2392.242194] bttv: driver version 0.9.18 loaded
Mar 29 14:18:46 zm1 kernel: [ 2392.242199] bttv: using 8 buffers with 2080k (520 pages) each for capture

Mar 29 14:18:51 zm1 kernel: [ 2397.606775] tw68: v4l2 driver version 0.0.4 loaded
Mar 29 14:18:51 zm1 kernel: [ 2397.606816] tw6804[0]: found at 0000:01:0a.0, rev: 16, irq: 18, latency: 64, mmio: 0xdffff800
Mar 29 14:18:51 zm1 kernel: [ 2397.606823] tw6804[0]: subsystem: 0000:0000, board: GENERIC [card=0,autodetected]
Mar 29 14:18:51 zm1 kernel: [ 2397.606839] tw6804[0]: Unable to determine board type, using generic values
Mar 29 14:18:51 zm1 kernel: [ 2397.708157] tw6804[0]: registered device video0 [v4l2]
Mar 29 14:18:51 zm1 kernel: [ 2397.708186] tw6804[0]: registered device vbi0

lspci shows:

lspci | grep 68
01:0a.0 Multimedia video controller: Techwell Inc. Device 6804 (rev 10)
01:0a.1 Multimedia controller: Techwell Inc. Device 6805 (rev 10)

I'm wondering yes it is one card but should it show 4 devices? One for each input?

Always only video0 and not video0 to video3

Can anyone offer any advice or tips on how I can use load this card?

Many thanks.

Re: Techwell TW6805A Modprobe and Insmod Help

Posted: Thu Mar 29, 2012 8:44 am
by chad9090
This is OK.

I found the answer in another post here.

/dev/video0 is the one chipset and there are 4 composite's zoneminder will use.

All good and VERY happy!

Thanks