Dear Hans,
> You need to have 'advanced debugging' for multimedia devices enabled > in the kernel config. And you need to run v4l2-dbg as root. I have new kernel 2.6.22.1 and i'v installed v4l2-dbg from v4l-dvb-experimental. It's show following information: v4l2-dbg --scan-chip-idents host 0x0: cx23416 revision 0x00000000 i2c 0x44: cx25843 revision 0x00008433 command "v4l2-dbg --list-registers=type=i2cdrv,chip=cx25840" show lot of following error messages: ioctl: VIDIOC_DBG_G_REGISTER failed for 0x20000ee ioctl: VIDIOC_DBG_G_REGISTER failed for 0x20000ef 020000e0: ioctl: VIDIOC_DBG_G_REGISTER failed for 0x20000f0 ioctl: VIDIOC_DBG_G_REGISTER failed for 0x20000f1 ioctl: VIDIOC_DBG_G_REGISTER failed for 0x20000f2 and dmesg show following errors: Jul 26 00:00:18 streamer2 ivtv0: i2c ID 0x00000000 (gpio) not found for command 0xc0185650! Jul 26 00:00:18 streamer2 ivtv0: i2c ID 0x00000000 (gpio) not found for command 0xc0185650! Jul 26 00:00:18 streamer2 ivtv0: i2c ID 0x00000000 (gpio) not found for command 0xc0185650! Jul 26 00:00:18 streamer2 ivtv0: i2c ID 0x00000000 (gpio) not found for command 0xc0185650! Jul 26 00:00:18 streamer2 ivtv0: i2c ID 0x00000000 (gpio) not found for command 0xc0185650! may be another information required from v4l2-dbg ? > But it is much more likely that the card settings are wrong. I assume > that you use the Gotview PCI DVD2 Deluxe cardtype. Is that still the > case? The fact that you don't get any audio can be caused by one of > two things: Yes, I'm manually setting cardtype to "GotView PCI DVD2 Deluxe". > 1) you need to set some GPIO bit for line-in audio. You can experiment > with ivtvctl -i. Try ivtvctl -i dir=0xffff,val=0 and ivtvctl -i > dir=0xffff,val=0xffff. If either of these makes a difference, then it > is likely to be a GPIO setting. By experimenting try to narrow it down > to the exact bit. This commands don't work for me. I'v got following error messages: ivtvctl -i dir=0xffff,val=0 ioctl VIDIOC_INT_S_REGISTER failed: Invalid argument ioctl VIDIOC_INT_S_REGISTER failed: Invalid argument and ivtvctl -i dir=0xffff,val=0xffff ioctl VIDIOC_INT_S_REGISTER failed: Invalid argument ioctl VIDIOC_INT_S_REGISTER failed: Invalid argument I have CONFIG_VIDEO_ADV_DEBUG=y in my kernel .config. this is modprobe ivtv debug=511 output: Jul 26 00:12:59 streamer2 ivtv: ==================== START INIT IVTV ==================== Jul 26 00:12:59 streamer2 ivtv: version 1.0.0 (2.6.22.1 SMP mod_unload PENTIUM4 ) loading Jul 26 00:12:59 streamer2 ivtv0: User specified GotView PCI DVD2 Deluxe card (detected cx23416 based chip) Jul 26 00:12:59 streamer2 ivtv0 info: base addr: 0xf8000000 Jul 26 00:12:59 streamer2 ivtv0 info: Enabling pci device Jul 26 00:12:59 streamer2 ACPI: PCI Interrupt 0000:02:00.0[A] -> GSI 20 (level, low) -> IRQ 20 Jul 26 00:12:59 streamer2 ivtv0 info: Attempting to enable Bus Mastering Jul 26 00:12:59 streamer2 ivtv0 info: Bus Mastering Enabled. Jul 26 00:12:59 streamer2 ivtv0 info: 22 (rev 1) at 02:00.0, irq: 20, latency: 64, memory: 0xf8000000 Jul 26 00:12:59 streamer2 ivtv0 info: attempting ioremap at 0xf8000000 len 0x00800000 Jul 26 00:12:59 streamer2 ivtv0 info: attempting ioremap at 0xfa000000 len 0x00010000 Jul 26 00:12:59 streamer2 ivtv0 info: Preparing for firmware halt. Jul 26 00:12:59 streamer2 ivtv0 info: Stopping VDM Jul 26 00:12:59 streamer2 ivtv0 info: Stopping AO Jul 26 00:12:59 streamer2 ivtv0 info: pinging (?) APU Jul 26 00:12:59 streamer2 ivtv0 info: Stopping VPU Jul 26 00:12:59 streamer2 ivtv0 info: Resetting Hw Blocks Jul 26 00:12:59 streamer2 ivtv0 info: Stopping SPU Jul 26 00:12:59 streamer2 ivtv0 info: init Encoder SDRAM pre-charge Jul 26 00:12:59 streamer2 ivtv0 info: init Encoder SDRAM refresh to 1us Jul 26 00:12:59 streamer2 ivtv0 info: Sleeping for 600ms (600 recommended) Jul 26 00:13:00 streamer2 ivtv0 info: Loading encoder image Jul 26 00:13:00 streamer2 ivtv0: loaded v4l-cx2341x-enc.fw firmware (376836 bytes) Jul 26 00:13:00 streamer2 ivtv0 api: API Call: CX2341X_ENC_PING_FW Jul 26 00:13:00 streamer2 ivtv0 info: Getting firmware version.. Jul 26 00:13:00 streamer2 ivtv0 api: API Call: CX2341X_ENC_GET_VERSION Jul 26 00:13:00 streamer2 ivtv0: Encoder revision: 0x02060039 Jul 26 00:13:00 streamer2 ivtv0 info: GPIO initial dir: 0000c801 out: 00000000 Jul 26 00:13:00 streamer2 ivtv0 info: activating i2c... Jul 26 00:13:00 streamer2 ivtv0 i2c: i2c init Jul 26 00:13:00 streamer2 ivtv0 i2c: setting scl and sda to 1 Jul 26 00:13:00 streamer2 tuner 1-0061: chip found @ 0xc2 (ivtv i2c driver #0) Jul 26 00:13:00 streamer2 ivtv0 i2c: i2c client attach Jul 26 00:13:00 streamer2 ivtv0 info: Active card count: 1. Jul 26 00:13:00 streamer2 ivtv0 info: Loaded module tuner Jul 26 00:13:00 streamer2 cx25840 1-0044: cx25843-23 found @ 0x88 (ivtv i2c driver #0) Jul 26 00:13:00 streamer2 ivtv0 i2c: i2c client attach Jul 26 00:13:04 streamer2 cx25840 1-0044: loaded v4l-cx25840.fw firmware (16382 bytes) Jul 26 00:13:04 streamer2 ivtv0 info: Loaded module cx25840 Jul 26 00:13:04 streamer2 ivtv0 i2c: call_i2c_client addr=44 Jul 26 00:13:04 streamer2 tuner 1-0061: type set to 38 (Philips PAL/SECAM multi (FM1216ME MK3)) Jul 26 00:13:04 streamer2 ivtv0 info: Changing input from 1 to 0 Jul 26 00:13:04 streamer2 ivtv0 ioctl: VIDIOC_S_CTRL(00980909, 1) Jul 26 00:13:04 streamer2 ivtv0 i2c: call_i2c_client addr=44 Jul 26 00:13:04 streamer2 ivtv0 info: Mute Jul 26 00:13:04 streamer2 ivtv0 i2c: call_i2c_client addr=44 Jul 26 00:13:04 streamer2 ivtv0 i2c: call_i2c_client addr=44 Jul 26 00:13:04 streamer2 ivtv0 api: API Call: CX2341X_ENC_INITIALIZE_INPUT Jul 26 00:13:04 streamer2 ivtv0 ioctl: VIDIOC_S_CTRL(00980909, 0) Jul 26 00:13:04 streamer2 ivtv0 i2c: call_i2c_client addr=44 Jul 26 00:13:04 streamer2 ivtv0 info: Unmute Jul 26 00:13:04 streamer2 ivtv0 ioctl: VIDIOC_S_CTRL(00980909, 1) Jul 26 00:13:04 streamer2 ivtv0 i2c: call_i2c_client addr=44 Jul 26 00:13:04 streamer2 ivtv0 info: Mute Jul 26 00:13:04 streamer2 ivtv0 info: v4l2 ioctl: set frequency 6400 Jul 26 00:13:04 streamer2 ivtv0 api: API Call: CX2341X_ENC_INITIALIZE_INPUT Jul 26 00:13:04 streamer2 ivtv0 ioctl: VIDIOC_S_CTRL(00980909, 0) Jul 26 00:13:04 streamer2 ivtv0 i2c: call_i2c_client addr=44 Jul 26 00:13:04 streamer2 ivtv0 info: Unmute Jul 26 00:13:04 streamer2 ivtv0: Registered device video0 for encoder MPEG (4 MB) Jul 26 00:13:04 streamer2 ivtv0 info: Allocate DMA encoder MPEG stream: 128 x 32768 buffers (4096kB total) Jul 26 00:13:04 streamer2 ivtv0: Registered device video32 for encoder YUV (2 MB) Jul 26 00:13:04 streamer2 ivtv0 info: Allocate DMA encoder YUV stream: 161 x 12960 buffers (2037kB total) Jul 26 00:13:04 streamer2 ivtv0: Registered device vbi0 for encoder VBI (1 MB) Jul 26 00:13:04 streamer2 ivtv0 info: Allocate DMA encoder VBI stream: 40 x 26208 buffers (1023kB total) Jul 26 00:13:04 streamer2 ivtv0: Registered device video24 for encoder PCM audio (1 MB) Jul 26 00:13:04 streamer2 ivtv0 info: Allocate DMA encoder PCM audio stream: 227 x 4608 buffers (1021kB total) Jul 26 00:13:04 streamer2 ivtv0: Registered device radio0 for encoder radio Jul 26 00:13:04 streamer2 ivtv0 info: Switching standard to ff06ff. Jul 26 00:13:04 streamer2 ivtv0 irq: Masking interrupts Jul 26 00:13:04 streamer2 ivtv0: Initialized GotView PCI DVD2 Deluxe, card #0 Jul 26 00:13:04 streamer2 ivtv: ==================== END INIT IVTV ==================== also i see: ivtv-svn # ./utils/ivtvctl -I GPIO in: 0xc439 GPIO dir: 0x0800 GPIO out: 0x0000 with debug=511 following messages logged into dmesg(syslog) when I'm doing read from /dev/video0: Jul 26 00:30:58 streamer2 ivtv0: ================== END STATUS CARD #0 ================== Jul 26 00:30:58 streamer2 ivtv0 ioctl: read 88064 bytes from encoder MPEG Jul 26 00:30:58 streamer2 ivtv0 info: Start encoder stream encoder MPEG Jul 26 00:30:58 streamer2 ivtv0 api: API Call: CX2341X_ENC_MUTE_VIDEO Jul 26 00:30:58 streamer2 ivtv0 api: API Call: CX2341X_ENC_SET_DMA_BLOCK_SIZE Jul 26 00:30:58 streamer2 ivtv0 api: API Call: CX2341X_ENC_SET_VERT_CROP_LINE Jul 26 00:30:58 streamer2 ivtv0 api: API Call: CX2341X_ENC_MISC Jul 26 00:30:58 streamer2 ivtv0 api: API Call: CX2341X_ENC_MISC Jul 26 00:30:58 streamer2 ivtv0 api: API Call: CX2341X_ENC_MISC Jul 26 00:30:58 streamer2 ivtv0 api: API Call: CX2341X_ENC_MISC Jul 26 00:30:58 streamer2 ivtv0 api: API Call: CX2341X_ENC_SET_PLACEHOLDER Jul 26 00:30:58 streamer2 ivtv0 api: API Call: CX2341X_ENC_SET_NUM_VSYNC_LINES Jul 26 00:30:58 streamer2 ivtv0 api: API Call: CX2341X_ENC_SET_VBI_LINE Jul 26 00:30:58 streamer2 ivtv0 i2c: call_i2c_client addr=44 Jul 26 00:30:58 streamer2 ivtv0 info: Setup VBI API header 0x0000bd03 pkts 1 buffs 4 ln 36 sz 1456 Jul 26 00:30:58 streamer2 ivtv0 api: API Call: CX2341X_ENC_SET_VBI_CONFIG Jul 26 00:30:58 streamer2 ivtv0 info: Setup VBI start 0x002fea04 frames 4 fpi 1 lines 0x00000140 Jul 26 00:30:58 streamer2 ivtv0 api: API Call: CX2341X_ENC_SET_VBI_LINE Jul 26 00:30:58 streamer2 ivtv0 api: API Call: CX2341X_ENC_SET_VBI_LINE Jul 26 00:30:58 streamer2 ivtv0 api: API Call: CX2341X_ENC_SET_VBI_LINE Jul 26 00:30:58 streamer2 ivtv0 api: API Call: CX2341X_ENC_SET_VBI_LINE ... skip.... Jul 26 00:30:59 streamer2 ivtv0 api: API Call: CX2341X_ENC_SET_VBI_LINE Jul 26 00:30:59 streamer2 ivtv0 api: API Call: CX2341X_ENC_SET_VBI_LINE Jul 26 00:30:59 streamer2 ivtv0 api: API Call: CX2341X_ENC_SET_VBI_LINE Jul 26 00:30:59 streamer2 ivtv0 api: API Call: CX2341X_ENC_SET_PGM_INDEX_INFO Jul 26 00:30:59 streamer2 ivtv0 info: PGM Index at 0x00180150 with 400 elements Jul 26 00:30:59 streamer2 ivtv0 api: API Call: CX2341X_ENC_SET_OUTPUT_PORT Jul 26 00:30:59 streamer2 ivtv0 api: API Call: CX2341X_ENC_SET_FRAME_RATE Jul 26 00:30:59 streamer2 ivtv0 api: API Call: CX2341X_ENC_SET_FRAME_SIZE Jul 26 00:30:59 streamer2 ivtv0 api: API Call: CX2341X_ENC_SET_STREAM_TYPE Jul 26 00:30:59 streamer2 ivtv0 api: API Call: CX2341X_ENC_SET_ASPECT_RATIO Jul 26 00:30:59 streamer2 ivtv0 api: API Call: CX2341X_ENC_SET_GOP_PROPERTIES Jul 26 00:30:59 streamer2 ivtv0 api: API Call: CX2341X_ENC_SET_GOP_CLOSURE Jul 26 00:30:59 streamer2 ivtv0 api: API Call: CX2341X_ENC_SET_AUDIO_PROPERTIES Jul 26 00:30:59 streamer2 ivtv0 api: API Call: CX2341X_ENC_MUTE_AUDIO Jul 26 00:30:59 streamer2 ivtv0 api: API Call: CX2341X_ENC_SET_BIT_RATE Jul 26 00:30:59 streamer2 ivtv0 api: API Call: CX2341X_ENC_SET_DNR_FILTER_MODE Jul 26 00:30:59 streamer2 ivtv0 api: API Call: CX2341X_ENC_SET_CORING_LEVELS Jul 26 00:30:59 streamer2 ivtv0 api: API Call: CX2341X_ENC_SET_SPATIAL_FILTER_TYPE Jul 26 00:30:59 streamer2 ivtv0 api: API Call: CX2341X_ENC_SET_DNR_FILTER_PROPS Jul 26 00:30:59 streamer2 ivtv0 api: API Call: CX2341X_ENC_SET_FRAME_DROP_RATE Jul 26 00:30:59 streamer2 ivtv0 api: API Call: CX2341X_ENC_MUTE_VIDEO Jul 26 00:30:59 streamer2 ivtv0 api: API Call: CX2341X_ENC_MISC Jul 26 00:30:59 streamer2 ivtv0 api: API Call: CX2341X_ENC_INITIALIZE_INPUT Jul 26 00:30:59 streamer2 ivtv0 api: API Call: CX2341X_ENC_START_CAPTURE Jul 26 00:30:59 streamer2 ivtv0 irq: ENC START CAP 0: 000dd700 0000a7c0 Jul 26 00:30:59 streamer2 ivtv0 dma: DMA encoder MPEG: 0x0000a7c0 bytes at 0x000dd700 Jul 26 00:30:59 streamer2 ivtv0 dma: start DMA for encoder MPEG Jul 26 00:30:59 streamer2 ivtv0 irq: ENC DMA COMPLETE 3 0 Jul 26 00:30:59 streamer2 ivtv0 dma: DMA encoder MPEG completed (dd700) Jul 26 00:30:59 streamer2 ivtv0 irq: ENC START CAP 0: 000e7ec0 00002000 Jul 26 00:30:59 streamer2 ivtv0 dma: DMA encoder MPEG: 0x00002000 bytes at 0x000e7ec0 Jul 26 00:30:59 streamer2 ivtv0 dma: start DMA for encoder MPEG Jul 26 00:30:59 streamer2 ivtv0 irq: ENC DMA COMPLETE 3 0 Jul 26 00:30:59 streamer2 ivtv0 dma: DMA encoder MPEG completed (e7ec0) Jul 26 00:30:59 streamer2 ivtv0 irq: ENC START CAP 0: 000e9ec0 00002000 Jul 26 00:30:59 streamer2 ivtv0 dma: DMA encoder MPEG: 0x00002000 bytes at 0x000e9ec0 Jul 26 00:30:59 streamer2 ivtv0 dma: start DMA for encoder MPEG Jul 26 00:30:59 streamer2 ivtv0 irq: ENC DMA COMPLETE 3 0 > 2) the card has a mixer chip that also needs to be set. Looking at the > picture > (http://www.ixbt.com/monitor/images/aver-m116-plus/aver-m116-plus-front.jpg) > I see a Philips chip and a 'WM' chip. I can't read the exact type, but I > suspect it is one of these two chips (probably the WM: that's used by > Hauppauge as well). Can you report the exact chips that are on this card? > Then I can check if one of these is indeed a mixer chip. There is two additional chips on the board: 1. philips 74hc4052d Datasheet - http://www.alldatasheet.co.kr/datasheet-pdf/pdf_kor/PHILIPS/74HC4052D.html 2. XWM8739S but I can't find datasheet for this chip ;( Thanks ! -- Abylai Ospan <[EMAIL PROTECTED]> NetUP Inc.
smime.p7s
Description: S/MIME cryptographic signature
_______________________________________________ ivtv-devel mailing list [email protected] http://ivtvdriver.org/mailman/listinfo/ivtv-devel
