Skip to content

Latest commit

 

History

History
92 lines (66 loc) · 2.84 KB

README.md

File metadata and controls

92 lines (66 loc) · 2.84 KB

IMPORTANT UPDATE

Completely deprecated, this driver is.
                            (Yoda)

The driver you are looking at is for Linux v3.2 only. It will not work on any other kernel version. Please don't even try unless you really know what you're doing.

Given stk1160 is fully mainlined since Linux v3.7 I've disabled issue tracking for this github repository. If you have questions or want to report a bug please use the video4linux mailing list ([email protected]) or try asking in the IRC channel (#v4l).

If you want to stay updated with news about easycap devices you can read the most excellent blog from Andrew Schalk.

http://easycap.blogspot.com.ar/

I hope you enjoy using stk1160 as much as I've enjoyed writing it!

stk1160-standalone

stk1160 release 0.9.3_for_v3.2

This branch is intended to be used with v3.2. Please don't even try to use it with another one.

This is the stk1160 driver (formerly known as easycap driver). It's the driver needed to capture audio and video in some of those little devices named as Easycap (if they are based on stk1160 chip).

You need to have this modules installed, but don't worry, you don't have to insert them manually:

  • snd_usb_audio
  • snd_ac97_codec
  • ac97_bus
  • saa7115
  • videodev
  • videobuf2_core
  • videobuf2_vmalloc
  • videobuf2_memops
  • v4l2_common

Building and installing

make
make install

After this, perhaps you will have to run 'depmod -a'.

You should not get any warning. If you do, most probably you did something wrong or you're using an incompatible kernel.

Usage

After installing the driver you're ready to go. If you now insert your usb easycap device you'll notice two modules get automatically loaded: stk1160 and snd-usb-audio. This can be seen using dmesg:

$ dmesg | grep registered
[48.561592] stk1160 2-2:1.0: V4L2 device registered as video0
[48.562284] usbcore: registered new interface driver stk1160
[49.169189] usbcore: registered new interface driver snd-usb-audio

Also, stk1160 will register a control-only alsa sound card. This sound card is called 'stk1160-mixer'. To enable sound capture you have to open alsamixer and selected the 'Line' item on the capture menu for stk1160-mixer device.

This stk1160-mixer device is needed because snd-usb-audio doesn't show mixer controls for the ac97 codec chip. The real usb transfer for audio capture is done through snd-usb-audio.

Preventing old easycap driver from loading

If you want to prevent some module from loading you can do so by adding it to blacklist file.

On many distributions this can be done like this:

echo "blacklist easycap" >> /etc/modprobe.d/blacklist.conf

This way easycap won't be loaded automatically by udev; you can still load it manually, of course.