Share

Syntek Semicon DC-1125 Driver

The forum address has changed, you have been automatically redirected. Please update any bookmarks to use the new URL.

Subscribe

Revision 36 - Some corrections

  1. 2007-05-06 14:06:19 UTC
    NEWS
    ====

    Today, I publish the revision 36 with some corrections :

    - Bug correction in VIDIOC_QUERYCTRL ioctl. (Thanks to Jaime Velasco)
    - Add writable settings from "sysfs"
    - Correct the resolution 1024x758 to 1024x768


    TODO
    ====

    + Debug STK-1135 webcam
    I have always a kernel crash after several load/unload module !!!

    + Add 800x600 and 1024x768 resolutions
    Not very important...

    + Add YUV420P and UYVY colors palette
    Increase the performance. Less CPU usage.

    + Work about the sensor OmniVision... it seems that 0x174F:0xa311 and 0x05E1:0x0501 webcams use the sensor OmniVision 9652.
    Add features by hardware (and no by soft !)... by sample image flip or quality correction...
    Reverse the STK-1135 USB logs to identify a sensor ???


    USAGE
    =====

    To use the driver :
    $ make clean && make
    $ modeprobe videodev
    $ insmod stk11xx.ko [hflip=0/1] [vflip=0/1] [fps=10-30]

    To use Camorama :
    $ camorama -R
    $ camorama
    $ camorama --width=320 --height=240
    With camorama, you have to install the filter correction.

    To use XawTV :
    $ xawtv
    $ xawtv -nodga

    To use ekiga :
    $ ekiga
    Then, in preferences menu, enable V4L or V4Lv2

    To use mplayer :
    $ mplayer tv:// -tv "driver=v4l:device=/dev/video0:outfmt=bgr24"

    To change settings via SYSFS :
    $ cd /sys/class/video4linux/video0
    $ cat vflip
    $ echo 0 > vflip
    $ cat brightness
    $ echo 3000 > brightness


    DEBUG
    =====

    In the stk11xx.h, you can enable : CONFIG_STK11XX_DEBUG and CONFIG_STK11XX_DEBUG_STREAM
    (I don't need CONFIG_STK11XX_DEBUG_STREAM)

    To give me your the USB traces :
    1°/ Compile the USB_MON module (Device Drivers / USB ; Support / USB Monitor) or compile it into the kernel
    2°/ Enable debugfs in the kernel, rebuild the kernel and reboot using the new kernel
    3°/ mount -t debugfs none_debugs /sys/kernel/debug
    4°/ modprobe usbmon
    5°/ Find the Bus to which the USB device connects (cat /proc/bus/usb/devices and look for the 'T:' line which
    gives the bus number
    6°/ cat /sys/kernel/debug/usbmon/<Bus Number>t > /tmp/Bus<Bus Number>.txt (NOTE : It's <Bus Number>t, not just <Bus Number>)
    7°/ Use the USB device
    8°/ Kill the 'cat' command
    9°/ Examine the file /tmp/Bus<Bus Number>.txt

    I need USB logs get from usbmon module !!!
    Especially, if you want me to debug your STK1135 webcam...


    CONTACT
    =======

    On this forum or with this mail :
    progweb AROBA free.fr


    Nicklas
  2. 2007-05-08 11:12:43 UTC
    Does not crash anymore with ekiga :) Great job !
    However, the big black borders are still there.
  3. 2007-05-08 17:08:18 UTC
    The big black border is normal !

    XawTV asks to driver a video with the resolution 500x400 (by sample).

    But the driver can only make : 320x240 or 640x480.
    So the driver chooses 320x240 and center the video in the view 500x400.

    Resize your XawTV windows to remove the black border (or change resolution)

    Nicklas
  4. nobody

    2007-05-09 19:03:03 UTC
    Unfortunately the module's parameters are out of work :(

    modprobe videodev
    insmod /usr/local/src/kernel_2.6.21/Syntek_Semicon_DC-1125_Driver/syntekdriver/trunk/driver/stk11xx.ko hflip=1 vflip=0

    cat /sys/class/video4linux/video0/vflip
    1
    and picture is upsidedown

    Now echo 0> /sys/class/video4linux/video0/vflip and picture is good oriented.

    dmesg:
    stk11xx: usb_stk11xx_init: Syntek USB2.0 webcam driver startup
    stk11xx: Syntek USB2.0 - STK-1125 based webcam found.
    stk11xx: Release: 0001
    stk11xx: Number of interfaces : 3
    stk11xx: Initialize USB2.0 Syntek Camera
    stk11xx: Syntek USB2.0 Camera is ready
    stk11xx: Syntek USB2.0 Camera is now controlling video device /dev/video0
    usbcore: registered new interface driver usb_stk11xx_driver
    stk11xx: v0.0.1 : Syntek USB Video Camera
    stk11xx: Check device return error (0x0201 = 0C) !
    stk11xx: Load microcode fail !
    stk11xx: usb_stk11xx_exit: Syntek USB2.0 webcam driver shutdown
    usbcore: deregistering interface driver usb_stk11xx_driver
    stk11xx: Syntek USB2.0 Camera disconnected
    stk11xx: Syntek USB2.0 Camera release resources video device /dev/video0
    stk11xx: usb_stk11xx_init: Syntek USB2.0 webcam driver startup
    stk11xx: Syntek USB2.0 - STK-1125 based webcam found.
    stk11xx: Release: 0001
    stk11xx: Number of interfaces : 3
    stk11xx: Initialize USB2.0 Syntek Camera
    stk11xx: Syntek USB2.0 Camera is ready
    stk11xx: Syntek USB2.0 Camera is now controlling video device /dev/video0
    usbcore: registered new interface driver usb_stk11xx_driver
    stk11xx: v0.0.1 : Syntek USB Video Camera
    stk11xx: Check device return error (0x0201 = 0C) !
    stk11xx: Load microcode fail !

    I use Debian Etch, vanilla 2.6.21 kernel (tainted fglrx ati driver).

    Bye, Fifi
  5. 2007-05-09 19:37:21 UTC
    It's corrected in rev 38...

    Nicklas
  6. nobody

    2007-05-09 20:23:26 UTC
    Thx! It's work fine!

    Bye, Fifi
  7. nobody

    2008-01-18 04:43:46 UTC
    author of this site good lad , I support his(its) opinion in this question ,
    <a href=http://credis-tunion.1gb.in/credit-check-uk>credit check uk</a>
    how much not встричал I site but only in this subject is revealled on 100%/
< Previous | 1 | Next >

Add a Reply

This forum does not allow anonymous participation.

Log in to add a reply. Not registered? Create an account to participate and receive email updates when replies are posted to this topic.