1. 11 1月, 2016 3 次提交
    • M
      [media] usb: check media device errors · 9f806795
      Mauro Carvalho Chehab 提交于
      There are now two new warnings:
      
      drivers/media/usb/dvb-usb-v2/dvb_usb_core.c: In function 'dvb_usbv2_media_device_register':
      drivers/media/usb/dvb-usb-v2/dvb_usb_core.c:433:2: warning: ignoring return value of '__media_device_register', declared with attribute warn_unused_result [-Wunused-result]
        media_device_register(adap->dvb_adap.mdev);
        ^
      drivers/media/usb/dvb-usb/dvb-usb-dvb.c: In function 'dvb_usb_media_device_register':
      drivers/media/usb/dvb-usb/dvb-usb-dvb.c:128:2: warning: ignoring return value of '__media_device_register', declared with attribute warn_unused_result [-Wunused-result]
        media_device_register(adap->dvb_adap.mdev);
        ^
      
      Those are because the drivers are not properly checking if the
      media device init and register were succeeded.
      
      Fix it.
      Signed-off-by: NMauro Carvalho Chehab <mchehab@osg.samsung.com>
      9f806795
    • J
      [media] media-device: split media initialization and registration · 9832e155
      Javier Martinez Canillas 提交于
      The media device node is registered and so made visible to user-space
      before entities are registered and links created which means that the
      media graph obtained by user-space could be only partially enumerated
      if that happens too early before all the graph has been created.
      
      To avoid this race condition, split the media init and registration
      in separate functions and only register the media device node when
      all the pending subdevices have been registered, either explicitly
      by the driver or asynchronously using v4l2_async_register_subdev().
      
      The media_device_register() had a check for drivers not filling dev
      and model fields but all drivers in mainline set them and not doing
      it will be a driver bug so change the function return to void and
      add a BUG_ON() for dev being NULL instead.
      
      Also, add a media_device_cleanup() function that will destroy the
      graph_mutex that is initialized in media_device_init().
      
      [mchehab@osg.samsung.com: Fix compilation if !CONFIG_MEDIA_CONTROLLER
       and remove two warnings added by this changeset]
      Suggested-by: NSakari Ailus <sakari.ailus@linux.intel.com>
      Signed-off-by: NJavier Martinez Canillas <javier@osg.samsung.com>
      Acked-by: NSakari Ailus <sakari.ailus@linux.intel.com>
      Signed-off-by: NMauro Carvalho Chehab <mchehab@osg.samsung.com>
      9832e155
    • M
      [media] dvb core: must check dvb_create_media_graph() · 0d3ab841
      Mauro Carvalho Chehab 提交于
      If media controller is enabled and mdev is filled, it should
      ensure that the media graph will be properly initialized.
      
      Enforce that.
      Acked-by: NHans Verkuil <hans.verkuil@cisco.com>
      Signed-off-by: NMauro Carvalho Chehab <mchehab@osg.samsung.com>
      0d3ab841
  2. 08 4月, 2015 1 次提交
  3. 02 3月, 2015 3 次提交
  4. 26 2月, 2015 2 次提交
  5. 14 8月, 2012 2 次提交
  6. 06 1月, 2012 1 次提交
  7. 21 9月, 2011 1 次提交
  8. 10 9月, 2011 2 次提交
    • M
      [media] dvb-usb: improve sanity check of adap->active_fe in dvb_usb_ctrl_feed · 2d04c13a
      Michael Krufky 提交于
      The check for (adap->active_fe < 0) at the top of dvb_usb_ctrl_feed is a sanity
      check to ensure that adap->active_fe is valid.  Improve that sanity check
      by also checking for (adap->active_fe >= adap->num_frontends_initialized)
      Signed-off-by: NMichael Krufky <mkrufky@kernellabs.com>
      Signed-off-by: NMauro Carvalho Chehab <mchehab@redhat.com>
      2d04c13a
    • M
      [media] dvb-usb: fix streaming failure on channel change · 4b5d01e9
      Michael Krufky 提交于
      This fixes a bug introduced by a previous changeset entitled,
      [media] dvb-usb: refactor MFE code for individual streaming config per frontend
      
      As reported by Antti Palosaari, This error is shown by VLC when channel changed:
      
      [0x7f1bbc000cd0] dvb access error: DMXSetFilter: failed with -1 (Invalid argument)
      [0x7f1bbc000cd0] dvb access error: DMXSetFilter failed
      [0x7f1bbc32f910] main stream error: cannot pre fill buffer
      
      After my own investigations, I've determined that this error case occurs when
      the application stops streaming but leaves the frontend and dvr devices open.
      A typical example of this usage would be a channel change operation while
      watching live television. The error occurs when the application attempts to
      stream after tuning to the new channel.
      
      To prevent this error, don't set adap->active_fe to -1 unless the application
      closes the device.
      
      Cc: Antti Palosaari <crope@iki.fi>
      Signed-off-by: NMichael Krufky <mkrufky@kernellabs.com>
      Signed-off-by: NMauro Carvalho Chehab <mchehab@redhat.com>
      4b5d01e9
  9. 07 9月, 2011 1 次提交
  10. 31 7月, 2011 2 次提交
  11. 20 5月, 2011 2 次提交
  12. 06 12月, 2009 1 次提交
  13. 28 10月, 2008 1 次提交
  14. 25 4月, 2008 1 次提交
  15. 04 10月, 2006 1 次提交
  16. 26 9月, 2006 5 次提交
  17. 25 6月, 2006 3 次提交
  18. 28 8月, 2005 1 次提交
  19. 13 7月, 2005 1 次提交
  20. 24 6月, 2005 1 次提交