ir-keytable: Get decoder capabilities from sysfs
authorMauro Carvalho Chehab <mchehab@redhat.com>
Sat, 10 Apr 2010 15:40:03 +0000 (12:40 -0300)
committerMauro Carvalho Chehab <mchehab@redhat.com>
Sat, 10 Apr 2010 15:40:31 +0000 (12:40 -0300)
commite87e0e9607dbb91d89b97ef19831ee3b8fa2c77c
treea67f741ec611008ff014ff18da12a9276957c4e2
parentf2ff68c3c25c7d2c8a9b5933c9393271a227ddc4
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>
utils/keytable/keytable.c