1. 06 2月, 2013 10 次提交
  2. 05 2月, 2013 1 次提交
    • P
      [media] saa7164: silence GCC warnings · b4c13d3d
      Paul Bolle 提交于
      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: NPaul Bolle <pebolle@tiscali.nl>
      Signed-off-by: NMauro Carvalho Chehab <mchehab@redhat.com>
      b4c13d3d
  3. 01 2月, 2013 1 次提交
    • A
      [media] imon: fix Knob event interpretation issues on ARM · 24dec5da
      Alexandre Lissy 提交于
      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.phpSigned-off-by: NAlexandre Lissy <alexandrelissy@free.fr>
      Signed-off-by: NMauro Carvalho Chehab <mchehab@redhat.com>
      24dec5da
  4. 25 1月, 2013 7 次提交
  5. 24 1月, 2013 7 次提交
  6. 23 1月, 2013 1 次提交
    • M
      [media] mb86a20s: don't use state before initializing it · f167e302
      Mauro Carvalho Chehab 提交于
      As reported by Feng's kbuild test:
      	From: kbuild test robot <fengguang.wu@intel.com>
      	Subject: drivers/media/dvb-frontends/mb86a20s.c:706 mb86a20s_attach() error: potential null dereference 'state'.  (kzalloc returns null)
      	Date: Wed, 23 Jan 2013 19:30:43 +0800
      
      	commit: f66d81b5 [media] mb86a20s: convert it to use dev_info/dev_err/dev_dbg
      
      	drivers/media/dvb-frontends/mb86a20s.c:706 mb86a20s_attach() error: potential null dereference 'state'.  (kzalloc returns null)
      	drivers/media/dvb-frontends/mb86a20s.c:706 mb86a20s_attach() error: we previously assumed 'state' could be null (see line 705)
      
      As, at mb86a20s_attach(), we have an i2c pointer, use it for all printk
      messages there, instead of state->i2c.
      Signed-off-by: NMauro Carvalho Chehab <mchehab@redhat.com>
      f167e302
  7. 22 1月, 2013 7 次提交
  8. 11 1月, 2013 6 次提交
    • L
      [media] uvcvideo: Set error_idx properly for S_EXT_CTRLS failures · 68d6f84b
      Laurent Pinchart 提交于
      The uvc_set_ctrl() calls don't write to the hardware. A failure at that
      point thus leaves the device in a clean state, with no control modified.
      Set the error_idx field to the count value to reflect that, as per the
      V4L2 specification.
      TRY_EXT_CTRLS is unchanged and the error_idx field must always be set to
      the failed control index in that case.
      Signed-off-by: NLaurent Pinchart <laurent.pinchart@ideasonboard.com>
      Acked-by: NHans Verkuil <hans.verkuil@cisco.com>
      Signed-off-by: NMauro Carvalho Chehab <mchehab@redhat.com>
      68d6f84b
    • L
      [media] uvcvideo: Cleanup leftovers of partial revert · 29005c09
      Laurent Pinchart 提交于
      Commit ba68c8530a263dc4de440fa10bb20a1c5b9d4ff5 (Partly revert "[media]
      uvcvideo: Set error_idx properly for extended controls API failures")
      missed two modifications. Clean them up.
      Signed-off-by: NLaurent Pinchart <laurent.pinchart@ideasonboard.com>
      Acked-by: NHans Verkuil <hans.verkuil@cisco.com>
      Signed-off-by: NMauro Carvalho Chehab <mchehab@redhat.com>
      29005c09
    • L
      [media] uvcvideo: Return -EACCES when trying to set a read-only control · 9bf42300
      Laurent Pinchart 提交于
      Commit ba68c8530a263dc4de440fa10bb20a1c5b9d4ff5 (Partly revert "[media]
      uvcvideo: Set error_idx properly for extended controls API failures")
      also reverted part of commit 30ecb936
      ("uvcvideo: Return -EACCES when trying to access a read/write-only
      control") by mistake. Fix it.
      Signed-off-by: NLaurent Pinchart <laurent.pinchart@ideasonboard.com>
      Acked-by: NHans Verkuil <hans.verkuil@cisco.com>
      Signed-off-by: NMauro Carvalho Chehab <mchehab@redhat.com>
      9bf42300
    • M
      Merge tag 'v3.8-rc3' into v4l_for_linus · 734d1ece
      Mauro Carvalho Chehab 提交于
      Linux 3.8-rc3
      
      * tag 'v3.8-rc3': (11110 commits)
        Linux 3.8-rc3
        mm: reinstante dropped pmd_trans_splitting() check
        cred: Remove tgcred pointer from struct cred
        drm/ttm: fix fence locking in ttm_buffer_object_transfer
        ARM: clps711x: Fix bad merge of clockevents setup
        ARM: highbank: save and restore L2 cache and GIC on suspend
        ARM: highbank: add a power request clear
        ARM: highbank: fix secondary boot and hotplug
        ARM: highbank: fix typos with hignbank in power request functions
        ARM: dts: fix highbank cpu mpidr values
        ARM: dts: add device_type prop to cpu nodes on Calxeda platforms
        drm/prime: drop reference on imported dma-buf come from gem
        xen/netfront: improve truesize tracking
        ARM: mx5: Fix MX53 flexcan2 clock
        ARM: OMAP2+: am33xx-hwmod: Fix wrongly terminated am33xx_usbss_mpu_irqs array
        sctp: fix Kconfig bug in default cookie hmac selection
        EDAC: Cleanup device deregistering path
        EDAC: Fix EDAC Kconfig menu
        EDAC: Fix kernel panic on module unloading
        ALSA: hda - add mute LED for HP Pavilion 17 (Realtek codec)
        ...
      734d1ece
    • S
      [media] media: remove __dev* annotations · 3151d14a
      Stephen Rothwell 提交于
      Hi Mauro,
      After merging the v4l-dvb tree, today's linux-next build (x86_64
      allmodconfig) failed like this:
      drivers/media/platform/sh_veu.c:1146:22: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'sh_veu_probe'
      drivers/media/platform/sh_veu.c:1228:22: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'sh_veu_remove'
      drivers/media/platform/sh_veu.c:1244:2: error: implicit declaration of function '__devexit_p' [-Werror=implicit-function-declaration]
      drivers/media/platform/sh_veu.c:1244:25: error: 'sh_veu_remove' undeclared here (not in a function)
      drivers/media/platform/sh_veu.c: In function 'sh_veu_init':
      drivers/media/platform/sh_veu.c:1253:45: error: 'sh_veu_probe' undeclared (first use in this function)
      drivers/media/platform/sh_veu.c:1253:45: note: each undeclared identifier is reported only once for each function it appears in
      drivers/media/platform/sh_veu.c: At top level:
      drivers/media/platform/sh_veu.c:1095:20: warning: 'sh_veu_bh' defined but not used [-Wunused-function]
      drivers/media/platform/sh_veu.c:1109:20: warning: 'sh_veu_isr' defined but not used [-Wunused-function]
      drivers/media/platform/sh_veu.c: In function 'sh_veu_init':
      drivers/media/platform/sh_veu.c:1254:1: warning: control reaches end of non-void function [-Wreturn-type]
      Caused by commit 05efa71b ("[media] media: add a VEU MEM2MEM format
      conversion and scaling driver") interacting with commit 54b956b9
      ("Remove __dev* markings from init.h") from the driver-core.current tree.
      I have applied the following merge fix patch which could be applied
      directly to the v4l-dvb tree (please):
      CONFIG_HOTPLUG is always true now and the __dev* macros have meen removed.
      
      Cc: Guennadi Liakhovetski <g.liakhovetski@gmx.de>
      Signed-off-by: NStephen Rothwell <sfr@canb.auug.org.au>
      Signed-off-by: NMauro Carvalho Chehab <mchehab@redhat.com>
      3151d14a
    • M
      [media] extract_xc3028.pl: fix permissions · 978ae224
      Mauro Carvalho Chehab 提交于
      This is an executable file. Change permissions to reflect it.
      Signed-off-by: NMauro Carvalho Chehab <mchehab@redhat.com>
      978ae224