Make It So!

This is setup for 2 cards, drived by bttv & ivtv mainly.
Pull down a fine code from linuxtv:
hg clone http://linuxtv.org/hg/v4l-dvb

make menuconfig or fooconfig;
v4l-dvb/v4l/.config:
#Lines with "is not set" are omitted!
#
# Multimedia devices
#
CONFIG_VIDEO_DEV=m
CONFIG_VIDEO_V4L2_COMMON=m
CONFIG_VIDEO_V4L1=y
CONFIG_VIDEO_V4L1_COMPAT=y
CONFIG_VIDEO_V4L2=y
CONFIG_VIDEO_CAPTURE_DRIVERS=y
#
CONFIG_VIDEO_HELPER_CHIPS_AUTO=y
CONFIG_VIDEO_TVAUDIO=m
CONFIG_VIDEO_TDA7432=m
CONFIG_VIDEO_TDA9875=m
CONFIG_VIDEO_MSP3400=m
CONFIG_VIDEO_CS53L32A=m
CONFIG_VIDEO_M52790=m
CONFIG_VIDEO_WM8775=m
CONFIG_VIDEO_WM8739=m
CONFIG_VIDEO_VP27SMPX=m
CONFIG_VIDEO_SAA711X=m
CONFIG_VIDEO_CX25840=m
CONFIG_VIDEO_CX2341X=m
CONFIG_VIDEO_SAA7127=m
CONFIG_VIDEO_UPD64031A=m
CONFIG_VIDEO_UPD64083=m
CONFIG_VIDEO_VIVI=m
CONFIG_VIDEO_BT848=m
#
CONFIG_VIDEO_IVTV=m
CONFIG_VIDEO_FB_IVTV=m
#
CONFIG_VIDEO_TUNER_TYPES=m
CONFIG_VIDEO_TUNER=m
CONFIG_VIDEO_TUNER_CUSTOMIZE=y
CONFIG_TUNER_XC2028=m
#
CONFIG_TUNER_SIMPLE=m   *
CONFIG_TUNER_TDA9887=m
CONFIG_VIDEOBUF_GEN=m
CONFIG_VIDEOBUF_DMA_SG=m
CONFIG_VIDEOBUF_VMALLOC=m
CONFIG_VIDEO_BTCX=m
CONFIG_VIDEO_IR_I2C=m
CONFIG_VIDEO_IR=m
CONFIG_VIDEO_TVEEPROM=m
#
#EOF

*
"tuner-simple" module was split apart from the original "tuner" module.
This one is for bttv card.
Without of it, you will get a message:
"..Tuner has no way to set tv freq"

Enable XC2028 tuner support for Yuan PG600-2 card;
v4l-dvb/linux/drivers/media/video/ivtv/ivtv-cards.c:
#if 0 => #if 1

OK
make & make install

Firmware for xc2028 tuner!
v4l-dvb/linux/Documentation/video4linux/extract_xc3028.pl:
# Copyright (c) Mauro Carvalho Chehab <[EMAIL PROTECTED]>
# Released under GPLv2
#
# In order to use, you need to:
#       1) Download the windows driver with something like:
#               wget 
http://www.steventoth.net/linux/xc5000/HVR-12x0-14x0-17x0_1_25_25271_WHQL
.zip
#       2) Extract the file hcw85bda.sys from the zip into the current dir:
#               unzip -j HVR-12x0-14x0-17x0_1_25_25271_WHQL.zip 
Driver85/hcw85bda.sys
#       3) run the script:
#               ./extract_xc3028.pl
#       4) copy the generated file:
#               cp xc3028-v27.fw /lib/firmware
#..

sha1sum /lib/firmware/*
9b6e6a49c659d79688db2c2332c60db606f27e16  /lib/firmware/v4l-cx2341x-dec.fw
bd1ed667e4d9471e1e9c3a1b5cd0ec3e5d559130  /lib/firmware/v4l-cx2341x-enc.fw
ecdd553d90032d25659e2c5ec525870a2a67c545  /lib/firmware/v4l-cx2341x-init.mpg
135aa83e6deff73220b055f6c77549170c03858c
/lib/firmware/v4l-cx25840.fw
a7c98dada5fa6356ce47416612b3f73a43c57cba
/lib/firmware/xc3028-v27.fw

/etc/modprobe.conf:
options ivtv cardtype=19 debug=1
#manual set for Yuan PG600-2/XCeive card
#EOF

/etc/rc.d/rc.local:
#on Slackware
v4l2-ctl -d /dev/video1 -s pal
ivtv-tune -d /dev/v4l/video1 -t europe-west -c E10
#EOF

dmesg:
Linux video capture interface: v2.00
bttv: driver version 0.9.17 loaded
bttv: using 8 buffers with 2080k (520 pages) each for capture
bttv: Bt8xx card found (0).
bttv0: Bt878 (rev 17) at 0000:02:03.0, irq: 9, latency: 32, mmio: 0xe0000000
bttv0: detected: Hauppauge WinTV [card=10], PCI subsystem ID is 0070:13eb
bttv0: using: Hauppauge (bt878) [card=10,autodetected]
bttv0: gpio: en=00000000, out=00000000 in=00ffffdb [init]
bttv0: Hauppauge/Voodoo msp34xx: reset line init [5]
tveeprom 1-0050: Hauppauge model 44804, rev C129, serial# 3940178
tveeprom 1-0050: tuner model is Temic 4006FH5 (idx 29, type 14)
tveeprom 1-0050: TV standards PAL(B/G) (eeprom 0x04)
tveeprom 1-0050: audio processor is None (idx 0)
tveeprom 1-0050: has no radio
bttv0: Hauppauge eeprom indicates model#44804
bttv0: tuner type=14
bttv0: i2c: checking for MSP34xx @ 0x80... not found
bttv0: i2c: checking for TDA9875 @ 0xb0... not found
bttv0: i2c: checking for TDA7432 @ 0x8a... not found
tuner' 1-0061: chip found @ 0xc2 (bt878 #0 [sw])
tuner-simple 1-0061: type set to 14 (Temic PAL_BG (4006FH5))
bttv0: registered device video0
bttv0: registered device vbi0
bttv0: PLL: 28636363 => 35468950 .. ok
ivtv:  Start initialization, version 1.2.0
ivtv0: Initializing card #0
ivtv0: User specified Yuan PG600-2, GotView PCI DVD Lite card (detected 
cx23416 based chip)
ivtv0: Unreasonably low latency timer, setting to 64 (was 32)
cx25840 2-0044: cx25843-23 found @ 0x88 (ivtv i2c driver #0)
tuner 2-0061: chip found @ 0xc2 (ivtv i2c driver #0)
xc2028 2-0061: type set to XCeive xc2028/xc3028 tuner
xc2028 2-0061: xc2028/3028 firmware name not set!
cx25840 2-0044: loaded v4l-cx25840.fw firmware (16382 bytes)
ivtv0: Registered device video1 for encoder MPG (4096 kB)
ivtv0: Registered device video32 for encoder YUV (2048 kB)
ivtv0: Registered device vbi1 for encoder VBI (1024 kB)
ivtv0: Registered device video24 for encoder PCM (320 kB)
ivtv0: Registered device radio0 for encoder radio
ivtv0: Initialized card #0: Yuan PG600-2, GotView PCI DVD Lite
ivtv:  End initialization
ivtv0: Loaded v4l-cx2341x-enc.fw firmware (376836 bytes)
ivtv0: Encoder revision: 0x02060039
xc2028 2-0061: Loading 80 firmware images from xc3028-v27.fw, type: 
xc2028 firmware, ver 2.7
xc2028 2-0061: Loading firmware for type=BASE (1), id 0000000000000000.
xc2028 2-0061: Loading firmware for type=(0), id 000000000000b700.
SCODE (20000000), id 000000000000b700:
xc2028 2-0061: Loading SCODE for type=SCODE HAS_IF_4500 (60000000), id 
0000000000002000.
xc2028 2-0061: Device is Xceive 3028 version 1.0, firmware version 2.7
xc2028 2-0061: Loading firmware for type=(0), id 000000000000b700.
SCODE (20000000), id 000000000000b700:
xc2028 2-0061: Loading SCODE for type=SCODE HAS_IF_4500 (60000000), id 
0000000000002000.
xc2028 2-0061: Device is Xceive 3028 version 1.0, firmware version 2.7
xc2028 2-0061: Loading firmware for type=BASE F8MHZ (3), id 
0000000000000000.
(0), id 00000000000000ff:
xc2028 2-0061: Loading firmware for type=(0), id 0000000100000007.
SCODE (20000000), id 0000000100000007:
xc2028 2-0061: Loading SCODE for type=SCODE HAS_IF_5640 (60000000), id 
0000000200000007.
xc2028 2-0061: Device is Xceive 3028 version 1.0, firmware version 2.7
xc2028 2-0061: Device is Xceive 3028 version 1.0, firmware version 2.7

v4l2-ctl -d /dev/video0 --log-status:
Status Log:

    bttv0: ========  START STATUS CARD #0  ========
    tuner' 1-0061: Tuner mode:      analog TV
    tuner' 1-0061: Frequency:       210.25 MHz
    tuner' 1-0061: Standard:        0x000000ff
    bttv0: ========  END STATUS CARD   #0  ========

v4l2-ctl -d /dev/video1 --log-status:
Status Log:

    ivtv0: =================  START STATUS CARD #0  =================
    ivtv0: Version: 1.2.0 Card: Yuan PG600-2, GotView PCI DVD Lite
    cx25840 2-0044: Video signal:              present
    cx25840 2-0044: Detected format:           PAL-BDGHI
    cx25840 2-0044: Specified standard:        PAL-BDGHI
    cx25840 2-0044: Specified video input:     Composite 2
    cx25840 2-0044: Specified audioclock freq: 48000 Hz
    cx25840 2-0044: Detected audio mode:       stereo
    cx25840 2-0044: Detected audio standard:   A2-BG
    cx25840 2-0044: Audio muted:               no
    cx25840 2-0044: Audio microcontroller:     running
    cx25840 2-0044: Configured audio standard: automatic detection
    cx25840 2-0044: Configured audio system:   automatic standard and 
mode detection
    cx25840 2-0044: Specified audio input:     Tuner (In5)
    cx25840 2-0044: Preferred audio mode:      stereo
    cx25840 2-0044: Selected 65 MHz format:    autodetect
    cx25840 2-0044: Selected 45 MHz format:    chroma
    tuner 2-0061: Tuner mode:      analog TV
    tuner 2-0061: Frequency:       210.25 MHz
    tuner 2-0061: Standard:        0x000000ff
    ivtv0: Video Input:  Tuner 1
    ivtv0: Audio Input:  Tuner 1
    ivtv0: Tuner:  TV
    ivtv0: Stream: MPEG-2 Program Stream
    ivtv0: VBI Format: No VBI
    ivtv0: Video:  720x576, 25 fps
    ivtv0: Video:  MPEG-2, 4x3, Variable Bitrate, 6000000, Peak 8000000
    ivtv0: Video:  GOP Size 15, 2 B-Frames, GOP Closure
    ivtv0: Audio:  48 kHz, Layer II, 224 kbps, Stereo, No Emphasis, No CRC
    ivtv0: Spatial Filter:  Manual, Luma 1D Horizontal, Chroma 1D 
Horizontal, 0
    ivtv0: Temporal Filter: Manual, 8
    ivtv0: Median Filter:   Off, Luma [0, 255], Chroma [0, 255]
    ivtv0: Status flags:    0x00200000
    ivtv0: Stream encoder MPG: status 0x0000, 0% of 4096 KiB (128 
buffers) in use
    ivtv0: Stream encoder YUV: status 0x0000, 0% of 2048 KiB (64 
buffers) in use
    ivtv0: Stream encoder VBI: status 0x0000, 0% of 1040 KiB (61 
buffers) in use
    ivtv0: Stream encoder PCM: status 0x0000, 0% of 324 KiB (72 buffers) 
in use
    ivtv0: Read MPG/VBI: 0/0 bytes
    ivtv0: ==================  END STATUS CARD #0  ==================

Engage!

poma



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

Reply via email to