1. 09 7月, 2016 1 次提交
  2. 24 6月, 2016 1 次提交
    • M
      cx25821-alsa: shutup a Gcc 6.1 warning · 114e877a
      Mauro Carvalho Chehab 提交于
      The PCI device ID table is only used if compiled with modules
      support. When compiled with modules disabled, this is now
      producing this bogus warning:
      
      drivers/media/pci/cx25821/cx25821-alsa.c:696:35: warning: 'cx25821_audio_pci_tbl' defined but not used [-Wunused-const-variable=]
       static const struct pci_device_id cx25821_audio_pci_tbl[] = {
                                         ^~~~~~~~~~~~~~~~~~~~~
      
      Fix it by annotating that the function may not be used.
      Signed-off-by: NMauro Carvalho Chehab <mchehab@s-opensource.com>
      114e877a
  3. 18 12月, 2015 2 次提交
  4. 21 11月, 2015 1 次提交
  5. 11 11月, 2015 1 次提交
  6. 21 10月, 2015 1 次提交
  7. 01 10月, 2015 2 次提交
  8. 26 5月, 2015 1 次提交
  9. 14 5月, 2015 1 次提交
  10. 23 12月, 2014 5 次提交
  11. 25 11月, 2014 1 次提交
  12. 03 9月, 2014 1 次提交
  13. 17 7月, 2014 1 次提交
    • L
      [media] v4l: Support extending the v4l2_pix_format structure · d52e2381
      Laurent Pinchart 提交于
      The v4l2_pix_format structure has no reserved field. It is embedded in
      the v4l2_framebuffer structure which has no reserved fields either, and
      in the v4l2_format structure which has reserved fields that were not
      previously required to be zeroed out by applications.
      
      To allow extending v4l2_pix_format, inline it in the v4l2_framebuffer
      structure, and use the priv field as a magic value to indicate that the
      application has set all v4l2_pix_format extended fields and zeroed all
      reserved fields following the v4l2_pix_format field in the v4l2_format
      structure.
      
      The availability of this API extension is reported to userspace through
      the new V4L2_CAP_EXT_PIX_FORMAT capability flag. Just checking that the
      priv field is still set to the magic value at [GS]_FMT return wouldn't
      be enough, as older kernels don't zero the priv field on return.
      
      To simplify the internal API towards drivers zero the extended fields
      and set the priv field to the magic value for applications not aware of
      the extensions.
      Signed-off-by: NLaurent Pinchart <laurent.pinchart+renesas@ideasonboard.com>
      Signed-off-by: NMauro Carvalho Chehab <m.chehab@samsung.com>
      d52e2381
  14. 05 7月, 2014 1 次提交
  15. 14 2月, 2014 1 次提交
  16. 11 12月, 2013 1 次提交
  17. 17 10月, 2013 1 次提交
    • H
      [media] cx25821: fix sparse warnings · 60b3b4d2
      Hans Verkuil 提交于
      drivers/media/pci/cx25821/cx25821-cards.c:49:20: warning: symbol 'cx25821_bcount' was not declared. Should it be static?
      drivers/media/pci/cx25821/cx25821-video-upstream.c:162:33: warning: incorrect type in assignment (different base types)
      drivers/media/pci/cx25821/cx25821-video-upstream.c:163:33: warning: incorrect type in assignment (different base types)
      drivers/media/pci/cx25821/cx25821-video-upstream.c:164:33: warning: incorrect type in assignment (different base types)
      drivers/media/pci/cx25821/cx25821-video-upstream.c:165:33: warning: incorrect type in assignment (different base types)
      drivers/media/pci/cx25821/cx25821-medusa-video.h:43:16: warning: symbol '_num_decoders' was not declared. Should it be static?
      drivers/media/pci/cx25821/cx25821-medusa-video.h:44:16: warning: symbol '_num_cameras' was not declared. Should it be static?
      drivers/media/pci/cx25821/cx25821-medusa-video.h:46:14: warning: symbol '_video_standard' was not declared. Should it be static?
      drivers/media/pci/cx25821/cx25821-medusa-video.h:47:5: warning: symbol '_display_field_cnt' was not declared. Should it be static?
      After analyzing the last four warnings carefully it became clear that these
      variables were really completely unused. As a result of that the call to
      medusa_set_decoderduration() is now dubious since the duration is always 0.
      Without documentation, however, I can't tell what the right value is.
      Signed-off-by: NHans Verkuil <hans.verkuil@cisco.com>
      Signed-off-by: NMauro Carvalho Chehab <m.chehab@samsung.com>
      60b3b4d2
  18. 26 4月, 2013 3 次提交
    • M
      [media] cx25821-alsa: get rid of a __must_check warning · f327cabf
      Mauro Carvalho Chehab 提交于
      The hole reason for __must_check is to not ignore an error.
      
      However, a "ret" value is used at cx25821 just to avoid the
      Kernel compilation to compain about it.
      
      That, however, produces another warning (with W=1):
      
      drivers/media/pci/cx25821/cx25821-alsa.c: In function 'cx25821_audio_fini':
      drivers/media/pci/cx25821/cx25821-alsa.c:727:6: warning: variable 'ret' set but not used [-Wunused-but-set-variable]
      
      With the current implementation of driver_for_each_device() and
      cx25821_alsa_exit_callback(), there's actually just one
      very unlikely condition where it will currently produce
      an error: if driver_find() returns NULL.
      
      Ok, there's not much that can be done, as it is on a driver's
      function that returns void, but it can at least print some message
      if the error happens.
      Signed-off-by: NMauro Carvalho Chehab <mchehab@redhat.com>
      f327cabf
    • M
      [media] cx25821-video: declare cx25821_vidioc_s_std as static · a3f17af2
      Mauro Carvalho Chehab 提交于
      Fixes the following warning:
      
      	drivers/media/pci/cx25821/cx25821-video.c: At top level:
      	drivers/media/pci/cx25821/cx25821-video.c:766:5: warning: no previous prototype for 'cx25821_vidioc_s_std' [-Wmissing-prototypes]
      Signed-off-by: NMauro Carvalho Chehab <mchehab@redhat.com>
      a3f17af2
    • M
      [media] cx25821-video: remove maxw from cx25821_vidioc_try_fmt_vid_cap · 66f93178
      Mauro Carvalho Chehab 提交于
      After cx25821-video cleanup, this var is not used anymore:
      
      drivers/media/pci/cx25821/cx25821-video.c: In function 'cx25821_vidioc_try_fmt_vid_cap':
      drivers/media/pci/cx25821/cx25821-video.c:591:15: warning: variable 'maxw' set but not used [-Wunused-but-set-variable]
      
      as the code now checks the max width as the default case for the
      range check.
      Signed-off-by: NMauro Carvalho Chehab <mchehab@redhat.com>
      66f93178
  19. 17 4月, 2013 14 次提交