>
> On Tue, 2008-10-14 at 11:04 -0400, Jeff Campbell wrote:
>
>
> You should really download and test with the latest cx18 driver from the
> v4l-dvb repository:
>
> http://www.linuxtv.org/hg/v4l-dvb
>
> Instructions are on this page:
>
> http://www.ivtvdriver.org/index.php/Cx18
>
>
> Not being able to start the card working and generating interrupts is an
> indication that commands didn't get received by the CX23418 over the PCI
> bus.  cx18 driver v1.0.1 adds retries of PCI mmio read and write
> accesses to improve communications with the CX23418.
>
> You can load the v1.0.1 cx18 module with the debug parameter set to log
> at least "info", if you want to see statistics on PCI mmio read and
> write retries with v4l2-ctl --log-status.
>
>
Andy,

I finally got a chance to update my box at work.  Here is the dmesg output
with debug enabled.  Also the v4l2-ctl --log-status

cx18-1: Initializing card #1
cx18-1: Autodetected Hauppauge card
cx18-1: Unreasonably low latency timer, setting to 64 (was 32)
cx18-1: cx23418 revision 01010000 (B)
cx18-1: Autodetected Hauppauge HVR-1600
cx18-1: VBI is not yet supported
cx18-1: Disabled encoder IDX device
cx18-1: Registered device video1 for encoder MPEG (2 MB)
cx18-1: DVB Frontend registered
cx18-1: Registered device video33 for encoder YUV (2 MB)
cx18-1: Registered device video25 for encoder PCM audio (1 MB)
cx18-1: Registered device radio1 for encoder radio
cx18-1: Initialized card #1: Hauppauge HVR-1600
cx18-1: loaded v4l-cx23418-apu.fw firmware V00120000 (141200 bytes)
cx18-1: loaded v4l-cx23418-cpu.fw firmware (158332 bytes)
cx18-1: loaded v4l-cx23418-dig.fw firmware (16382 bytes)
cx18-1: unregister DVB
cx18-1: Removed Hauppauge HVR-1600, card #1
cx18-1: Initializing card #1
cx18-1: Autodetected Hauppauge card
cx18-1 info: base addr: 0xf4000000
cx18-1 info: Enabling pci device
cx18-1 info: cx23418 (rev 0) at 00:0d.0, irq: 16, latency: 64, memory:
0xf4000000
cx18-1 info: attempting ioremap at 0xf4000000 len 0x04000000
cx18-1: cx23418 revision 01010000 (B)
cx18-1 info: GPIO initial dir: 0000cffe/0000ffff out: 00003001/00000000
cx18-1 info: activating i2c...
cx18-1 info: Active card count: 2.
cx18-1: Autodetected Hauppauge HVR-1600
cx18-1 info: NTSC tuner detected
cx18-1: VBI is not yet supported
cx18-1 info: Loaded module tuner
cx18-1 info: Loaded module cs5345
cx18-1 info: Allocate encoder MPEG stream: 63 x 32768 buffers (2016kB total)
cx18-1 info: Allocate TS stream: 32 x 32768 buffers (1024kB total)
cx18-1 info: Allocate encoder YUV stream: 16 x 131072 buffers (2048kB total)
cx18-1 info: Allocate encoder PCM audio stream: 63 x 16384 buffers (1008kB
total)
cx18-1: Disabled encoder IDX device
cx18-1: Registered device video1 for encoder MPEG (2 MB)
cx18-1: DVB Frontend registered
cx18-1: Registered device video33 for encoder YUV (2 MB)
cx18-1: Registered device video25 for encoder PCM audio (1 MB)
cx18-1: Registered device radio1 for encoder radio
cx18-1: Initialized card #1: Hauppauge HVR-1600
cx18-1 info: load segment a00000-a07fff
cx18-1 info: load segment ae0000-ae00ff
cx18-1 info: load segment b00000-b1a65f
cx18-1: loaded v4l-cx23418-apu.fw firmware V00120000 (141200 bytes)
cx18-1: loaded v4l-cx23418-cpu.fw firmware (158332 bytes)
cx18-1 info: load segment a00000-a07fff
cx18-1 info: load segment ae0000-ae00ff
cx18-1 info: load segment b00000-b1a65f
cx18-1 info: Changing input from 1 to 0
cx18-1 info: Mute
cx18-1 info: cmd 4008646f triggered fw load
cx18-1: loaded v4l-cx23418-dig.fw firmware (16382 bytes)
cx18-1 info: decoder set video input 7, audio input 8
cx18-1 info: decoder set video input 7, audio input 8
cx18-1 info: Unmute
cx18-1 info: Switching standard to 1000.
cx18-1 info: changing video std to fmt 1
cx18-1 info: PLL regs = int: 15, frac: 2876158, post: 4
cx18-1 info: PLL = 0.000011 MHz
cx18-1 info: PLL/8 = 0.000001 MHz
cx18-1 info: ADC Sampling freq = 0.000001 MHz
cx18-1 info: Chroma sub-carrier freq = 0.000000 MHz
cx18-1 info: hblank 122, hactive 720, vblank 26 , vactive 487, vblank656 26,
src_dec 543,burst 0x5b, luma_lpf 1, uv_lpf 1, comb 0x66, sc 0x087c1f
cx18-1 info: Mute
cx18-1 info: v4l2 ioctl: set frequency 1076
cx18-1 info: Unmute
cx18-1 info: Start encoder stream encoder MPEG
cx18-1 info: User stopped encoder MPEG
cx18-1 info: close stopping capture
cx18-1 info: Stop Capture
cx18-1 info: Switching standard to b000.
cx18-1 info: changing video std to fmt 1
cx18-1 info: PLL regs = int: 15, frac: 2876158, post: 4
cx18-1 info: PLL = 0.000011 MHz
cx18-1 info: PLL/8 = 0.000001 MHz
cx18-1 info: ADC Sampling freq = 0.000001 MHz
cx18-1 info: Chroma sub-carrier freq = 0.000000 MHz
cx18-1 info: hblank 122, hactive 720, vblank 26 , vactive 487, vblank656 26,
src_dec 543,burst 0x5b, luma_lpf 1, uv_lpf 1, comb 0x66, sc 0x087c1f
cx18-1 info: Start encoder stream encoder MPEG
cx18-1 info: Could not start capture for encoder MPEG (-5)
cx18-1 info: Start encoder stream encoder MPEG
cx18-1 info: Start encoder stream encoder MPEG
cx18-1 info: Could not start capture for encoder MPEG (-5)
cx18-1 info: Start encoder stream encoder MPEG
cx18-1 info: Start encoder stream encoder MPEG
cx18-1 info: Could not start capture for encoder MPEG (-5)
cx18-1 info: Start encoder stream encoder MPEG
cx18-1 info: Start encoder stream encoder MPEG
cx18-1 info: Could not start capture for encoder MPEG (-5)
cx18-1 info: Start encoder stream encoder MPEG
cx18-1 info: Start encoder stream encoder MPEG
cx18-1 info: Could not start capture for encoder MPEG (-5)
cx18-1 info: Start encoder stream encoder MPEG
cx18-1 info: Start encoder stream encoder MPEG
cx18-1 info: Could not start capture for encoder MPEG (-5)
cx18-1 info: Start encoder stream encoder MPEG
cx18-1 info: Start encoder stream encoder MPEG
cx18-1 info: Could not start capture for encoder MPEG (-5)
cx18-1 info: Start encoder stream encoder MPEG
cx18-1 info: Start encoder stream encoder MPEG
cx18-1 info: Could not start capture for encoder MPEG (-5)
cx18-1 info: Start encoder stream encoder MPEG
cx18-1 info: Start encoder stream encoder MPEG
cx18-1 info: Could not start capture for encoder MPEG (-5)
cx18-1 info: Start encoder stream encoder MPEG
cx18-1 info: Start encoder stream encoder MPEG
cx18-1 info: Could not start capture for encoder MPEG (-5)
cx18-1 info: Start encoder stream encoder MPEG
cx18-1 info: Start encoder stream encoder MPEG
cx18-1 info: Could not start capture for encoder MPEG (-5)
cx18-1 info: Start encoder stream encoder MPEG
cx18-1 info: Start encoder stream encoder MPEG
cx18-1 info: Could not start capture for encoder MPEG (-5)
cx18-1 info: Start encoder stream encoder MPEG
cx18-1 info: Start encoder stream encoder MPEG
cx18-1 info: Could not start capture for encoder MPEG (-5)
cx18-1 info: Start encoder stream encoder MPEG
cx18-1 info: Start encoder stream encoder MPEG
cx18-1 info: Could not start capture for encoder MPEG (-5)
cx18-1 info: Start encoder stream encoder MPEG
cx18-1 info: Start encoder stream encoder MPEG
cx18-1 info: Could not start capture for encoder MPEG (-5)
cx18-1 info: Start encoder stream encoder MPEG
cx18-1 info: Start encoder stream encoder MPEG
cx18-1 info: Could not start capture for encoder MPEG (-5)
cx18-1 info: Start encoder stream encoder MPEG
cx18-1 info: Start encoder stream encoder MPEG
cx18-1 info: Could not start capture for encoder MPEG (-5)
cx18-1 info: Start encoder stream encoder MPEG
cx18-1 info: Start encoder stream encoder MPEG
cx18-1 info: Could not start capture for encoder MPEG (-5)
cx18-1 info: Start encoder stream encoder MPEG
cx18-1 info: Start encoder stream encoder MPEG
cx18-1 info: Could not start capture for encoder MPEG (-5)
cx18-1 info: Start encoder stream encoder MPEG
cx18-1 info: Start encoder stream encoder MPEG
cx18-1 info: Could not start capture for encoder MPEG (-5)
cx18-1 info: Start encoder stream encoder MPEG
cx18-1 info: Start encoder stream encoder MPEG
cx18-1 info: Could not start capture for encoder MPEG (-5)
cx18-1 info: Start encoder stream encoder MPEG
cx18-1 info: Start encoder stream encoder MPEG
cx18-1 info: Could not start capture for encoder MPEG (-5)
cx18-1 info: Start encoder stream encoder MPEG
cx18-1 info: Start encoder stream encoder MPEG
cx18-1 info: Could not start capture for encoder MPEG (-5)
cx18-1 info: Start encoder stream encoder MPEG
cx18-1 info: Start encoder stream encoder MPEG
cx18-1 info: Could not start capture for encoder MPEG (-5)
cx18-1 info: Start encoder stream encoder MPEG
cx18-1 info: Start encoder stream encoder MPEG
cx18-1 info: Could not start capture for encoder MPEG (-5)
cx18-1 info: Start encoder stream encoder MPEG
cx18-1 info: Start encoder stream encoder MPEG
cx18-1 info: Could not start capture for encoder MPEG (-5)
cx18-1 info: Start encoder stream encoder MPEG
cx18-1 info: Start encoder stream encoder MPEG
cx18-1 info: Could not start capture for encoder MPEG (-5)
cx18-1 info: Start encoder stream encoder MPEG
cx18-1 info: Start encoder stream encoder MPEG
cx18-1 info: Could not start capture for encoder MPEG (-5)
cx18-1 info: Start encoder stream encoder MPEG
cx18-1 info: Start encoder stream encoder MPEG
cx18-1 info: Could not start capture for encoder MPEG (-5)
cx18-1 info: Start encoder stream encoder MPEG
cx18-1 info: Start encoder stream encoder MPEG
cx18-1 info: Could not start capture for encoder MPEG (-5)
cx18-1 info: Start encoder stream encoder MPEG
cx18-1 info: Start encoder stream encoder MPEG
cx18-1 info: Could not start capture for encoder MPEG (-5)
cx18-1 info: Start encoder stream encoder MPEG
cx18-1 info: Start encoder stream encoder MPEG
cx18-1 info: Could not start capture for encoder MPEG (-5)
cx18-1 info: Start encoder stream encoder MPEG
cx18-1 info: Start encoder stream encoder MPEG
cx18-1 info: Could not start capture for encoder MPEG (-5)
cx18-1 info: Start encoder stream encoder MPEG
cx18-1 info: Start encoder stream encoder MPEG
cx18-1 info: Could not start capture for encoder MPEG (-5)
cx18-1 info: Start encoder stream encoder MPEG
cx18-1 info: Start encoder stream encoder MPEG
cx18-1 info: Could not start capture for encoder MPEG (-5)
cx18-1 info: Start encoder stream encoder MPEG
cx18-1 info: Start encoder stream encoder MPEG
cx18-1 info: Could not start capture for encoder MPEG (-5)
cx18-1 info: Start encoder stream encoder MPEG
cx18-1 info: Start encoder stream encoder MPEG
cx18-1 info: Could not start capture for encoder MPEG (-5)
cx18-1 info: Start encoder stream encoder MPEG
cx18-1 info: Start encoder stream encoder MPEG
cx18-1 info: Could not start capture for encoder MPEG (-5)
cx18-1 info: Start encoder stream encoder MPEG
cx18-1 info: Start encoder stream encoder MPEG
cx18-1 info: Could not start capture for encoder MPEG (-5)
cx18-1 info: Start encoder stream encoder MPEG
cx18-1 info: Start encoder stream encoder MPEG
cx18-1 info: Could not start capture for encoder MPEG (-5)
cx18-1 info: Start encoder stream encoder MPEG
cx18-1 info: Start encoder stream encoder MPEG
cx18-1 info: Could not start capture for encoder MPEG (-5)
cx18-1 info: Start encoder stream encoder MPEG
cx18-1 info: Start encoder stream encoder MPEG
cx18-1 info: Could not start capture for encoder MPEG (-5)
cx18-1 info: Start encoder stream encoder MPEG


 enc239-009-060:~# v4l2-ctl -d /dev/video1 --log-status

Status Log:

   cx18-1: =================  START STATUS CARD #1  =================
   tveeprom 2-0050: Hauppauge model 74541, rev C6B6, serial# 3457060
   tveeprom 2-0050: MAC address is 00-0D-FE-34-C0-24
   tveeprom 2-0050: tuner model is Philips FM1236 MK5 (idx 116, type 43)
   tveeprom 2-0050: TV standards NTSC(M) (eeprom 0x08)
   tveeprom 2-0050: audio processor is CX23418 (idx 38)
   tveeprom 2-0050: decoder processor is CX23418 (idx 31)
   tveeprom 2-0050: has radio
   cx18-1: Video signal:              not present
   cx18-1: Detected format:           NTSC-M
   cx18-1: Specified standard:        NTSC-M
   cx18-1: Specified video input:     Composite 7
   cx18-1: Specified audioclock freq: 48000 Hz
   cx18-1: Detected audio mode:       mono
   cx18-1: Detected audio standard:   no detected audio standard
   cx18-1: Audio muted:               yes
   cx18-1: Audio microcontroller:     running
   cx18-1: Configured audio standard: automatic detection
   cx18-1: Configured audio system:   BTSC
   cx18-1: Specified audio input:     Tuner (In8)
   cx18-1: Preferred audio mode:      stereo
   cs5345 2-004c: Input:  1
   cs5345 2-004c: Volume: 0 dB
   tda9887 3-0043: Data bytes: b=0x14 c=0x30 e=0x44
   tuner 3-0061: Tuner mode:      analog TV
   tuner 3-0061: Frequency:       67.25 MHz
   tuner 3-0061: Standard:        0x0000b000
   cx18-1: Video Input: Tuner 1
   cx18-1: Audio Input: Tuner 1
   cx18-1: GPIO:  direction 0x00003001, value 0x00003001
   cx18-1: Tuner: TV
   cx18-1: Stream: MPEG-2 Program Stream
   cx18-1: VBI Format: No VBI
   cx18-1: Video:  720x480, 30 fps
   cx18-1: Video:  MPEG-2, 4x3, Variable Bitrate, 6000000, Peak 8000000
   cx18-1: Video:  GOP Size 15, 2 B-Frames, GOP Closure
   cx18-1: Audio:  48 kHz, MPEG-1/2 Layer II, 224 kbps, Stereo, No Emphasis,
No CRC
   cx18-1: Spatial Filter:  Manual, Luma 1D Horizontal, Chroma 1D
Horizontal, 0
   cx18-1: Temporal Filter: Manual, 8
   cx18-1: Median Filter:   Off, Luma [0, 255], Chroma [0, 255]
   cx18-1: Status flags: 0x00200001
   cx18-1: Stream encoder MPEG: status 0x0000, 0% of 2016 KiB (63 buffers)
in use
   cx18-1: Stream encoder YUV: status 0x0000, 0% of 2048 KiB (16 buffers) in
use
   cx18-1: Stream encoder PCM audio: status 0x0000, 0% of 1008 KiB (63
buffers) in use
   cx18-1: Read MPEG/VBI: 0/0 bytes
   cx18-1 info: retried_write[0] = 410049
   cx18-1 info: retried_write[1] = 83
   cx18-1 info: retried_write[2] = 0
   cx18-1 info: retried_write[3] = 0
   cx18-1 info: retried_write[4] = 0
   cx18-1 info: retried_write[5] = 0
   cx18-1 info: retried_write[6] = 0
   cx18-1 info: retried_write[7] = 0
   cx18-1 info: retried_write[8] = 0
   cx18-1 info: retried_write[9] = 0
   cx18-1 info: retried_write[10] = 63
   cx18-1 info: retried_read[0] = 797590
   cx18-1 info: retried_read[1] = 0
   cx18-1 info: retried_read[2] = 0
   cx18-1 info: retried_read[3] = 0
   cx18-1 info: retried_read[4] = 0
   cx18-1 info: retried_read[5] = 0
   cx18-1 info: retried_read[6] = 0
   cx18-1 info: retried_read[7] = 0
   cx18-1 info: retried_read[8] = 0
   cx18-1 info: retried_read[9] = 0
   cx18-1 info: retried_read[10] = 438
   cx18-1: ==================  END STATUS CARD #1  ==================
   cx18-1 info: Start encoder stream encoder MPEG


>
>
> >         The host bridge latency timer of 8 seems odd - it's a little
> >         low.
> >
> > Is this something I can set myself or is that determined by the BIOS?
>
> You can change it yourself.  Values should be multiples of 8.
>
> $ man setpci
>

Will look at this change tomorrow morning.

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

Reply via email to