On Tuesday 13 May 2008 13:50:18 [EMAIL PROTECTED] wrote:
> Hello everyone
>
> A few weeks ago, I bought a Video Encoder Card in Japan with the goal
> of using it there in a MythTV box.
>
> The card is branded "BUFFALO" and is called "PC-MV5L/PCI". The
> package says: "MPEG2 Hardware Encoder, TV tuner & VHS video capture
> board" (in Japanese).
>
> When booting my system, the kernel tells me that the card is unknown
> and that I should mail details to this mailing list (details are
> appended below). [Loading the firmware seems to be ok, though.]
>
> I compiled the latest kernel 2.6.25.3 from kernel.org to make sure I
> am not missing any important recent additions.
>
> The main chips on the PCI board are labeled:
> XCEIVE XC2028ACQ
> CONEXANT CX25843-24Z
> CONEXANT CX23416-22 MPEG II A/V ENCODER
> hynix 625A  (memory?)
>
> As far as I can see in drivers/media/video/ivtv/ivtv-cards.c there
> might be a chance of getting this to run, since both the tuner
> (XC2028) and the MPEG2 Encoder (CX23416) seem to be supported by IVTV
> for other cards.
>
> Unfortunately, I have no clue how to come up with a new entry for
> ivtv-cards.c to recognize my device. I can provide more details about
> all the logic chips on the board, contents of the Windows driver cd,
> photographs of the board, or anything else. Just let me know.
>
> If anyone is able to help, I'd appreciate it very much!

OK, a new card. There we go:

1) Get the new buffalo tree here: 
http://linuxtv.org/hg/~hverkuil/buffalo/archive/tip.tar.bz2

2) make, make install, and run modprobe ivtv.

3) The card should be autodetected, now see if it works. Start with the 
composite input (select using v4l2-ctl -i2).

4) If it does not work, then edit ivtv-cards.c: search for the 
ivtv_card_buffalo struct, check out the line:

 { IVTV_CARD_INPUT_COMPOSITE1, 1, CX25840_COMPOSITE3 },

in video_inputs. Replace CX25840_COMPOSITE3 with CX25840_COMPOSITE1 and 
try again. Then test with CX25840_COMPOSITE2, etc. etc. until 
COMPOSITE8. One of these 8 possible inputs should work.

Next try S-Video input (v4l2-ctl -i1): edit the line

{ IVTV_CARD_INPUT_SVIDEO1,    1, CX25840_SVIDEO3    },

and replace SVIDEO3 with SVIDEO1-4 and see which one works. If none of 
these works, or you get only black & white then make a note of which 
input gives B&W and let me know. We can get color to work later.

5) Tuner: first get the firmware. See the file 
linux/Documentation/video4linux/extract_xc3028.pl for instructions.

6) Now modprobe ivtv. Then run rmmod ivtv and modprobe ivtv again. If 
you get errors in the kernel log regarding the xceive tuner, then you 
need to change the xceive_pin setting in the buffalo card definition. 
It should be in the range 8-15. Try 10 first.

7) Congratulations, the tuner is now working. The final step is to find 
the correct composite input for the tuner by editing the line:

{ IVTV_CARD_INPUT_VID_TUNER,  0, CX25840_COMPOSITE2 },

Again, it can be any value from COMPOSITE1-8. For audio you may have to 
change the line:

{ IVTV_CARD_INPUT_AUD_TUNER,  CX25840_AUDIO5       },

Possible values: AUDIO4-8.

8) Done!

It's a bit annoying to go through all the combinations but it is the 
only way to do it.

BTW: check if your board has a WM8739 or MW8775 chip: that's a not 
uncommon audio chip.

Regards,

        Hans

>
> Thanks,
> Peter
>
> ==============================================================
> relevant sections from "dmesg"
> ==============================================================
> [    0.000000] Linux version 2.6.25.3-pkb ([EMAIL PROTECTED]) (gcc version
> 4.2.3 (Ubuntu 4.2.3-2ubuntu7)) #1 SMP Mon May 12 18:53:18 JST 2008
> ...skip...
> [   34.535451] agpgart: Detected VIA CLE266 chipset
> [   34.536713] agpgart: AGP aperture is 4M @ 0xea000000
> [   34.812244] Linux video capture interface: v2.00
> [   35.730306] ivtv:  Start initialization, version 1.2.0
> [   35.731953] ivtv0: Initializing card #0
> [   35.732032] ivtv0: Unknown card: vendor/device: 4444/0016
> [   35.732099] ivtv0:               subsystem vendor/device:
> 1154/052b [   35.732168] ivtv0:               cx23416 based
> [   35.732228] ivtv0: Defaulting to Hauppauge WinTV PVR-150 card
> [   35.732299] ivtv0: Please mail the vendor/device and subsystem
> vendor/device IDs and what kind of
> [   35.732388] ivtv0: card you have to the ivtv-devel mailinglist
> (www.ivtvdriver.org)
> [   35.732469] ivtv0: Prefix your subject line with [UNKNOWN IVTV
> CARD]. [   35.802255] ACPI: PCI Interrupt 0000:00:14.0[A] -> Link
> [LNKB] -> GSI 10 (level, low) -> IRQ 10
> [   35.802433] ivtv0: Unreasonably low latency timer, setting to 64
> (was 32) [   36.787796] tveeprom 1-0050: Encountered bad packet
> header [ff]. Corrupt or not a Hauppauge eeprom.
> [   36.787899] ivtv0: Invalid EEPROM
> [   37.986916] input: Power Button (FF) as /class/input/input4
> [   38.014101] ACPI: Power Button (FF) [PWRF]
> [   38.021253] input: Power Button (CM) as /class/input/input5
> [   38.054021] ACPI: Power Button (CM) [PWRB]
> [   43.399074] cx25840 1-0044: cx25843-24 found @ 0x88 (ivtv i2c
> driver #0) [   43.409132] wm8775 1-001b: chip found @ 0x36 (ivtv i2c
> driver #0) [   43.412483] wm8775 1-001b: I2C: cannot write 000 to
> register R23 [   43.415824] wm8775 1-001b: I2C: cannot write 000 to
> register R7 [   43.419118] wm8775 1-001b: I2C: cannot write 021 to
> register R11 [   43.422431] wm8775 1-001b: I2C: cannot write 102 to
> register R12 [   43.425741] wm8775 1-001b: I2C: cannot write 000 to
> register R13 [   43.429135] wm8775 1-001b: I2C: cannot write 1d4 to
> register R14 [   43.432443] wm8775 1-001b: I2C: cannot write 1d4 to
> register R15 [   43.455893] wm8775 1-001b: I2C: cannot write 1bf to
> register R16 [   43.506726] wm8775 1-001b: I2C: cannot write 185 to
> register R17 [   43.572995] wm8775 1-001b: I2C: cannot write 0a2 to
> register R18 [   43.630442] wm8775 1-001b: I2C: cannot write 005 to
> register R19 [   43.688818] wm8775 1-001b: I2C: cannot write 07a to
> register R20 [   43.798126] wm8775 1-001b: I2C: cannot write 102 to
> register R21 [   43.834579] ivtv0: Registered device video0 for
> encoder MPG (4096 kB) [   43.847960] ivtv0: Registered device video32
> for encoder YUV (2048 kB) [   43.854508] ivtv0: Registered device
> vbi0 for encoder VBI (1024 kB) [   43.861131] ivtv0: Registered
> device video24 for encoder PCM (320 kB) [   43.875737] ivtv0:
> Registered device radio0 for encoder radio [   43.875819] ivtv0:
> Initialized card #0: Hauppauge WinTV PVR-150 [   43.882291] ivtv: 
> End initialization
> [   44.183080] ACPI: PCI Interrupt 0000:01:00.0[A] -> Link [LNKA] ->
> GSI 11 (level, low) -> IRQ 11
> [   44.328232] fb0: VIA VT8623 on 0000:01:00.0, 16 MB RAM
> [   45.301070] parport_pc 00:0b: reported by Plug and Play ACPI
> [   45.301180] parport0: PC-style at 0x378, irq 7
> [PCSPP,TRISTATE,EPP] ...skip...
> [   73.898006] apm: BIOS version 1.2 Flags 0x07 (Driver version
> 1.16ac) [   73.898037] apm: overridden by ACPI.
> [   74.505237] ppdev: user-space parallel port driver
> [   75.544316] Clocksource tsc unstable (delta = -69390330 ns)
> [   78.972664] ivtv0: Loaded v4l-cx2341x-enc.fw firmware (376836
> bytes) [   79.169899] ivtv0: Encoder revision: 0x02060039
> [   82.973240] cx25840 1-0044: loaded v4l-cx25840.fw firmware (16382
> bytes) [   83.144925] wm8775 1-001b: I2C: cannot write 0c0 to
> register R21 [   83.150816] wm8775 1-001b: I2C: cannot write 1d4 to
> register R14 [   83.156603] wm8775 1-001b: I2C: cannot write 1d4 to
> register R15 [   83.162395] wm8775 1-001b: I2C: cannot write 102 to
> register R21 [   83.224920] wm8775 1-001b: I2C: cannot write 0c0 to
> register R21 [   83.230734] wm8775 1-001b: I2C: cannot write 1d4 to
> register R14 [   83.236512] wm8775 1-001b: I2C: cannot write 1d4 to
> register R15 [   83.242318] wm8775 1-001b: I2C: cannot write 102 to
> register R21 [   83.271840] wm8775 1-001b: I2C: cannot write 0c0 to
> register R21 [   83.277625] wm8775 1-001b: I2C: cannot write 1d4 to
> register R14 [   83.283436] wm8775 1-001b: I2C: cannot write 1d4 to
> register R15 [   83.289213] wm8775 1-001b: I2C: cannot write 108 to
> register R21 [   83.366955] wm8775 1-001b: I2C: cannot write 0c0 to
> register R21 [   83.372946] wm8775 1-001b: I2C: cannot write 1d4 to
> register R14 [   83.378749] wm8775 1-001b: I2C: cannot write 1d4 to
> register R15 [   83.384511] wm8775 1-001b: I2C: cannot write 102 to
> register R21 [   84.557735] ADDRCONF(NETDEV_UP): wlan0: link is not
> ready [   84.627866] eth0: link up, 100Mbps, full-duplex, lpa 0x45E1
> ...skip...
>
>
> ==============================================================
> # lspci -vvv
> ==============================================================
> ...skip...
> 00:14.0 Multimedia video controller: Internext Compression Inc iTVC16
> (CX23416) MPEG-2 Encoder (rev 01)
>       Subsystem: Melco Inc Unknown device 052b
>       Control: I/O- Mem+ BusMaster+ SpecCycle- MemWINV- VGASnoop- ParErr-
> Stepping- SERR- FastB2B-
>       Status: Cap+ 66MHz- UDF- FastB2B- ParErr- DEVSEL=medium >TAbort-
> <TAbort- <MAbort- >SERR- <PERR-
>       Latency: 64 (32000ns min, 2000ns max), Cache Line Size: 32 bytes
>       Interrupt: pin A routed to IRQ 10
>       Region 0: Memory at e4000000 (32-bit, prefetchable) [size=64M]
>       Capabilities: [44] Power Management version 2
>               Flags: PMEClk- DSI- D1- D2- AuxCurrent=0mA
> PME(D0-,D1-,D2-,D3hot-,D3cold-) Status: D0 PME-Enable- DSel=0
> DScale=0 PME-
> ...skip...
>
>
> ==============================================================
> # lspci -vvv -nn
> ==============================================================
> ...skip...
> 00:14.0 Multimedia video controller [0400]: Internext Compression Inc
> iTVC16 (CX23416) MPEG-2 Encoder [4444:0016] (rev 01)
>       Subsystem: Melco Inc Unknown device [1154:052b]
>       Control: I/O- Mem+ BusMaster+ SpecCycle- MemWINV- VGASnoop- ParErr-
> Stepping- SERR- FastB2B-
>       Status: Cap+ 66MHz- UDF- FastB2B- ParErr- DEVSEL=medium >TAbort-
> <TAbort- <MAbort- >SERR- <PERR-
>       Latency: 64 (32000ns min, 2000ns max), Cache Line Size: 32 bytes
>       Interrupt: pin A routed to IRQ 10
>       Region 0: Memory at e4000000 (32-bit, prefetchable) [size=64M]
>       Capabilities: [44] Power Management version 2
>               Flags: PMEClk- DSI- D1- D2- AuxCurrent=0mA
> PME(D0-,D1-,D2-,D3hot-,D3cold-) Status: D0 PME-Enable- DSel=0
> DScale=0 PME-
> ...skip...
>
>
>
> _______________________________________________
> ivtv-devel mailing list
> [email protected]
> http://ivtvdriver.org/mailman/listinfo/ivtv-devel



_______________________________________________
ivtv-devel mailing list
[email protected]
http://ivtvdriver.org/mailman/listinfo/ivtv-devel

Reply via email to