1. 16 8月, 2012 1 次提交
  2. 10 8月, 2012 1 次提交
  3. 15 5月, 2012 1 次提交
    • H
      [media] v4l: fix compiler warnings · 8173090a
      Hans Verkuil 提交于
      media_build/v4l/adv7343.c: In function 'adv7343_setstd':
      media_build/v4l/adv7343.c:133:6: warning: variable 'output_idx' set but not used [-Wunused-but-set-variable]
      media_build/v4l/tvp5150.c: In function 'tvp5150_mbus_fmt':
      media_build/v4l/tvp5150.c:833:14: warning: variable 'std' set but not used [-Wunused-but-set-variable]
      media_build/v4l/tvp7002.c: In function 'tvp7002_query_dv_preset':
      media_build/v4l/tvp7002.c:673:18: warning: variable 'device' set but not used [-Wunused-but-set-variable]
      media_build/v4l/c-qcam.c: In function 'qc_capture':
      media_build/v4l/c-qcam.c:381:33: warning: variable 'bitsperxfer' set but not used [-Wunused-but-set-variable]
      media_build/v4l/pms.c: In function 'pms_s_std':
      media_build/v4l/pms.c:738:6: warning: variable 'ret' set but not used [-Wunused-but-set-variable]
      media_build/v4l/pms.c: In function 'init_mediavision':
      media_build/v4l/pms.c:959:6: warning: variable 'id' set but not used [-Wunused-but-set-variable]
      media_build/v4l/cx25821-alsa.c: In function 'cx25821_irq':
      media_build/v4l/cx25821-alsa.c:294:6: warning: variable 'audint_count' set but not used [-Wunused-but-set-variable]
      media_build/v4l/zr364xx.c: In function 'zr364xx_fillbuff':
      media_build/v4l/zr364xx.c:510:25: warning: variable 'frm' set but not used [-Wunused-but-set-variable]
      media_build/v4l/s2255drv.c: In function 's2255_fillbuff':
      media_build/v4l/s2255drv.c:637:23: warning: variable 'frm' set but not used [-Wunused-but-set-variable]
      media_build/v4l/s2255drv.c: In function 'vidioc_s_fmt_vid_cap':
      media_build/v4l/s2255drv.c:990:6: warning: variable 'norm' set but not used [-Wunused-but-set-variable]
      media_build/v4l/tm6000-stds.c: In function 'tm6000_set_audio_std':
      media_build/v4l/tm6000-stds.c:341:10: warning: variable 'nicam_flag' set but not used [-Wunused-but-set-variable]
      media_build/v4l/tm6000-video.c: In function 'get_next_buf':
      media_build/v4l/tm6000-video.c:172:8: warning: variable 'outp' set but not used [-Wunused-but-set-variable]
      media_build/v4l/tm6000-video.c: In function 'copy_streams':
      media_build/v4l/tm6000-video.c:214:36: warning: variable 'c' set but not used [-Wunused-but-set-variable]
      media_build/v4l/tm6000-input.c: In function 'tm6000_ir_urb_received':
      media_build/v4l/tm6000-input.c:171:6: warning: variable 'rc' set but not used [-Wunused-but-set-variable]
      media_build/v4l/usbvision-core.c: In function 'usbvision_decompress':
      media_build/v4l/usbvision-core.c:604:23: warning: variable 'max_pos' set but not used [-Wunused-but-set-variable]
      media_build/v4l/usbvision-core.c: In function 'usbvision_parse_compress':
      media_build/v4l/usbvision-core.c:705:39: warning: variable 'rc' set but not used [-Wunused-but-set-variable]
      media_build/v4l/usbvision-core.c:705:22: warning: variable 'bytes_per_pixel' set but not used [-Wunused-but-set-variable]
      media_build/v4l/zoran_device.c: In function 'write_overlay_mask':
      media_build/v4l/zoran_device.c:545:6: warning: variable 'reg' set but not used [-Wunused-but-set-variable]
      media_build/v4l/go7007-v4l2.c: In function 'go7007_streamoff':
      media_build/v4l/go7007-v4l2.c:79:6: warning: variable 'retval' 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>
      8173090a
  4. 14 5月, 2012 1 次提交
    • H
      [media] v4l2-dev: add flag to have the core lock all file operations · 5126f259
      Hans Verkuil 提交于
      This used to be the default if the lock pointer was set, but now that lock is by
      default only used for ioctl serialization. Those drivers that already used
      core locking have this flag set explicitly, except for some drivers where
      it was obvious that there was no need to serialize any file operations other
      than ioctl.
      
      The drivers that didn't need this flag were:
      
      drivers/media/radio/dsbr100.c
      drivers/media/radio/radio-isa.c
      drivers/media/radio/radio-keene.c
      drivers/media/radio/radio-miropcm20.c
      drivers/media/radio/radio-mr800.c
      drivers/media/radio/radio-tea5764.c
      drivers/media/radio/radio-timb.c
      drivers/media/video/vivi.c
      sound/i2c/other/tea575x-tuner.c
      
      The other drivers that use core locking and where it was not immediately
      obvious that this flag wasn't needed were changed so that the flag is set
      together with a comment that that driver needs work to avoid having to
      set that flag. This will often involve taking the core lock in the fops
      themselves.
      
      Eventually this flag should go and it should not be used in new drivers.
      
      There are a few reasons why we want to avoid core locking of non-ioctl
      fops: in the case of mmap this can lead to a deadlock in rare situations
      since when mmap is called the mmap_sem is held and it is possible for
      other parts of the code to take that lock as well (copy_from_user()/copy_to_user()
      perform a down_read(&mm->mmap_sem) when a page fault occurs).
      
      It is very unlikely that that happens since the core lock serializes all
      fops, but the kernel warns about it if lock validation is turned on.
      
      For poll it is also undesirable to take the core lock as that can introduce
      increased latency. The same is true for read/write.
      
      While it was possible to make flags or something to turn on/off taking the
      core lock for each file operation, in practice it is much simpler to just
      not take it at all except for ioctl and leave it to the driver to take the
      lock. There are only a handful fops compared to the zillion ioctls we have.
      
      I also wanted to make it obvious which drivers still take the lock for all
      fops, so that's why I chose to have drivers set it explicitly.
      Signed-off-by: NHans Verkuil <hans.verkuil@cisco.com>
      Acked-by: NHans de Goede <hdegoede@redhat.com>
      Signed-off-by: NMauro Carvalho Chehab <mchehab@redhat.com>
      5126f259
  5. 20 4月, 2012 1 次提交
  6. 11 12月, 2011 2 次提交
  7. 29 11月, 2011 2 次提交
  8. 23 9月, 2011 1 次提交
  9. 01 9月, 2011 5 次提交
  10. 09 7月, 2011 1 次提交
  11. 06 7月, 2011 1 次提交
  12. 29 6月, 2011 1 次提交
  13. 21 5月, 2011 8 次提交
  14. 20 5月, 2011 1 次提交
    • J
      [media] tm6000: fix vbuf may be used uninitialized · cc73b4b5
      Jarod Wilson 提交于
      In commit 8aff8ba9, most of the manipulations to vbuf inside
      copy_streams were gated on if !dev->radio, but one place that touches
      vbuf lays outside those gates -- a memcpy of vbuf isn't NULL. If we
      initialize vbuf to NULL, that memcpy will never happen in the case where
      we do have dev->radio, and otherwise, in the !dev->radio case, the code
      behaves exactly like it did prior to 8aff8ba9.
      
      While we're at it, also fix an incorrectly indented closing brace for
      one of the sections touching vbuf that is conditional on !dev->radio.
      Signed-off-by: NJarod Wilson <jarod@redhat.com>
      Signed-off-by: NMauro Carvalho Chehab <mchehab@redhat.com>
      cc73b4b5
  15. 31 3月, 2011 1 次提交
  16. 23 3月, 2011 1 次提交
    • D
      [media] tm6000: fix s-video input · 2aefbc1a
      Dmitri Belimov 提交于
      Add compatibility for composite and s-video inputs. Some TV cards hasn't
      it.
      
      Fix S-Video input, the s-video cable has only video signals no
      audio. Call the function of audio configure kill chroma in signal. only
      b/w video.
      
      Known bugs:
        - after s-video the audio for radio didn't work, TV crashed hardly
        - after composite TV crashed hardly too.
      
      P.S. After this patch I'll want to rework the procedure of configure
           video. Now it has a lot of junk and dubles.
      
      With my best regards, Dmitry.
      Signed-off-by: NBeholder Intl. Ltd. Dmitry Belimov <d.belimov@gmail.com>
      Signed-off-by: NMauro Carvalho Chehab <mchehab@redhat.com>
      2aefbc1a
  17. 22 3月, 2011 1 次提交
    • D
      [media] tm6000: add radio support to the driver · 8aff8ba9
      Dmitri Belimov 提交于
      Changes:
        Add function tm6000_set_reg_mask for change some bits in regs. Very usefull, simplify some code with this function.
        Add control mute
        Add control volume
        Add control audio input MUX
        Add support radio
      
      Radio works well. TV works too
      
      Known bugs:
        The programm gnomeradio can't set freq for radio, it use old v4l API. Audio over USB works via arecord.
        The programm mplayer can set freq but no any audio
                 mplayer -v -rawaudio rate=48000 radio://105.2/capture driver=v4l2:alsa:adevice=hw.1,0:amode=1:audiorate=48000:forceaudio:immediatemode=0
        When start watch TV very shortly after radio the kernel crashed hardly. Didn't stop all USB URBs, need some time for stop.
      
      [mchehab@redhat.com: fix merge conflicts]
      Signed-off-by: NBeholder Intl. Ltd. Dmitry Belimov <d.belimov@gmail.com>
      Signed-off-by: NMauro Carvalho Chehab <mchehab@redhat.com>
      8aff8ba9
  18. 19 1月, 2011 1 次提交
  19. 29 12月, 2010 2 次提交
  20. 10 11月, 2010 1 次提交
  21. 21 10月, 2010 6 次提交