1. 24 4月, 2022 2 次提交
  2. 13 1月, 2021 1 次提交
  3. 22 6月, 2019 1 次提交
  4. 22 4月, 2019 1 次提交
  5. 31 8月, 2018 1 次提交
  6. 27 7月, 2018 1 次提交
  7. 25 7月, 2018 6 次提交
  8. 28 6月, 2018 1 次提交
  9. 26 2月, 2018 2 次提交
    • H
      media: media.h: reorganize header to make it easier to understand · ed3056f0
      Hans Verkuil 提交于
      The media.h public header is very messy. It mixes legacy and 'new' defines
      and it is not easy to figure out what should and what shouldn't be used. It
      also contains confusing comment that are either out of date or completely
      uninteresting for anyone that needs to use this header.
      
      The patch groups all entity functions together, including the 'old' defines
      based on the old range base. The reader just wants to know about the available
      functions and doesn't care about what range is used.
      
      All legacy defines are moved to the end of the header, so it is easier to
      locate them and just ignore them.
      
      The legacy structs in the struct media_entity_desc are put under
      also a much more effective signal to the reader that they shouldn't be used
      compared to the old method of relying on '#if 1' followed by a comment.
      
      The unused MEDIA_INTF_T_ALSA_* defines are also moved to the end of the header
      in the legacy area. They are also dropped from intf_type() in media-entity.c.
      
      All defines are also aligned at the same tab making the header easier to read.
      Signed-off-by: NHans Verkuil <hans.verkuil@cisco.com>
      [mchehab@s-opensource.com: removed lots of spaces before tabs; typo changes ->change ]
      Signed-off-by: NMauro Carvalho Chehab <mchehab@s-opensource.com>
      ed3056f0
    • H
      media: media.h: fix confusing typo in comment · 81e0989e
      Hans Verkuil 提交于
      Subdevs are initialized with MEDIA_ENT_F_V4L2_SUBDEV_UNKNOWN, not
      MEDIA_ENT_T_V4L2_SUBDEV_UNKNOWN.
      Signed-off-by: NHans Verkuil <hans.verkuil@cisco.com>
      Acked-by: NSakari Ailus <sakari.ailus@linux.intel.com>
      Signed-off-by: NMauro Carvalho Chehab <mchehab@s-opensource.com>
      81e0989e
  10. 23 2月, 2018 1 次提交
  11. 02 11月, 2017 1 次提交
    • G
      License cleanup: add SPDX license identifier to uapi header files with a license · e2be04c7
      Greg Kroah-Hartman 提交于
      Many user space API headers have licensing information, which is either
      incomplete, badly formatted or just a shorthand for referring to the
      license under which the file is supposed to be.  This makes it hard for
      compliance tools to determine the correct license.
      
      Update these files with an SPDX license identifier.  The identifier was
      chosen based on the license information in the file.
      
      GPL/LGPL licensed headers get the matching GPL/LGPL SPDX license
      identifier with the added 'WITH Linux-syscall-note' exception, which is
      the officially assigned exception identifier for the kernel syscall
      exception:
      
         NOTE! This copyright does *not* cover user programs that use kernel
         services by normal system calls - this is merely considered normal use
         of the kernel, and does *not* fall under the heading of "derived work".
      
      This exception makes it possible to include GPL headers into non GPL
      code, without confusing license compliance tools.
      
      Headers which have either explicit dual licensing or are just licensed
      under a non GPL license are updated with the corresponding SPDX
      identifier and the GPLv2 with syscall exception identifier.  The format
      is:
              ((GPL-2.0 WITH Linux-syscall-note) OR SPDX-ID-OF-OTHER-LICENSE)
      
      SPDX license identifiers are a legally binding shorthand, which can be
      used instead of the full boiler plate text.  The update does not remove
      existing license information as this has to be done on a case by case
      basis and the copyright holders might have to be consulted. This will
      happen in a separate step.
      
      This patch is based on work done by Thomas Gleixner and Kate Stewart and
      Philippe Ombredanne.  See the previous patch in this series for the
      methodology of how this patch was researched.
      Reviewed-by: NKate Stewart <kstewart@linuxfoundation.org>
      Reviewed-by: NPhilippe Ombredanne <pombredanne@nexb.com>
      Reviewed-by: NThomas Gleixner <tglx@linutronix.de>
      Signed-off-by: NGreg Kroah-Hartman <gregkh@linuxfoundation.org>
      e2be04c7
  12. 08 8月, 2017 1 次提交
  13. 20 6月, 2017 1 次提交
  14. 24 8月, 2016 1 次提交
  15. 28 6月, 2016 2 次提交
  16. 11 3月, 2016 1 次提交
    • M
      [media] media-device: map new functions into old types for legacy API · b2cd2744
      Mauro Carvalho Chehab 提交于
      The legacy media controller userspace API exposes entity types that
      carry both type and function information. The new API replaces the type
      with a function. It preserves backward compatibility by defining legacy
      functions for the existing types and using them in drivers.
      
      This works fine, as long as newer entity functions won't be added.
      
      Unfortunately, some tools, like media-ctl with --print-dot argument
      rely on the now legacy MEDIA_ENT_T_V4L2_SUBDEV and MEDIA_ENT_T_DEVNODE
      numeric ranges to identify what entities will be shown.
      
      Also, if the entity doesn't match those ranges, it will ignore the
      major/minor information on devnodes, and won't be getting the devnode
      name via udev or sysfs.
      
      As we're now adding devices outside the old range, the legacy ioctl
      needs to map the new entity functions into a type at the old range,
      or otherwise we'll have a regression.
      
      Detected on all released media-ctl versions (e. g. versions <= 1.10).
      
      Fix this by deriving the type from the function to emulate the legacy
      API if the function isn't in the legacy functions range.
      Reported-by: NLaurent Pinchart <laurent.pinchart@ideasonboard.com>
      Signed-off-by: NMauro Carvalho Chehab <mchehab@osg.samsung.com>
      b2cd2744
  17. 04 3月, 2016 4 次提交
  18. 03 3月, 2016 2 次提交
  19. 27 2月, 2016 2 次提交
  20. 16 2月, 2016 3 次提交
  21. 01 2月, 2016 1 次提交
    • M
      [media] media.h: add support for IF-PLL video/sound decoder · 06131932
      Mauro Carvalho Chehab 提交于
      Very old hardware may have an analog stage tuner. Those hardware
      consists of a PLL that converts a RF signal into IF signals.
      
      Depending on the hardware, those video IF signal can be
      decoded directly by the bridge chipset. Most Conexant
      chips (bt8x8, cx2388x, etc) have internally the decoders
      for that. Yet, even on such hardware, the tuner may have
      internally its own TV multi-standard decoder like tda9887.
      
      The same happens with the audio IF signal, where some bridges
      are capable of receiving it, while others require an external
      IF-PLL sound decoder, like msp3400.
      
      Those external IF-PLL audio and video decoders have their own
      I2C address, and use different drivers to handle them. So, they're
      mapped as different subdevices on Linux.
      
      Thankfully, all modern hardware comes with an IC chip that
      has both the RF and the IF stages on it, being capable of
      decoding audio and video IF signals internally.
      
      Yet, as we need to support drivers that can work with either
      analog or silicon tuners, we need to add two entity types
      for those old hardware.
      Signed-off-by: NMauro Carvalho Chehab <mchehab@osg.samsung.com>
      06131932
  22. 25 1月, 2016 1 次提交
  23. 11 1月, 2016 3 次提交