1. 17 6月, 2014 12 次提交
    • M
      [media] dib8000: rename dib8000_attach to dib8000_init · b9bc7d59
      Mauro Carvalho Chehab 提交于
      Well, what we call as "foo_attach" is the method that should
      be called by the dvb_attach() macro.
      
      It should be noticed that the name "dvb_attach" is really a
      bad name and don't express what it does.
      
      dvb_attach() basically does three things, if the frontend is
      compiled as a module:
      - It lookups for the module that it is known to have the
        given symbol name and requests such module;
      - It increments the module usage (anonymously - so lsmod
        doesn't print who loaded the module);
      - after loading the module, it runs the function associated
        with the dynamic symbol.
      
      When compiled as builtin, it just calls the function given to it.
      
      As dvb_attach() increments refcount, it can't be (easily)
      called more than once for the same module, or the kernel
      will deny to remove the module, because refcount will never
      be zeroed.
      
      In other words, the function name given to dvb_attach()
      should be one single symbol that will always be called
      before any other function on that module to be used.
      
      For almost all DVB frontends, there's just one function,
      but, on dib8000, there are several exported symbols.
      
      We need to get rid of all those direct calls, because they
      cause compilation breakages when bridge is builtin and
      frontend is module, we'll need to add a new function that
      will be the first one to be called, whatever initialization
      is needed.
      
      So, let's rename this function, in order to prepare for
      a next patch that will add a new attach() function that
      will be the only one exported by this module.
      Signed-off-by: NMauro Carvalho Chehab <m.chehab@samsung.com>
      b9bc7d59
    • M
      [media] dib7000: export just one symbol · 8abe4a0a
      Mauro Carvalho Chehab 提交于
      Exporting multiple symbols don't work as it causes compilation
      breakages, due to the way dvb_attach() works.
      
      This were reported several times, like:
      
         drivers/built-in.o: In function `cxusb_dualdig4_rev2_tuner_attach':
      >> cxusb.c:(.text+0x27d4b5): undefined reference to `dib7000p_get_i2c_master'
         drivers/built-in.o: In function `dib7070_set_param_override':
         cxusb.c:(.text+0x27d5a5): undefined reference to `dib0070_wbd_offset'
      >> cxusb.c:(.text+0x27d5be): undefined reference to `dib7000p_set_wbd_ref'
         drivers/built-in.o: In function `dib7070_tuner_reset':
      >> cxusb.c:(.text+0x27d5f9): undefined reference to `dib7000p_set_gpio'
         drivers/built-in.o: In function `cxusb_dualdig4_rev2_frontend_attach':
      >> cxusb.c:(.text+0x27df5c): undefined reference to `dib7000p_i2c_enumeration'
      
      In this specific report:
      	CONFIG_DVB_USB_CXUSB=y
      	CONFIG_DVB_DIB7000P=m
      
      But the same type of bug can happen if:
      	CONFIG_DVB_DIB7000P=m
      and one of the bridge drivers is compiled builtin (cxusb, cx23885-dvb
      and/or dib0700).
      
      As a bonus, dib7000p won't be loaded anymore if the device uses
      a different frontend, reducing the memory footprint.
      
      Tested with Hauppauge Nova-TD (2 frontends).
      Reported-by: NFengguang Wu <fengguang.wu@intel.com>
      Signed-off-by: NMauro Carvalho Chehab <m.chehab@samsung.com>
      8abe4a0a
    • M
      [media] dib7000p: rename dib7000p_attach to dib7000p_init · 7f67d96a
      Mauro Carvalho Chehab 提交于
      Well, what we call as "foo_attach" is the method that should
      be called by the dvb_attach() macro.
      
      It should be noticed that the name "dvb_attach" is really a
      bad name and don't express what it does.
      
      dvb_attach() basically does three things, if the frontend is
      compiled as a module:
      - It lookups for the module that it is known to have the
        given symbol name and requests such module;
      - It increments the module usage (anonymously - so lsmod
        doesn't print who loaded the module);
      - after loading the module, it runs the function associated
        with the dynamic symbol.
      
      When compiled as builtin, it just calls the function given to it.
      
      As dvb_attach() increments refcount, it can't be (easily)
      called more than once for the same module, or the kernel
      will deny to remove the module, because refcount will never
      be zeroed.
      
      In other words, the function name given to dvb_attach()
      should be one single symbol that will always be called
      before any other function on that module to be used.
      
      For almost all DVB frontends, there's just one function.
      
      However, the dib7000p initialization can require up to 3
      functions to be called:
      	- dib7000p_get_i2c_master;
      	- dib7000p_i2c_enumeration;
      	- dib7000p_init (before this patch dib7000_attach).
      
      (plus a bunch of other functions that the bridge driver will
      need to call).
      
      As we need to get rid of all those direct calls, because they
      cause compilation breakages when bridge is builtin and
      frontend is module, we'll need to add a new function that
      will be the first one to be called, whatever initialization
      is needed.
      
      So, let's rename the function that probes and init the hardware
      to dib7000p_init.
      
      A latter patch will add a new dib7000p_attach that will be
      used as originally conceived by dvb_attach() way.
      Signed-off-by: NMauro Carvalho Chehab <m.chehab@samsung.com>
      7f67d96a
    • M
      [media] dvbdev: add a dvb_detach() macro · 4647f487
      Mauro Carvalho Chehab 提交于
      The dvb_attach() was unbalanced, as there was no dvb_dettach. Ok,
      on current cases, the dettach is done by dvbdev, but that are some
      future corner cases where we may need to do this before registering
      the frontend.
      
      So, add a dvb_detach() and use it at dvb_frontend.c.
      Signed-off-by: NMauro Carvalho Chehab <m.chehab@samsung.com>
      4647f487
    • M
      [media] lmedm04: rs2000 check if interrupt urb is over due · 3a370222
      Malcolm Priestley 提交于
      Change handling of signal_lock on rs2000. Use ibuf[2] to detect
      lock as there is a longer wait for lock to appear in ibuf[6].
      
      Remove last_key and key_timeout and use jiffies plus 60ms
      to detect that streaming is still active.
      
      If the current jiffies is time_after the interrupt urb overdue and
      clear signal lock.
      
      This results in far faster recovery of lock and streaming.
      Signed-off-by: NMalcolm Priestley <tvboxspy@gmail.com>
      Signed-off-by: NMauro Carvalho Chehab <m.chehab@samsung.com>
      3a370222
    • A
      [media] m2m-deinterlace: Convert to devm* API · 3c1e7f27
      Alexander Shiyan 提交于
      Replace resource handling in the driver with managed device resource.
      Signed-off-by: NAlexander Shiyan <shc_work@mail.ru>
      Signed-off-by: NMauro Carvalho Chehab <m.chehab@samsung.com>
      3c1e7f27
    • A
      [media] usbtv: fix leak at failure path in usbtv_probe() · ebdae650
      Alexey Khoroshilov 提交于
      Error handling code in usbtv_probe() misses usb_put_dev().
      
      Found by Linux Driver Verification project (linuxtesting.org).
      Signed-off-by: NAlexey Khoroshilov <khoroshilov@ispras.ru>
      Acked-by: NLubomir Rintel <lkundrak@v3.sk>
      Signed-off-by: NMauro Carvalho Chehab <m.chehab@samsung.com>
      ebdae650
    • S
      [media] smiapp: I2C address is the last part of the subdev name · f8d36b89
      Sakari Ailus 提交于
      The I2C address of the sensor device was in the middle of the sub-device
      name and not in the end as it should have been. The smiapp sub-device names
      will change from e.g. "vs6555 1-0010 pixel array" to "vs6555 pixel array
      1-0010".
      Signed-off-by: NSakari Ailus <sakari.ailus@linux.intel.com>
      Signed-off-by: NMauro Carvalho Chehab <m.chehab@samsung.com>
      f8d36b89
    • L
      [media] media: davinci: vpif_capture: fix v4l-compliance issues · a4965c59
      Lad, Prabhakar 提交于
      This patch does the following:
      
      1: sets initial default format during probe.
      2: removes spurious messages.
      3: optimize vpif_s/try_fmt_vid_out code.
      Signed-off-by: NLad, Prabhakar <prabhakar.csengg@gmail.com>
      Signed-off-by: NHans Verkuil <hans.verkuil@cisco.com>
      Signed-off-by: NMauro Carvalho Chehab <m.chehab@samsung.com>
      a4965c59
    • L
      [media] media: davinci: vpif_capture: drop unneeded module params · 4015bef6
      Lad, Prabhakar 提交于
      Remove bogus 'numbuffers' and 'bufsize' module options. The number of buffers and
      buffer sizes are determined by VIDIOC_REQBUFS and VIDIOC_S_FMT and the amount of
      available memory (in the case of the MMAP stream I/O mode) and not by module
      options.
      
      These module params are a left-over from the original montavista code that used
      these parameters to pre-allocate the memory needed for the buffers. The code that
      allocated those buffers was never upstreamed since by the time the drivers were
      added to the kernel the TI cmem module could be used in combination with the
      USERPTR mode to reserve and pass physically contiguous memory pointers around.
      
      These days of course CMA is used instead of cmem.
      
      This patch removes these module options altogether since they no longer do what
      they originally were designed for. They should never have been part of the
      upstreamed code in the first place, so they've been pointless ever since
      2.6.32 when this driver first appeared in the mainline kernel.
      Signed-off-by: NLad, Prabhakar <prabhakar.csengg@gmail.com>
      Signed-off-by: NHans Verkuil <hans.verkuil@cisco.com>
      Signed-off-by: NMauro Carvalho Chehab <m.chehab@samsung.com>
      4015bef6
    • M
      [media] drxd: get rid of EXPORT_SYMBOL(drxd_config_i2c) · 619c027d
      Mauro Carvalho Chehab 提交于
      This symbol is not used externally. Get rid of it.
      Signed-off-by: NMauro Carvalho Chehab <m.chehab@samsung.com>
      619c027d
    • L
      [media] v4l: vsp1: Remove the unneeded vsp1_video_buffer video field · e51daefc
      Laurent Pinchart 提交于
      The field is assigned but never read, remove it.
      
      This fixes a bug caused by the struct vb2_buffer field not being be the
      very first field of the vsp1_video_buffer buffer structure as required
      by videobuf2.
      
      Cc: stable@vger.kernel.org
      Reported-by: NTakanari Hayama <taki@igel.co.jp>
      Signed-off-by: NLaurent Pinchart <laurent.pinchart@ideasonboard.com>
      Signed-off-by: NMauro Carvalho Chehab <m.chehab@samsung.com>
      e51daefc
  2. 15 6月, 2014 1 次提交
  3. 14 6月, 2014 2 次提交
  4. 13 6月, 2014 14 次提交
  5. 12 6月, 2014 11 次提交