Skip to content

piotr-e/Stk1160-raspberrypi

 
 

Repository files navigation

Stk1160-RaspberryPi

Driver for EasyCap USB DVR forked from Ezequiel Garcia and modified for Raspberry Pi acc. to his instructions.

stk1160 release 0.9.5_for_v3.2

This driver is specially made for you: the user; so anything you think it's not clear enough, please open a github issue.

I repeat: open a github issue. This way everyone can follow the bug. Mails will be discarded.

This branch is intented to be used with v3.2. Please don't even try to use it with another one, or if you do and it doesn't work, don't open an issue.

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
  • 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.

About

stk1160 driver for Raspberry Pi (aka easycap)

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages

  • C 100.0%