1. Feb 06, 2013
  2. Feb 05, 2013
    • Paul Bolle's avatar
      [media] saa7164: silence GCC warnings · b4c13d3d
      Paul Bolle authored
      
      
      Compiling the saa7164 driver without CONFIG_VIDEO_ADV_DEBUG set triggers
      these GCC warnings:
          drivers/media/pci/saa7164/saa7164-encoder.c:1301:12: warning: ‘saa7164_g_register’ defined but not used [-Wunused-function]
          drivers/media/pci/saa7164/saa7164-encoder.c:1314:12: warning: ‘saa7164_s_register’ defined but not used [-Wunused-function]
      Silence these warnings by wrapping these two functions in an "#ifdef
      CONFIG_VIDEO_ADV_DEBUG" and "#endif" pair.
      
      Signed-off-by: default avatarPaul Bolle <pebolle@tiscali.nl>
      Signed-off-by: default avatarMauro Carvalho Chehab <mchehab@redhat.com>
      b4c13d3d
  3. Feb 01, 2013
    • Alexandre Lissy's avatar
      [media] imon: fix Knob event interpretation issues on ARM · 24dec5da
      Alexandre Lissy authored
      Events for the iMon Knob pad where not correctly interpreted on ARM,
      resulting in buggy mouse movements (cursor going straight out of the
      screen), key pad only generating KEY_RIGHT and KEY_DOWN events.
      A reproducer is:
      int main(int argc, char ** argv)
      {
              char rel_x = 0x00; printf("rel_x:%d @%s:%d\n", rel_x, __FILE__, __LINE__);
              rel_x = 0x0f; printf("rel_x:%d @%s:%d\n", rel_x, __FILE__, __LINE__);
              rel_x |= ~0x0f; printf("rel_x:%d @%s:%d\n", rel_x, __FILE__, __LINE__);
              return 0;
      }
      (running on x86 or amd64)
      $ ./test
      rel_x:0 @test.c:6
      rel_x:15 @test.c:7
      rel_x:-1 @test.c:8
      (running on armv6)
      rel_x:0 @test.c:6
      rel_x:15 @test.c:7
      rel_x:255 @test.c:8
      Forcing the rel_x and rel_y variables as signed char fixes the issue.
      
      Reference: http://www.arm.linux.org.uk/docs/faqs/signedchar.php
      
      
      
      Signed-off-by: default avatarAlexandre Lissy <alexandrelissy@free.fr>
      Signed-off-by: default avatarMauro Carvalho Chehab <mchehab@redhat.com>
      24dec5da
  4. Jan 25, 2013