xref: /OK3568_Linux_fs/kernel/Documentation/admin-guide/media/meye.rst (revision 4882a59341e53eb6f0b4789bf948001014eff981)
1*4882a593Smuzhiyun.. SPDX-License-Identifier: GPL-2.0
2*4882a593Smuzhiyun
3*4882a593Smuzhiyun.. include:: <isonum.txt>
4*4882a593Smuzhiyun
5*4882a593SmuzhiyunVaio Picturebook Motion Eye Camera Driver
6*4882a593Smuzhiyun=========================================
7*4882a593Smuzhiyun
8*4882a593SmuzhiyunCopyright |copy| 2001-2004 Stelian Pop <stelian@popies.net>
9*4882a593Smuzhiyun
10*4882a593SmuzhiyunCopyright |copy| 2001-2002 Alcôve <www.alcove.com>
11*4882a593Smuzhiyun
12*4882a593SmuzhiyunCopyright |copy| 2000 Andrew Tridgell <tridge@samba.org>
13*4882a593Smuzhiyun
14*4882a593SmuzhiyunThis driver enable the use of video4linux compatible applications with the
15*4882a593SmuzhiyunMotion Eye camera. This driver requires the "Sony Laptop Extras" driver (which
16*4882a593Smuzhiyuncan be found in the "Misc devices" section of the kernel configuration utility)
17*4882a593Smuzhiyunto be compiled and installed (using its "camera=1" parameter).
18*4882a593Smuzhiyun
19*4882a593SmuzhiyunIt can do at maximum 30 fps @ 320x240 or 15 fps @ 640x480.
20*4882a593Smuzhiyun
21*4882a593SmuzhiyunGrabbing is supported in packed YUV colorspace only.
22*4882a593Smuzhiyun
23*4882a593SmuzhiyunMJPEG hardware grabbing is supported via a private API (see below).
24*4882a593Smuzhiyun
25*4882a593SmuzhiyunHardware supported
26*4882a593Smuzhiyun------------------
27*4882a593Smuzhiyun
28*4882a593SmuzhiyunThis driver supports the 'second' version of the MotionEye camera :)
29*4882a593Smuzhiyun
30*4882a593SmuzhiyunThe first version was connected directly on the video bus of the Neomagic
31*4882a593Smuzhiyunvideo card and is unsupported.
32*4882a593Smuzhiyun
33*4882a593SmuzhiyunThe second one, made by Kawasaki Steel is fully supported by this
34*4882a593Smuzhiyundriver (PCI vendor/device is 0x136b/0xff01)
35*4882a593Smuzhiyun
36*4882a593SmuzhiyunThe third one, present in recent (more or less last year) Picturebooks
37*4882a593Smuzhiyun(C1M* models), is not supported. The manufacturer has given the specs
38*4882a593Smuzhiyunto the developers under a NDA (which allows the development of a GPL
39*4882a593Smuzhiyundriver however), but things are not moving very fast (see
40*4882a593Smuzhiyunhttp://r-engine.sourceforge.net/) (PCI vendor/device is 0x10cf/0x2011).
41*4882a593Smuzhiyun
42*4882a593SmuzhiyunThere is a forth model connected on the USB bus in TR1* Vaio laptops.
43*4882a593SmuzhiyunThis camera is not supported at all by the current driver, in fact
44*4882a593Smuzhiyunlittle information if any is available for this camera
45*4882a593Smuzhiyun(USB vendor/device is 0x054c/0x0107).
46*4882a593Smuzhiyun
47*4882a593SmuzhiyunDriver options
48*4882a593Smuzhiyun--------------
49*4882a593Smuzhiyun
50*4882a593SmuzhiyunSeveral options can be passed to the meye driver using the standard
51*4882a593Smuzhiyunmodule argument syntax (<param>=<value> when passing the option to the
52*4882a593Smuzhiyunmodule or meye.<param>=<value> on the kernel boot line when meye is
53*4882a593Smuzhiyunstatically linked into the kernel). Those options are:
54*4882a593Smuzhiyun
55*4882a593Smuzhiyun.. code-block:: none
56*4882a593Smuzhiyun
57*4882a593Smuzhiyun	gbuffers:	number of capture buffers, default is 2 (32 max)
58*4882a593Smuzhiyun
59*4882a593Smuzhiyun	gbufsize:	size of each capture buffer, default is 614400
60*4882a593Smuzhiyun
61*4882a593Smuzhiyun	video_nr:	video device to register (0 = /dev/video0, etc)
62*4882a593Smuzhiyun
63*4882a593SmuzhiyunModule use
64*4882a593Smuzhiyun----------
65*4882a593Smuzhiyun
66*4882a593SmuzhiyunIn order to automatically load the meye module on use, you can put those lines
67*4882a593Smuzhiyunin your /etc/modprobe.d/meye.conf file:
68*4882a593Smuzhiyun
69*4882a593Smuzhiyun.. code-block:: none
70*4882a593Smuzhiyun
71*4882a593Smuzhiyun	alias char-major-81 videodev
72*4882a593Smuzhiyun	alias char-major-81-0 meye
73*4882a593Smuzhiyun	options meye gbuffers=32
74*4882a593Smuzhiyun
75*4882a593SmuzhiyunUsage:
76*4882a593Smuzhiyun------
77*4882a593Smuzhiyun
78*4882a593Smuzhiyun.. code-block:: none
79*4882a593Smuzhiyun
80*4882a593Smuzhiyun	xawtv >= 3.49 (<http://bytesex.org/xawtv/>)
81*4882a593Smuzhiyun		for display and uncompressed video capture:
82*4882a593Smuzhiyun
83*4882a593Smuzhiyun			xawtv -c /dev/video0 -geometry 640x480
84*4882a593Smuzhiyun				or
85*4882a593Smuzhiyun			xawtv -c /dev/video0 -geometry 320x240
86*4882a593Smuzhiyun
87*4882a593Smuzhiyun	motioneye (<http://popies.net/meye/>)
88*4882a593Smuzhiyun		for getting ppm or jpg snapshots, mjpeg video
89*4882a593Smuzhiyun
90*4882a593SmuzhiyunBugs / Todo
91*4882a593Smuzhiyun-----------
92*4882a593Smuzhiyun
93*4882a593Smuzhiyun- 'motioneye' still uses the meye private v4l1 API extensions.
94