Так режим debug есть у модуля, я его включал, там в принципе понятно что происходит, но разбираться долго. А деваться некуда. Там чото с форматами мне кажется.<br><br>Вот пример при попытке просмотра mplayer'ом(uvcview подвешивает драйвер)<br>
<br>SN9C20x USB 2.0 Webcam Driver: VIDIOC_S_CTRL id=0x980901, value=127<br>sn9c20x: SET CTRL id=9963777 value=127<br>sn9c20x: VIDIOC_QUERYCTRL id = 9963778<br>sn9c20x: VIDIOC_QUERYCTRL found<br>SN9C20x USB 2.0 Webcam Driver: VIDIOC_QUERYCTRL id=0x980902, type=1, name=Saturation, min/max=0/255, step=1, default=127, flags=0x00000000<br>
SN9C20x USB 2.0 Webcam Driver: VIDIOC_S_CTRL id=0x980902, value=127<br>sn9c20x: SET CTRL id=9963778 value=127<br>sn9c20x: VIDIOC_QUERYCTRL id = 9963792<br>sn9c20x: VIDIOC_QUERYCTRL found<br>SN9C20x USB 2.0 Webcam Driver: VIDIOC_QUERYCTRL id=0x980910, type=1, name=Gamma, min/max=0/255, step=1, default=51, flags=0x00000000<br>
SN9C20x USB 2.0 Webcam Driver: VIDIOC_S_CTRL id=0x980910, value=51<br>sn9c20x: SET CTRL id=9963792 value=51<br>SN9C20x USB 2.0 Webcam Driver: VIDIOC_G_FMT type=vid-cap<br>sn9c20x: GET FMT 1<br>SN9C20x USB 2.0 Webcam Driver: width=640, height=480, format=S920, field=any, bytesperline=960 sizeimage=460800, colorspace=8<br>
SN9C20x USB 2.0 Webcam Driver: VIDIOC_S_FMT type=vid-cap<br>SN9C20x USB 2.0 Webcam Driver: width=640, height=480, format=YU12, field=any, bytesperline=960 sizeimage=460800, colorspace=8<br>sn9c20x: SET FMT 1 : 842093913<br>
sn9c20x: TRY FMT 1<br>SN9C20x USB 2.0 Webcam Driver: VIDIOC_S_FMT error -22<br>SN9C20x USB 2.0 Webcam Driver: VIDIOC_G_FBUF error -22<br>sn9c20x: Isoc cleanup<br>sn9c20x: Freeing 0 v4l2 buffers<br>sn9c20x: v4l_sn9c20x_ioctl 00<br>
sn9c20x: VIDIOC_QUERYCAP<br>SN9C20x USB 2.0 Webcam Driver: VIDIOC_QUERYCAP driver=sn9c20x, card=SN9C20x USB 2.0 Webcam Driver, bus=usb-0000:02:01.0-1, version=0x00200901, capabilities=0x05000001<br>sn9c20x: v4l_sn9c20x_ioctl 04<br>
SN9C20x USB 2.0 Webcam Driver: VIDIOC_G_FMT type=vid-cap<br>sn9c20x: GET FMT 1<br>SN9C20x USB 2.0 Webcam Driver: width=640, height=480, format=S920, field=any, bytesperline=960 sizeimage=460800, colorspace=8<br>sn9c20x: v4l_sn9c20x_ioctl 17<br>
SN9C20x USB 2.0 Webcam Driver: VIDIOC_G_STD std=0x00000000<br>sn9c20x: v4l_sn9c20x_ioctl 19<br>sn9c20x: v4l_sn9c20x_ioctl 19<br>sn9c20x: v4l_sn9c20x_ioctl 1A<br>sn9c20x: VIDIOC_ENUMINPUT 0<br>SN9C20x USB 2.0 Webcam Driver: VIDIOC_ENUMINPUT index=0, name=Webcam, type=2, audioset=0, tuner=0, std=00000000, status=0<br>
sn9c20x: v4l_sn9c20x_ioctl 1A<br>sn9c20x: VIDIOC_ENUMINPUT 1<br>SN9C20x USB 2.0 Webcam Driver: VIDIOC_ENUMINPUT error -22<br>sn9c20x: v4l_sn9c20x_ioctl 26<br>sn9c20x: GET INPUT -1052739776<br>SN9C20x USB 2.0 Webcam Driver: VIDIOC_G_INPUT error -22<br>
sn9c20x: v4l_sn9c20x_ioctl 02<br>sn9c20x: VIDIOC_ENUM_FMT 0<br>SN9C20x USB 2.0 Webcam Driver: VIDIOC_ENUM_FMT index=0, type=1, flags=0, pixelformat=S920, description='SN9C20X I420 (YUV 4:2:0)'<br>sn9c20x: v4l_sn9c20x_ioctl 02<br>
sn9c20x: VIDIOC_ENUM_FMT 1<br>SN9C20x USB 2.0 Webcam Driver: VIDIOC_ENUM_FMT index=1, type=1, flags=0, pixelformat=BA81, description='Bayer 8bit (BGGR)'<br>sn9c20x: v4l_sn9c20x_ioctl 02<br>sn9c20x: VIDIOC_ENUM_FMT 2<br>
SN9C20x USB 2.0 Webcam Driver: VIDIOC_ENUM_FMT index=2, type=1, flags=0, pixelformat=YUYV, description='YUYV (YUV 4:2:0)'<br>sn9c20x: v4l_sn9c20x_ioctl 02<br>sn9c20x: VIDIOC_ENUM_FMT 3<br>SN9C20x USB 2.0 Webcam Driver: VIDIOC_ENUM_FMT error -22<br>
sn9c20x: v4l_sn9c20x_ioctl 04<br>SN9C20x USB 2.0 Webcam Driver: VIDIOC_G_FMT type=vid-cap<br>sn9c20x: GET FMT 1<br>SN9C20x USB 2.0 Webcam Driver: width=640, height=480, format=S920, field=any, bytesperline=960 sizeimage=460800, colorspace=8<br>
sn9c20x: v4l_sn9c20x_ioctl 05<br>SN9C20x USB 2.0 Webcam Driver: VIDIOC_S_FMT type=vid-cap<br>SN9C20x USB 2.0 Webcam Driver: width=640, height=480, format=S920, field=any, bytesperline=960 sizeimage=460800, colorspace=8<br>
sn9c20x: SET FMT 1 : 808597843<br>sn9c20x: TRY FMT 1<br>SN9C20x USB 2.0 Webcam Driver: VIDIOC_S_FMT error -22<br>sn9c20x: v4l_sn9c20x_ioctl 1C<br>SN9C20x USB 2.0 Webcam Driver: VIDIOC_S_CTRL id=0x980909, value=1<br>sn9c20x: SET CTRL id=9963785 value=1<br>
SN9C20x USB 2.0 Webcam Driver: VIDIOC_S_CTRL error -22<br><br><div class="gmail_quote">8 апреля 2009 г. 15:51 пользователь Michail Yakushin <span dir="ltr"><<a href="mailto:silicium@altlinux.ru">silicium@altlinux.ru</a>></span> написал:<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"><div class="im">On 08.04.2009 15:28, Stanislav_Egorov wrote:<br>
> В исходниках драйвера подключен <media/v4l2-common.h> Но в зависимостях<br>
> в modinfo нету v4l2-comon, как вроде бы должно быть<br>
</div>Видимо не использует. Так бывает.<br>
Кстати там ещё можно сделать mount -t debugfs /sys/kernel/debug Может<br>
через него удастся что-то выяснить?<br>
<div><div></div><div class="h5"><br>
_______________________________________________<br>
Hardware mailing list<br>
<a href="mailto:Hardware@lists.altlinux.org">Hardware@lists.altlinux.org</a><br>
<a href="https://lists.altlinux.org/mailman/listinfo/hardware" target="_blank">https://lists.altlinux.org/mailman/listinfo/hardware</a></div></div></blockquote></div><br><br clear="all"><br>-- <br>Stanislav Egorov<br>Cisco Systems, Inc.<br>
Cell: +79276230169<br>ICQ: 270805968<br>