1. 29 12月, 2010 3 次提交
    • M
      [media] rc: Name RC keymap tables as rc_map_table · 2f4f58d6
      Mauro Carvalho Chehab 提交于
      Remote keytables had different names all over the place. Part of the fault
      is due to a bad naming when rc subsystem was created, but there were lots
      of old names that were still here.
      
      Use a common standard for everything.
      
      Patch generated by this script:
      
      for i in `find drivers/staging -type f -name *.[ch]` `find include/media -type f -name *.[ch]` `find drivers/media -type f -name *.[ch]`; do sed s,ir_scancode,rc_map_table,g <$i >a && mv a $i; done
      for i in `find drivers/staging -type f -name *.[ch]` `find include/media -type f -name *.[ch]` `find drivers/media -type f -name *.[ch]`; do sed s,ir_codes_,rc_map_,g <$i >a && mv a $i; done
      for i in `find drivers/staging -type f -name *.[ch]` `find include/media -type f -name *.[ch]` `find drivers/media -type f -name *.[ch]`; do sed s,rc_key_map,rc_map_table,g <$i >a && mv a $i; done
      for i in `find drivers/staging -type f -name *.[ch]` `find include/media -type f -name *.[ch]` `find drivers/media -type f -name *.[ch]`; do sed s,rc_map_table_size,rc_map_size,g <$i >a && mv a $i; done
      Signed-off-by: NMauro Carvalho Chehab <mchehab@redhat.com>
      2f4f58d6
    • M
      [media] rc: Rename remote controller type to rc_type instead of ir_type · 52b66144
      Mauro Carvalho Chehab 提交于
      for i in `find drivers/staging -type f -name *.[ch]` `find include/media -type f -name *.[ch]` `find drivers/media -type f -name *.[ch]`; do sed s,IR_TYPE,RC_TYPE,g <$i >a && mv a $i; done
      for i in `find drivers/staging -type f -name *.[ch]` `find include/media -type f -name *.[ch]` `find drivers/media -type f -name *.[ch]`; do sed s,ir_type,rc_type,g <$i >a && mv a $i; done
      Signed-off-by: NMauro Carvalho Chehab <mchehab@redhat.com>
      52b66144
    • M
  2. 19 5月, 2010 2 次提交
    • M
      V4L/DVB: Break Remote Controller keymaps into modules · 6686fa69
      Mauro Carvalho Chehab 提交于
      The original Remote Controller approach were very messy: a big file,
      that were part of ir-common kernel module, containing 64 different
      RC keymap tables, used by the V4L/DVB drivers.
      
      Better to break each RC keymap table into a separate module,
      registering them into rc core on a process similar to the fs/nls tables.
      
      As an userspace program is now in charge of loading those tables,
      adds an option to allow the complete removal of those tables from
      kernelspace.
      
      Yet, on embedded devices like Set Top Boxes and TV sets, maybe the
      only available input device is the IR. So, we should keep allowing
      the usage of in-kernel tables, but a latter patch should change
      the default to 'n', after giving some time for distros to add
      the v4l-utils with the ir-keytable program, to allow the table
      load via userspace.
      Signed-off-by: NMauro Carvalho Chehab <mchehab@redhat.com>
      6686fa69
    • M
      V4L/DVB: ir-common: move IR tables from ir-keymaps.c to a separate file · 77b7422d
      Mauro Carvalho Chehab 提交于
      Instead of having one big file with lots of keytables, create one include
      file for each IR keymap.
      Signed-off-by: NMauro Carvalho Chehab <mchehab@redhat.com>
      77b7422d