В Срд, 25/07/2007 в 23:07 +0200, Hans Verkuil пишет: > On Wednesday 25 July 2007 22:33:37 you wrote: > > 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. > > > > > 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 > > Urgh. Another option parsing bug. As you can tell, it's been awhile > since I needed to use these options :-( > > Fix is attached. I've also committed the changes to ivtv trunk in > subversion.
I'v updated svn trunk for revision r3967 (2007-07-26 01:05:17 +0400, "Fix option parse errors in v4l2-dbg and ivtvctl"). Now this commands woks: utils # ./ivtvctl -i dir=0xffff,val=0xffff ioctl VIDIOC_DBG_S_REGISTER ok GPIO dir set to 0xffff ioctl VIDIOC_DBG_S_REGISTER ok GPIO out set to 0xffff dmesg output after this command: Jul 26 01:13:40 streamer2 VIDIOC_DBG_S_REGISTER called in ivtv_v4l2_do_ioctl Jul 26 01:13:40 streamer2 ivtv0 1ioctl: v4l2 ioctl VIDIOC_DBG_S_REGISTER, dir=-w (0x4018564f) Jul 26 01:13:40 streamer2 VIDIOC_DBG_S_REGISTER called in ivtv_debug_ioctls Jul 26 01:13:40 streamer2 VIDIOC_DBG_S_REGISTER called in ivtv_v4l2_do_ioctl Jul 26 01:13:40 streamer2 ivtv0 1ioctl: v4l2 ioctl VIDIOC_DBG_S_REGISTER, dir=-w (0x4018564f) Jul 26 01:13:40 streamer2 VIDIOC_DBG_S_REGISTER called in ivtv_debug_ioctls Jul 26 01:13:40 streamer2 ivtv0 ioctl: close() of encoder MPEG and utils # ./ivtvctl -i dir=0xffff,val=0 ioctl VIDIOC_DBG_S_REGISTER ok GPIO dir set to 0xffff ioctl VIDIOC_DBG_S_REGISTER ok GPIO out set to 0x0000 dmesg output after this command: Jul 26 01:13:52 streamer2 ivtv0 ioctl: close() of encoder MPEG Jul 26 01:13:56 streamer2 VIDIOC_DBG_S_REGISTER called in ivtv_v4l2_do_ioctl Jul 26 01:13:56 streamer2 ivtv0 1ioctl: v4l2 ioctl VIDIOC_DBG_S_REGISTER, dir=-w (0x4018564f) Jul 26 01:13:56 streamer2 VIDIOC_DBG_S_REGISTER called in ivtv_debug_ioctls Jul 26 01:13:56 streamer2 VIDIOC_DBG_S_REGISTER called in ivtv_v4l2_do_ioctl Jul 26 01:13:56 streamer2 ivtv0 1ioctl: v4l2 ioctl VIDIOC_DBG_S_REGISTER, dir=-w (0x4018564f) Jul 26 01:13:56 streamer2 VIDIOC_DBG_S_REGISTER called in ivtv_debug_ioctls Jul 26 01:13:56 streamer2 ivtv0 ioctl: close() of encoder MPEG -- 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
