1. 15 5月, 2012 2 次提交
    • A
      [media] media/rc: IR_SONY_DECODER depends on BITREVERSE · b66d2086
      Arnd Bergmann 提交于
      The IR sony decoder is making use of 'bitrev8' that,
      in turn, requires BITREVERSE.
      Signed-off-by: NArnd Bergmann <arnd@arndb.de>
      Signed-off-by: NMathieu Poirier <mathieu.poirier@linaro.org>
      Signed-off-by: NMauro Carvalho Chehab <mchehab@redhat.com>
      b66d2086
    • H
      [media] v4l/dvb: fix compiler warnings · 5becbc58
      Hans Verkuil 提交于
      media_build/v4l/drxk_hard.c: In function 'DownloadMicrocode':
      media_build/v4l/drxk_hard.c:1388:6: warning: variable 'BlockCRC' set but not used [-Wunused-but-set-variable]
      media_build/v4l/drxk_hard.c:1384:6: warning: variable 'Drain' set but not used [-Wunused-but-set-variable]
      media_build/v4l/drxk_hard.c:1383:6: warning: variable 'Flags' set but not used [-Wunused-but-set-variable]
      media_build/v4l/lmedm04.c: In function 'lme2510_probe':
      media_build/v4l/lmedm04.c:1208:6: warning: variable 'ret' set but not used [-Wunused-but-set-variable]
      media_build/v4l/hopper_cards.c: In function 'hopper_irq_handler':
      media_build/v4l/hopper_cards.c:68:26: warning: variable 'lstat' set but not used [-Wunused-but-set-variable]
      media_build/v4l/mantis_cards.c: In function 'mantis_irq_handler':
      media_build/v4l/mantis_cards.c:76:26: warning: variable 'lstat' set but not used [-Wunused-but-set-variable]
      media_build/v4l/mantis_dma.c: In function 'mantis_dma_stop':
      media_build/v4l/mantis_dma.c:202:16: warning: variable 'mask' set but not used [-Wunused-but-set-variable]
      media_build/v4l/mantis_dma.c:202:6: warning: variable 'stat' set but not used [-Wunused-but-set-variable]
      media_build/v4l/mantis_evm.c: In function 'mantis_hifevm_work':
      media_build/v4l/mantis_evm.c:44:17: warning: variable 'gpif_mask' set but not used [-Wunused-but-set-variable]
      media_build/v4l/stb0899_drv.c: In function 'stb0899_init_calc':
      media_build/v4l/stb0899_drv.c:640:5: warning: variable 'agc1cn' set but not used [-Wunused-but-set-variable]
      media_build/v4l/stb0899_drv.c: In function 'stb0899_diseqc_init':
      media_build/v4l/stb0899_drv.c:830:13: warning: variable 'f22_rx' set but not used [-Wunused-but-set-variable]
      media_build/v4l/stb0899_drv.c:826:31: warning: variable 'tx_data' set but not used [-Wunused-but-set-variable]
      media_build/v4l/stv0900_sw.c: In function 'stv0900_track_optimization':
      media_build/v4l/stv0900_sw.c:838:26: warning: variable 'rolloff' set but not used [-Wunused-but-set-variable]
      media_build/v4l/ir-sanyo-decoder.c: In function 'ir_sanyo_decode':
      media_build/v4l/ir-sanyo-decoder.c:59:14: warning: variable 'not_address' set but not used [-Wunused-but-set-variable]
      media_build/v4l/mceusb.c: In function 'mceusb_dev_printdata':
      media_build/v4l/mceusb.c:523:46: warning: variable 'data5' set but not used [-Wunused-but-set-variable]
      Signed-off-by: NHans Verkuil <hans.verkuil@cisco.com>
      Signed-off-by: NMauro Carvalho Chehab <mchehab@redhat.com>
      5becbc58
  2. 11 4月, 2012 3 次提交
    • A
      [media] ati_remote: add support for Medion X10 Digitainer remote · 9d454d48
      Anssi Hannula 提交于
      Add support for another Medion X10 remote. This was apparently
      originally used with the Medion Digitainer box, but is now sold
      separately without any Digitainer labeling.
      
      A peculiarity of this remote is a scrollwheel in place of up/down
      buttons. Each direction is mapped to 8 different scancodes, each
      corresponding to 1..8 notches, allowing multiple notches to the same
      direction to be transmitted in a single scancode. The driver transforms
      the multi-notch scancodes to multiple events of the single-notch
      scancode.
      (0x70..0x77 = 1..8 notches down, 0x78..0x7f = 1..8 notches up)
      
      Since the scrollwheel scancodes are the same that are used for mouse on
      some other X10 (ati_remote) remotes, the driver will now check whether
      the active keymap has a keycode defined for the single-notch scancode
      when a mouse/scrollwheel scancode (0x70..0x7f) is received. If set,
      scrollwheel is assumed, otherwise mouse is assumed.
      
      This remote ships with a different receiver than the already supported
      Medion X10 remote, but they share the same USB ID. The only difference
      in the USB descriptors is that the Digitainer receiver has the Remote
      Wakeup bit set in bmAttributes of the Configuration Descriptor.
      Therefore that is used to select the default keymap.
      
      Thanks to Stephan Raue from OpenELEC (www.openelec.tv) for providing me
      both a Medion X10 Digitainer remote+receiver and an already supported
      Medion X10 remote+receiver. Thanks to Martin Beyss for providing some
      useful information about the remote (including the "Digitainer" name).
      This patch has been tested by both of them and myself.
      Signed-off-by: NAnssi Hannula <anssi.hannula@iki.fi>
      Tested-by: NStephan Raue <stephan@openelec.tv>
      Tested-by: NMartin Beyss <Martin.Beyss@rwth-aachen.de>
      Signed-off-by: NMauro Carvalho Chehab <mchehab@redhat.com>
      9d454d48
    • A
      [media] ati_remote: allow specifying a default keymap selector function · 0d74679c
      Anssi Hannula 提交于
      Currently the ati_remote default keymap is selected directly based on
      the USB device id.
      
      Add support for instead specifying a function returning the default
      keymap, allowing more complex selection logic to be added when needed.
      
      This will be used for Medion X10 remotes in a following commit.
      Signed-off-by: NAnssi Hannula <anssi.hannula@iki.fi>
      Signed-off-by: NMauro Carvalho Chehab <mchehab@redhat.com>
      0d74679c
    • S
      [media] [3.3.0] ir-raw: remove BUG_ON in ir_raw_event_thread · 004ac388
      Srinivas Kandagatla 提交于
      This patch removes BUG_ON in ir_raw_event_thread which IMO is a
      over-kill, and this kills the ir_raw_event_thread too. With a bit of
      additional logic in this patch, we nomore need to kill this thread.
      Other disadvantage of having a BUG-ON is,
      wake_up_process(dev->raw->thread) called on dead thread via
      ir_raw_event_handle will result in total lockup in SMP system.
      
      Advantage of this patch is ir-raw event thread is left in a usable state
      even if the fifo does not have enough bytes.
      
      This patch sets the thread into TASK_INTERRUPTIBLE if raw-fifo has less
      then sizeof(struct ir_raw_event) bytes.
      Signed-off-by: NSrinivas Kandagatla <srinivas.kandagatla@st.com>
      Signed-off-by: NMauro Carvalho Chehab <mchehab@redhat.com>
      004ac388
  3. 20 3月, 2012 3 次提交
  4. 08 3月, 2012 4 次提交
  5. 15 2月, 2012 2 次提交
  6. 27 1月, 2012 1 次提交
    • J
      [media] imon: don't wedge hardware after early callbacks · 8791d63a
      Jarod Wilson 提交于
      This patch is just a minor update to one titled "imon: Input from ffdc
      device type ignored" from Corinna Vinschen. An earlier patch to prevent
      an oops when we got early callbacks also has the nasty side-effect of
      wedging imon hardware, as we don't acknowledge the urb. Rework the check
      slightly here to bypass processing the packet, as the driver isn't yet
      fully initialized, but still acknowlege the urb and submit a new rx_urb.
      Do this for both interfaces -- irrelevant for ffdc hardware, but
      relevant for newer hardware, though newer hardware doesn't spew the
      constant stream of data as soon as the hardware is initialized like the
      older ffdc devices, so they'd be less likely to trigger this anyway...
      
      Tested with both an ffdc device and an 0042 device.
      Reported-by: NCorinna Vinschen <vinschen@redhat.com>
      Signed-off-by: NJarod Wilson <jarod@redhat.com>
      CC: stable@vger.kernel.org
      Signed-off-by: NMauro Carvalho Chehab <mchehab@redhat.com>
      8791d63a
  7. 21 1月, 2012 1 次提交
  8. 13 1月, 2012 1 次提交
  9. 11 1月, 2012 1 次提交
  10. 04 1月, 2012 1 次提交
  11. 02 1月, 2012 1 次提交
  12. 11 12月, 2011 1 次提交
  13. 06 12月, 2011 1 次提交
  14. 25 11月, 2011 1 次提交
  15. 24 11月, 2011 4 次提交
  16. 20 11月, 2011 1 次提交
  17. 19 11月, 2011 1 次提交
    • G
      USB: convert drivers/media/* to use module_usb_driver() · ecb3b2b3
      Greg Kroah-Hartman 提交于
      This converts the drivers in drivers/media/* to use the
      module_usb_driver() macro which makes the code smaller and a bit
      simpler.
      
      Added bonus is that it removes some unneeded kernel log messages about
      drivers loading and/or unloading.
      
      Cc: Mauro Carvalho Chehab <mchehab@infradead.org>
      Cc: Luca Risolia <luca.risolia@studio.unibo.it>
      Cc: Jean-Francois Moine <moinejf@free.fr>
      Cc: Frank Zago <frank@zago.net>
      Cc: Olivier Lorin <o.lorin@laposte.net>
      Cc: Erik Andren <erik.andren@gmail.com>
      Cc: Hans de Goede <hdegoede@redhat.com>
      Cc: Brian Johnson <brijohn@gmail.com>
      Cc: Leandro Costantino <lcostantino@gmail.com>
      Cc: Antoine Jacquet <royale@zerezo.com>
      Cc: Jarod Wilson <jarod@redhat.com>
      Cc: Florian Mickler <florian@mickler.org>
      Cc: Antti Palosaari <crope@iki.fi>
      Cc: Michael Krufky <mkrufky@kernellabs.com>
      Cc: "David Härdeman" <david@hardeman.nu>
      Cc: Florent Audebert <florent.audebert@anevia.com>
      Cc: Sam Doshi <sam@metal-fish.co.uk>
      Cc: Manu Abraham <manu@linuxtv.org>
      Cc: Olivier Grenie <olivier.grenie@dibcom.fr>
      Cc: Patrick Boettcher <patrick.boettcher@dibcom.fr>
      Cc: "Igor M. Liplianin" <liplianin@me.by>
      Cc: Derek Kelly <user.vdr@gmail.com>
      Cc: Malcolm Priestley <tvboxspy@gmail.com>
      Cc: Steven Toth <stoth@kernellabs.com>
      Cc: "André Weidemann" <Andre.Weidemann@web.de>
      Cc: Martin Wilks <m.wilks@technisat.com>
      Cc: Tejun Heo <tj@kernel.org>
      Cc: Jose Alberto Reguero <jareguero@telefonica.net>
      Cc: David Henningsson <david.henningsson@canonical.com>
      Cc: Paul Gortmaker <paul.gortmaker@windriver.com>
      Cc: Joe Perches <joe@perches.com>
      Cc: Jesper Juhl <jj@chaosbits.net>
      Cc: Lucas De Marchi <lucas.demarchi@profusion.mobi>
      Cc: Hans Verkuil <hans.verkuil@cisco.com>
      Cc: Alexey Khoroshilov <khoroshilov@ispras.ru>
      Cc: Anssi Hannula <anssi.hannula@iki.fi>
      Cc: Rafi Rubin <rafi@seas.upenn.edu>
      Cc: Dan Carpenter <error27@gmail.com>
      Cc: Paul Bender <pebender@gmail.com>
      Cc: Devin Heitmueller <dheitmueller@kernellabs.com>
      Cc: "Márcio A Alves" <froooozen@gmail.com>
      Cc: Julia Lawall <julia@diku.dk>
      Cc: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
      Cc: Chris Rankin <rankincj@yahoo.com>
      Cc: Lee Jones <lee.jones@canonical.com>
      Cc: Andy Walls <awalls@md.metrocast.net>
      Cc: Andrew Morton <akpm@linux-foundation.org>
      Cc: Mike Frysinger <vapier@gentoo.org>
      Cc: Dean Anderson <linux-dev@sensoray.com>
      Cc: Pete Eberlein <pete@sensoray.com>
      Cc: Arvydas Sidorenko <asido4@gmail.com>
      Cc: Andrea Anacleto <andreaanacleto@libero.it>
      Signed-off-by: NGreg Kroah-Hartman <gregkh@suse.de>
      ecb3b2b3
  18. 01 11月, 2011 3 次提交
  19. 12 10月, 2011 1 次提交
  20. 24 9月, 2011 2 次提交
    • P
      [media] media, rc: Use static inline functions to kill warnings · 600836cc
      Pekka Enberg 提交于
      This patch converts some ifdef'd wrapper functions from macros to static inline
      functions to kill the following warnings issued by GCC:
      
          CC [M]  drivers/media/rc/ir-raw.o
        drivers/media/rc/ir-raw.c: In function ‘init_decoders’:
        drivers/media/rc/ir-raw.c:353:2: warning: statement with no effect [-Wunused-value]
        drivers/media/rc/ir-raw.c:354:2: warning: statement with no effect [-Wunused-value]
        drivers/media/rc/ir-raw.c:355:2: warning: statement with no effect [-Wunused-value]
        drivers/media/rc/ir-raw.c:356:2: warning: statement with no effect [-Wunused-value]
        drivers/media/rc/ir-raw.c:357:2: warning: statement with no effect [-Wunused-value]
        drivers/media/rc/ir-raw.c:359:2: warning: statement with no effect [-Wunused-value]
      
      Cc: Mauro Carvalho Chehab <mchehab@infradead.org>
      Cc: "David Härdeman" <david@hardeman.nu>
      Cc: Jarod Wilson <jarod@redhat.com>
      Cc: <linux-media@vger.kernel.org>
      Signed-off-by: NPekka Enberg <penberg@kernel.org>
      Signed-off-by: NMauro Carvalho Chehab <mchehab@redhat.com>
      600836cc
    • M
      [media] rc tables: include linux/module.h · 547d42ea
      Mauro Carvalho Chehab 提交于
      Prevents errors when merging with -next:
      
      drivers/media/rc/keymaps/rc-snapstream-firefly.c:105:16: error: expected declaration specifiers or ‘...’ before string constant
      drivers/media/rc/keymaps/rc-snapstream-firefly.c:106:15: error: expected declaration specifiers or ‘...’ before string constant
      Signed-off-by: NMauro Carvalho Chehab <mchehab@redhat.com>
      547d42ea
  21. 22 9月, 2011 5 次提交