ok, here's what the command did, stopping at a
#include in one of the missing files I finally managed to get.
gcc -o driver stk1160-v4l.c
stk1160-v4l.c:23:27: fatal error: linux/module.h: No such file or directory
And here's the README.md file.
Completely deprecated, this driver is.
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 (firstname.lastname@example.org) 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.
I hope you enjoy using stk1160 as much as I've enjoyed writing it!
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:
Building and installing
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.
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.