Hans de Goede [Fri, 18 Jun 2010 15:11:22 +0000 (17:11 +0200)]
libv4l: update upside-down device table
Signed-off-by: Hans de Goede <hdegoede@redhat.com>
Hans de Goede [Fri, 11 Jun 2010 06:46:57 +0000 (08:46 +0200)]
libv4l: update upside-down device table
Signed-off-by: Hans de Goede <hdegoede@redhat.com>
Hans de Goede [Wed, 9 Jun 2010 08:38:40 +0000 (10:38 +0200)]
libv4l: update upside-down device table
Signed-off-by: Hans de Goede <hdegoede@redhat.com>
Balint Reczey [Tue, 8 Jun 2010 17:36:58 +0000 (19:36 +0200)]
libv4l1: support up to 256 different frame sizes
Logitech, Inc. Webcam Pro 9000 supports 18 wich is more than the the originally
supported 16. 256 should be enough for a while.
Hans de Goede [Tue, 8 Jun 2010 08:01:20 +0000 (10:01 +0200)]
libv4l: Make v4l2_get_control report errors
And handle those errors at the places calling v4l2_get_control.
Signed-off-by: Hans de Goede <hdegoede@redhat.com>
Hans de Goede [Tue, 8 Jun 2010 07:37:59 +0000 (09:37 +0200)]
libv4l1: Ignore G_TUNER / S_TUNER errors in SAUDIO / GAUDIO
While at properly indent the conditions of an if block and add 2 missing
breaks.
Signed-off-by: Hans de Goede <hdegoede@redhat.com>
Huzaifa Sidhpurwala [Tue, 8 Jun 2010 03:42:57 +0000 (09:12 +0530)]
libv4l1: move VIDIOCGAUDIO,VIDIOCSAUDIO,VIDIOCGVBIFMT,VIDIOCSVBIFMT
merged two previous patches, now uses v4l2_set_control and
v4l2_get_control
Signed-of-by: Huzaifa Sidhpurwala <huzaifas@redhat.com>
Hans de Goede [Mon, 7 Jun 2010 08:13:36 +0000 (10:13 +0200)]
libv4l: update upside-down device table
Signed-off-by: Hans de Goede <hdegoede@redhat.com>
Huzaifa Sidhpurwala [Fri, 4 Jun 2010 07:40:14 +0000 (13:10 +0530)]
libv4l1: move VIDIOCCAPTURE to libv4l1
move VIDIOCCAPTURE to libv4l1
Signed-of-by: Huzaifa Sidhpurwala <huzaifas@redhat.com>
Huzaifa Sidhpurwala [Fri, 4 Jun 2010 07:23:40 +0000 (12:53 +0530)]
libv4l1: move VIDIOCGFREQ and VIDIOCSFREQ to libv4l1
move VIDIOCGFREQ and VIDIOCSFREQ to libv4l1
Signed-of-by: Huzaifa Sidhpurwala <huzaifas@redhat.com>
Hans de Goede [Sun, 6 Jun 2010 07:23:43 +0000 (09:23 +0200)]
libv4lconvert: Add support for Xirlink C-It YYVYUY format
This format is produced by some cameras with the Xirlink C-It chipset
(cameras formely handled by the v4l1 ibmcam driver).
Signed-off-by: Hans de Goede <hdegoede@redhat.com>
Huzaifa Sidhpurwala [Fri, 4 Jun 2010 06:49:40 +0000 (12:19 +0530)]
libv4l1: move VIDIOCGTUNER and VIDIOCSTUNER to libv4l1
move VIDIOCGTUNER and VIDIOCSTUNER to libv4l1
Signed-of-by: Huzaifa Sidhpurwala <huzaifas@redhat.com>
Hans de Goede [Tue, 1 Jun 2010 11:07:49 +0000 (13:07 +0200)]
libv4l1: Fix wrong buffer being passed into VIDIOC_G_FBUF call
Signed-off-by: Hans de Goede <hdegoede@redhat.com>
Huzaifa Sidhpurwala [Tue, 1 Jun 2010 09:37:21 +0000 (15:07 +0530)]
libv4l1: Move VIDIOCSFBUF into libv4l1
Move VIDIOCSFBUF into libv4l1 and correct a missing
break with the last commit
Signed-Off-by: Huzaifa Sidhpurwala <huzaifas@redhat.com>
Signed-Off-by: Hans de Goede <hdegoede@redhat.com>
Huzaifa Sidhpurwala [Mon, 31 May 2010 08:03:28 +0000 (13:33 +0530)]
libv4l1: Move VIDIOCGFBUF into libv4l1
Move VIDIOCGFBUF into libv4l1
Signed-off-by: Huzaifa Sidhpurwala <huzaifas@redhat.com>
Signed-off-by: Hans de Goede <hdegoede@redhat.com>
Hans de Goede [Sun, 30 May 2010 08:28:24 +0000 (10:28 +0200)]
libv4l: update upside down device list
Signed-off-by: Hans de Goede <hdegoede@redhat.com>
Hans de Goede [Fri, 28 May 2010 08:50:23 +0000 (10:50 +0200)]
libv4l1: Remove code duplication VIDIOCGCHAN
Signed-off-by: Hans de Goede <hdegoede@redhat.com>
Hans de Goede [Fri, 28 May 2010 08:31:11 +0000 (10:31 +0200)]
libv4l1: Remove code duplication VIDIOCSCHAN
Signed-off-by: Hans de Goede <hdegoede@redhat.com>
Hans de Goede [Fri, 28 May 2010 08:11:59 +0000 (10:11 +0200)]
Always make v4l2 ioctls pass through libv4l2
Signed-off-by: Hans de Goede <hdegoede@redhat.com>
Hans de Goede [Fri, 28 May 2010 08:09:18 +0000 (10:09 +0200)]
libv4l1: SCHAN should lead to a S_INPUT not an ENUM_INPUT ioctl
Signed-off-by: Hans de Goede <hdegoede@redhat.com>
Huzaifa Sidhpurwala [Fri, 28 May 2010 07:29:14 +0000 (12:59 +0530)]
libv4l1: move v4l1 ioctls from kernel to libv4l1: VIDIOCSCHAN
move VIDIOCSCHAN to libv4l1
Signed-Off-by: Huzaifa Sidhpurwala <huzaifas@redhat.com>
Huzaifa Sidhpurwala [Tue, 25 May 2010 10:06:39 +0000 (15:36 +0530)]
libv4l1: move v4l1 ioctls from kernel to libv4l1:VIDIOCGCHAN
move VIDIOCGCHAN to libv4l1
Signed-off-by: Huzaifa Sidhpurwala <huzaifas@redhat.com>
Hans de Goede [Tue, 25 May 2010 09:14:33 +0000 (11:14 +0200)]
libv4l: update upside-down device table
Signed-off-by: Hans de Goede <hdegoede@redhat.com>
Hans de Goede [Fri, 21 May 2010 12:19:56 +0000 (14:19 +0200)]
Add kernel v4l1-compat LGPL license change permission from Mauro
Hans de Goede [Fri, 21 May 2010 12:13:59 +0000 (14:13 +0200)]
bump ver to 0.8.1-test
Hans de Goede [Fri, 21 May 2010 11:56:18 +0000 (13:56 +0200)]
libv4l: add 4 new entries to the upside down table
Signed-off-by: Hans de Goede <hdegoede@redhat.com>
Hans de Goede [Wed, 19 May 2010 09:49:36 +0000 (11:49 +0200)]
libv4l1: move v4l1 ioctls from kernel to libv4l1: VIDIOCGCAP
Signed-off-by: Huzaifa Sidhpurwala <huzaifas@redhat.com>
Signed-off-by: Hans de Goede <hdegoede@redhat.com>
Hans de Goede [Fri, 7 May 2010 09:57:50 +0000 (11:57 +0200)]
libv4l: add detection for short frames
Sometimes cam generate short frames (esp. at the beginning of the stream),
detect this and retry a number of times. If retrying fails, pass allong
the short frame as it is better then nothing.
This patch also cleans up the JPEG decoding error handling code to use
the same mechanism.
Signed-off-by: Hans de Goede <hdegoede@redhat.com>
Hans de Goede [Fri, 7 May 2010 08:28:14 +0000 (10:28 +0200)]
Prep for 0.8.0 release
Signed-off-by: Hans de Goede <hdegoede@redhat.com>
Hans de Goede [Fri, 7 May 2010 06:22:32 +0000 (08:22 +0200)]
libv4l: Update upside down device list
Signed-off-by: Hans de Goede <hdegoede@redhat.com>
Hans Verkuil [Mon, 3 May 2010 14:52:26 +0000 (16:52 +0200)]
v4l2-ctl: fix copy-paste error (wrong console message).
Signed-off-by: Hans Verkuil <hverkuil@xs4all.nl>
Hans Verkuil [Sun, 2 May 2010 14:09:22 +0000 (16:09 +0200)]
v4l2-compliance: add priority tests
Signed-off-by: Hans Verkuil <hverkuil@xs4all.nl>
Hans Verkuil [Sun, 2 May 2010 13:37:51 +0000 (15:37 +0200)]
v4l2-compliance: cleanup and add tests for multiple opens.
Signed-off-by: Hans Verkuil <hverkuil@xs4all.nl>
Hans Verkuil [Sun, 2 May 2010 11:23:09 +0000 (13:23 +0200)]
qv4l2: fix oops if the device has no user controls.
Signed-off-by: Hans Verkuil <hverkuil@xs4all.nl>
Hans Verkuil [Sun, 2 May 2010 10:58:46 +0000 (12:58 +0200)]
v4l2-ctl: call QUERYCAP when sleep returns.
Calling VIDIOC_QUERYCAP after sleeping is a nice way to test the USB
disconnect case.
Signed-off-by: Hans Verkuil <hverkuil@xs4all.nl>
Hans Verkuil [Sat, 1 May 2010 13:10:20 +0000 (15:10 +0200)]
v4l2-ctl: add prio support and a sleep option.
Add --get/set-priority to test VIDIOC_G/S_PRIORITY and add a sleep
option to let v4l2-ctl sleep for a number of seconds before closing
the file handle. Useful for testing.
Signed-off-by: Hans Verkuil <hverkuil@xs4all.nl>
Hans Verkuil [Sat, 1 May 2010 11:40:59 +0000 (13:40 +0200)]
libv4lcontrol: fix queryctrl handling
When enumerating the controls using V4L2_CTRL_FLAG_NEXT_CTRL then queryctrl
should always remove V4L2_CTRL_FLAG_NEXT_CTRL when returning, even if no
next control was found.
So instead of using V4L2_CTRL_FLAG_NEXT_CTRL as the 'maximum' control ID
libv4lcontrol.c should use V4L2_CTRL_ID_MASK instead (which is really the
highest possible ID).
This bug caused qv4l2 to show the user controls twice.
Signed-off-by: Hans Verkuil <hverkuil@xs4all.nl>
Mats Randgaard [Fri, 30 Apr 2010 12:41:15 +0000 (14:41 +0200)]
v4l2-ctl: Add support for dv preset API.
note: Custom timings are not yet implemented.
Signed-off-by: Mats Randgaard <mats.randgaard@tandberg.com>
Signed-off-by: Hans Verkuil <hverkuil@xs4all.nl>
Hans de Goede [Fri, 30 Apr 2010 10:04:38 +0000 (12:04 +0200)]
libv4l: update upside-down device list
Signed-off-by: Hans de Goede <hdegoede@redhat.com>
Hans de Goede [Fri, 30 Apr 2010 10:03:29 +0000 (12:03 +0200)]
libv4l: Properly set errno when leaving v4l2_read
Signed-off-by: Hans de Goede <hdegoede@redhat.com>
Hans Verkuil [Fri, 30 Apr 2010 06:38:01 +0000 (08:38 +0200)]
libv4lcontrol: run through checkpatch.pl
Signed-off-by: Hans Verkuil <hverkuil@xs4all.nl>
Hans Verkuil [Fri, 30 Apr 2010 06:29:09 +0000 (08:29 +0200)]
libv4lprocessing: run through checkpatch.pl
Signed-off-by: Hans Verkuil <hverkuil@xs4all.nl>
Hans Verkuil [Fri, 30 Apr 2010 06:27:44 +0000 (08:27 +0200)]
whitebalance.c: run through checkpatch.pl
Signed-off-by: Hans Verkuil <hverkuil@xs4all.nl>
Hans Verkuil [Fri, 30 Apr 2010 06:26:27 +0000 (08:26 +0200)]
gamma.c: run through checkpatch.pl
Signed-off-by: Hans Verkuil <hverkuil@xs4all.nl>
Hans Verkuil [Fri, 30 Apr 2010 06:25:26 +0000 (08:25 +0200)]
autogain.c: run through checkpatch.pl
Signed-off-by: Hans Verkuil <hverkuil@xs4all.nl>
Hans Verkuil [Thu, 29 Apr 2010 12:59:14 +0000 (14:59 +0200)]
tinyjpeg: run through checkpatch.pl
Signed-off-by: Hans Verkuil <hverkuil@xs4all.nl>
Hans Verkuil [Thu, 29 Apr 2010 12:29:33 +0000 (14:29 +0200)]
stv0680.c: run through checkpatch.pl
Signed-off-by: Hans Verkuil <hverkuil@xs4all.nl>
Hans Verkuil [Thu, 29 Apr 2010 07:24:55 +0000 (09:24 +0200)]
sq905c.c: run through checkpatch.pl
Signed-off-by: Hans Verkuil <hverkuil@xs4all.nl>
Hans Verkuil [Thu, 29 Apr 2010 07:21:33 +0000 (09:21 +0200)]
spca561-decompress.c: run through checkpatch.pl
Signed-off-by: Hans Verkuil <hverkuil@xs4all.nl>
Hans Verkuil [Thu, 29 Apr 2010 07:17:48 +0000 (09:17 +0200)]
spca501.c: run through checkpatch.pl
Signed-off-by: Hans Verkuil <hverkuil@xs4all.nl>
Hans Verkuil [Thu, 29 Apr 2010 07:16:23 +0000 (09:16 +0200)]
sn9c20x.c: run through checkpatch.pl
Signed-off-by: Hans Verkuil <hverkuil@xs4all.nl>
Hans Verkuil [Thu, 29 Apr 2010 07:11:04 +0000 (09:11 +0200)]
sn9c2028-decomp.c: run through checkpatch.pl
Signed-off-by: Hans Verkuil <hverkuil@xs4all.nl>
Hans Verkuil [Thu, 29 Apr 2010 07:08:17 +0000 (09:08 +0200)]
sn9c10x.c: run through checkpatch.pl
Signed-off-by: Hans Verkuil <hverkuil@xs4all.nl>
Hans Verkuil [Thu, 29 Apr 2010 07:05:41 +0000 (09:05 +0200)]
rgbyuv.c: run through checkpatch.pl
Signed-off-by: Hans Verkuil <hverkuil@xs4all.nl>
Hans Verkuil [Thu, 29 Apr 2010 06:59:20 +0000 (08:59 +0200)]
v4l2-ctl: add support to poll or wait for an event.
Signed-off-by: Hans Verkuil <hverkuil@xs4all.nl>
Hans Verkuil [Thu, 29 Apr 2010 06:55:53 +0000 (08:55 +0200)]
videodev2.h: update to latest v4l-dvb version.
Signed-off-by: Hans Verkuil <hverkuil@xs4all.nl>
Hans Verkuil [Wed, 28 Apr 2010 19:08:08 +0000 (21:08 +0200)]
pac207.c: run through checkpatch.pl
Signed-off-by: Hans Verkuil <hverkuil@xs4all.nl>
Hans Verkuil [Wed, 28 Apr 2010 19:05:30 +0000 (21:05 +0200)]
ov518-decomp.c: run through checkpatch.pl
Signed-off-by: Hans Verkuil <hverkuil@xs4all.nl>
Hans Verkuil [Wed, 28 Apr 2010 18:47:52 +0000 (20:47 +0200)]
ov511-decomp.c: run through checkpatch.pl
Signed-off-by: Hans Verkuil <hverkuil@xs4all.nl>
Hans Verkuil [Wed, 28 Apr 2010 18:36:57 +0000 (20:36 +0200)]
mr97310a.c: run through checkpatch.pl
Signed-off-by: Hans Verkuil <hverkuil@xs4all.nl>
Hans Verkuil [Wed, 28 Apr 2010 18:34:05 +0000 (20:34 +0200)]
libv4l*-priv.h: run through checkpatch.pl
Signed-off-by: Hans Verkuil <hverkuil@xs4all.nl>
Hans Verkuil [Wed, 28 Apr 2010 06:51:50 +0000 (08:51 +0200)]
libv4lconvert.c: run through checkpatch.pl
Signed-off-by: Hans Verkuil <hverkuil@xs4all.nl>
Hans Verkuil [Wed, 28 Apr 2010 06:44:56 +0000 (08:44 +0200)]
jidctflt.c: run through checkpatch.pl
Signed-off-by: Hans Verkuil <hverkuil@xs4all.nl>
Hans Verkuil [Wed, 28 Apr 2010 06:41:47 +0000 (08:41 +0200)]
helper.c: run through checkpatch.pl
Signed-off-by: Hans Verkuil <hverkuil@xs4all.nl>
Hans Verkuil [Wed, 28 Apr 2010 06:40:47 +0000 (08:40 +0200)]
flip.c: run through checkpatch.pl
Signed-off-by: Hans Verkuil <hverkuil@xs4all.nl>
Hans Verkuil [Wed, 28 Apr 2010 06:40:05 +0000 (08:40 +0200)]
crop.c: run through checkpatch.pl
Signed-off-by: Hans Verkuil <hverkuil@xs4all.nl>
Hans Verkuil [Wed, 28 Apr 2010 06:38:13 +0000 (08:38 +0200)]
cpia1.c: run through checkpatch.pl
Signed-off-by: Hans Verkuil <hverkuil@xs4all.nl>
Hans Verkuil [Wed, 28 Apr 2010 06:36:31 +0000 (08:36 +0200)]
bayer.c: run through checkpatch.pl
Signed-off-by: Hans Verkuil <hverkuil@xs4all.nl>
Hans Verkuil [Wed, 7 Apr 2010 22:17:49 +0000 (00:17 +0200)]
qv4l2: when calling TRY_FMT set pix.field to V4L2_FIELD_ANY
Setting it to V4L2_FIELD_ANY is better than using the value from
G_FMT. If that is e.g. FIELD_TOP, then 'trying' a larger height will
clamp that down to what a single field supports. Whereas FIELD_ANY
will just try to find the best field setting for the requested format.
Signed-off-by: Hans Verkuil <hverkuil@xs4all.nl>
Hans Verkuil [Tue, 27 Apr 2010 10:31:09 +0000 (12:31 +0200)]
v4l2convert.c: run through checkpatch.pl
Signed-off-by: Hans Verkuil <hverkuil@xs4all.nl>
Hans Verkuil [Tue, 27 Apr 2010 10:29:31 +0000 (12:29 +0200)]
log.c: run through checkpatch.pl
Signed-off-by: Hans Verkuil <hverkuil@xs4all.nl>
Hans Verkuil [Tue, 27 Apr 2010 10:27:52 +0000 (12:27 +0200)]
libv4l2.c: run through checkpatch.pl
Signed-off-by: Hans Verkuil <hverkuil@xs4all.nl>
Hans Verkuil [Tue, 27 Apr 2010 10:06:24 +0000 (12:06 +0200)]
libv4l2-priv.h: run through checkpatch.pl
Signed-off-by: Hans Verkuil <hverkuil@xs4all.nl>
Hans Verkuil [Tue, 27 Apr 2010 10:04:47 +0000 (12:04 +0200)]
v4l1compat.c: run through checkpatch.pl
Signed-off-by: Hans Verkuil <hverkuil@xs4all.nl>
Hans Verkuil [Tue, 27 Apr 2010 10:03:10 +0000 (12:03 +0200)]
log.c: run through checkpatch.pl
Signed-off-by: Hans Verkuil <hverkuil@xs4all.nl>
Hans Verkuil [Tue, 27 Apr 2010 09:52:06 +0000 (11:52 +0200)]
libv4l1-priv.h: run through checkpatch.pl
Signed-off-by: Hans Verkuil <hverkuil@xs4all.nl>
Hans Verkuil [Tue, 27 Apr 2010 09:49:56 +0000 (11:49 +0200)]
libv4l1.c: run through checkpatch.pl
Signed-off-by: Hans Verkuil <hverkuil@xs4all.nl>
Hans Verkuil [Tue, 27 Apr 2010 09:36:01 +0000 (11:36 +0200)]
libv4l*: run headers through checkpatch.pl
Signed-off-by: Hans Verkuil <hverkuil@xs4all.nl>
Hans Verkuil [Mon, 26 Apr 2010 07:46:43 +0000 (09:46 +0200)]
qv4l2: fix include directory
Add top-level include directory to the include list for qv4l2 and
qv4l2-qt3. Also add the thread config option for qv4l2-qt3.
Signed-off-by: Hans Verkuil <hverkuil@xs4all.nl>
Hans de Goede [Mon, 26 Apr 2010 07:39:13 +0000 (09:39 +0200)]
libv4l: update upside-down device list
Signed-off-by: Hans de Goede <hdegoede@redhat.com>
Hans Verkuil [Sat, 24 Apr 2010 11:41:21 +0000 (13:41 +0200)]
qv4l2: when refreshing controls call queryctrl before setVal.
setVal relies on correct control flags for the setWhat() call. So
we must update the control flags before calling setVal.
Signed-off-by: Hans Verkuil <hverkuil@xs4all.nl>
Mauro Carvalho Chehab [Wed, 21 Apr 2010 02:11:55 +0000 (23:11 -0300)]
ir-keytable: Add support for Sony and JVC protocols
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
Hans de Goede [Tue, 20 Apr 2010 10:57:51 +0000 (12:57 +0200)]
libv4l: update upside down device list
Signed-off-by: Hans de Goede <hdegoede@redhat.com>
Hans de Goede [Fri, 16 Apr 2010 15:29:38 +0000 (17:29 +0200)]
libv4l: update upside-down device table
Signed-off-by: Hans de Goede <hdegoede@redhat.com>
Hans de Goede [Fri, 16 Apr 2010 13:00:02 +0000 (15:00 +0200)]
libv4l: update upside down device list
Signed-off-by: Hans de Goede <hdegoede@redhat.com>
Hans de Goede [Mon, 12 Apr 2010 07:39:53 +0000 (09:39 +0200)]
libv4l: update upside down device table
Signed-off-by: Hans de Goede <hdegoede@redhat.com>
Mauro Carvalho Chehab [Sun, 11 Apr 2010 04:05:13 +0000 (01:05 -0300)]
ir-keycode: Add the install target
Install will copy the ir-keycode to the binary dir, copy the keymaps
into /etc/rc_keymaps, and add an example file (rc_maps.cfg.example) at
/etc/.
Currently, it is up to the user to edit the rc_maps.cfg to adapt for his
environment, and to create an udev rule, if needed.
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
Mauro Carvalho Chehab [Sun, 11 Apr 2010 03:58:13 +0000 (00:58 -0300)]
keytable: Add an example for rc_maps.cfg
Mauro Carvalho Chehab [Sun, 11 Apr 2010 02:26:18 +0000 (23:26 -0300)]
ir-keycode: Add support for table autoload
This function is meant to be used by udev, to allow auto-loading a
keytable during module probing. It works in conjunction with a file
with a sintax like:
cx8800 * ./keycodes/rc5_hauppauge_new
* rc-avermedia-m135a-rm-jx ./keycodes/kworld_315u
saa7134 rc-avermedia-m135a-rm-jx ./keycodes/keycodes/nec_terratec_cinergy_xs
em28xx * ./keycodes/kworld_315u
* * ./keycodes/rc5_hauppauge_new
At the config file, the "*" means that any driver (or any table) will match
that criteria.
The file is processed from the first to the last line.
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
Mauro Carvalho Chehab [Sun, 11 Apr 2010 00:55:28 +0000 (21:55 -0300)]
ir-keytable: add support for more than one protocol in a table
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
Mauro Carvalho Chehab [Sun, 11 Apr 2010 00:46:35 +0000 (21:46 -0300)]
ir-keytable: Show enabled/current protocol(s) at read
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
Mauro Carvalho Chehab [Sun, 11 Apr 2010 00:38:41 +0000 (21:38 -0300)]
ir-keytable: Change protocol support if required by a keytable
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
Mauro Carvalho Chehab [Sun, 11 Apr 2010 00:16:37 +0000 (21:16 -0300)]
ir-keytable: Add the capability of changing the IR protocol
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
Mauro Carvalho Chehab [Sat, 10 Apr 2010 17:34:07 +0000 (14:34 -0300)]
ir-keytable: Don't generate segmentation fault if no devices
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
Mauro Carvalho Chehab [Sat, 10 Apr 2010 17:32:57 +0000 (14:32 -0300)]
ir-keytable: Show enabled raw decoders
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
Mauro Carvalho Chehab [Sat, 10 Apr 2010 17:21:11 +0000 (14:21 -0300)]
keytable: make functions static to avoid gcc to complain
Thanks-to: Andy Walls <awalls@md.metrocast.net> for the hint
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
Mauro Carvalho Chehab [Sat, 10 Apr 2010 15:40:03 +0000 (12:40 -0300)]
ir-keytable: Get decoder capabilities from sysfs
It will now show also the supported/current protocols, and identify
if the RC has a hardware or a software decoder:
Found /sys/class/rc/rc0/ (/dev/input/event8) with:
Driver "saa7134", raw software decoder, table "rc-avermedia-m135a-rm-jx"
Supported protocols: NEC RC-5 RC-6
Found /sys/class/rc/rc1/ (/dev/input/event9) with:
Driver "cx88xx", hardware decoder, table "rc-pixelview-mk12"
Supported protocols: other
Current protocols: NEC
Found /sys/class/rc/rc2/ (/dev/input/event10) with:
Driver "em28xx", hardware decoder, table "rc-rc5-hauppauge-new"
Supported protocols: NEC RC-5
Current protocols: RC-5
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
Mauro Carvalho Chehab [Sat, 10 Apr 2010 14:43:41 +0000 (11:43 -0300)]
ir-keytable: Put all driver values into a struct
Now, instead of a series of static vars, all device information
is stored at rc_dev struct. With this change, get_attribs will
now fill the struct with all information that were retrieved from
the device sysfs nodes.
With this change, it is now easier to get additional info from the
RC sysfs nodes, and to provide a set_attribs function to change
data, like the supported protocols.
As a bonus, the list mode now provides more info about the RC
devices.
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
Mauro Carvalho Chehab [Sat, 10 Apr 2010 14:20:45 +0000 (11:20 -0300)]
ir-keytable: remove gcc warning noise
gcc handling on -Wmissing-prototypes is stupid. It generates this warning:
keytable.c:366: warning: no previous prototype for ‘read_sysfs_uevents’
If the prototype for read_sysfs_uevents() is not declared twice.
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
Mauro Carvalho Chehab [Sat, 10 Apr 2010 14:17:13 +0000 (11:17 -0300)]
Remove unused vars from keytable and let gcc warn about that on Make.rules
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>