1. 20 9月, 2016 1 次提交
  2. 25 8月, 2016 1 次提交
  3. 13 7月, 2016 1 次提交
  4. 09 7月, 2016 2 次提交
  5. 03 3月, 2016 2 次提交
  6. 10 2月, 2016 1 次提交
  7. 19 12月, 2015 2 次提交
  8. 18 12月, 2015 1 次提交
    • H
      [media] vb2: drop v4l2_format argument from queue_setup · df9ecb0c
      Hans Verkuil 提交于
      The queue_setup callback has a void pointer that is just for V4L2
      and is the pointer to the v4l2_format struct that was passed to
      VIDIOC_CREATE_BUFS. The idea was that drivers would use the information
      from that struct to buffers suitable for the requested format.
      
      After the vb2 split series this pointer is now a void pointer,
      which is ugly, and the reality is that all existing drivers will
      effectively just look at the sizeimage field of v4l2_format.
      
      To make this more generic the queue_setup callback is changed:
      the void pointer is dropped, instead if the *num_planes argument
      is 0, then use the current format size, if it is non-zero, then
      it contains the number of requested planes and the sizes array
      contains the requested sizes. If either is unsupported, then return
      -EINVAL, otherwise use the requested size(s).
      Signed-off-by: NHans Verkuil <hans.verkuil@cisco.com>
      Signed-off-by: NMauro Carvalho Chehab <mchehab@osg.samsung.com>
      df9ecb0c
  9. 21 10月, 2015 1 次提交
  10. 01 10月, 2015 1 次提交
  11. 10 6月, 2015 2 次提交
    • D
      [media] TS2020: Calculate tuner gain correctly · 0f91c9d6
      David Howells 提交于
      The TS2020 and TS2022 tuners take an input from the demodulator indicating the
      AGC setting on that component that is then used to influence the tuner's own
      gain.  This should be taken into account when calculating the gain and signal
      strength.
      
      Further, the existing TS2020 driver miscalculates the signal strength as the
      result of its calculations can exceed the storage capacity of the 16-bit word
      used to return it to userspace.
      
      To this end:
      
       (1) Add a callback function (->get_agc_pwm()) in the ts2020_config struct that
           the tuner can call to get the AGC PWM value from the demodulator.
      
       (2) Modify the TS2020 driver to calculate the gain according to Montage's
           specification with the adjustment that we produce a negative value and
           scale it to 0.001dB units (which is what the DVBv5 API will require):
      
           (a) Callback to the demodulator to retrieve the AGC PWM value and then
           	 turn that into Vagc for incorporation in the calculations.  If the
           	 callback is unset, assume a Vagc of 0.
      
           (b) Calculate the tuner gain from a combination of Vagc and the tuner's RF
           	 gain and baseband gain settings.
      
       (3) Turn this into a percentage signal strength as per Montage's
           specification for return to userspace with the DVBv3 API.
      
       (4) Provide a function in the M88DS3103 demodulator driver that can be used to
           get the AGC PWM value on behalf of the tuner.
      
       (5) The ts2020_config.get_agc_pwm function should be set by the code that
           stitches together the drivers for each card.
      
           For the DVBSky cards that use the M88DS3103 with the TS2020 or the TS2022,
           set the get_agc_pwm function to point to m88ds3103_get_agc_pwm.
      
      I have tested this with a DVBSky S952 card which has an M88DS3103 and a TS2022.
      
      Thanks to Montage for providing access to information about the workings of
      these parts.
      Signed-off-by: NDavid Howells <dhowells@redhat.com>
      Signed-off-by: NAntti Palosaari <crope@iki.fi>
      Signed-off-by: NMauro Carvalho Chehab <mchehab@osg.samsung.com>
      0f91c9d6
    • M
      [media] dvb: Get rid of typedev usage for enums · 0df289a2
      Mauro Carvalho Chehab 提交于
      The DVB API was originally defined using typedefs. This is against
      Kernel CodingStyle, and there's no good usage here. While we can't
      remove its usage on userspace, we can avoid its usage in Kernelspace.
      
      So, let's do it.
      
      This patch was generated by this shell script:
      
      	for j in $(grep typedef include/uapi/linux/dvb/frontend.h |cut -d' ' -f 3); do for i in $(find drivers/media -name '*.[ch]' -type f) $(find drivers/staging/media -name '*.[ch]' -type f); do sed "s,${j}_t,enum $j," <$i >a && mv a $i; done; done
      
      While here, make CodingStyle fixes on the affected lines.
      Signed-off-by: NMauro Carvalho Chehab <mchehab@osg.samsung.com>
      Acked-by: Stefan Richter <stefanr@s5r6.in-berlin.de> # for drivers/media/firewire/*
      0df289a2
  12. 06 6月, 2015 4 次提交
  13. 13 5月, 2015 1 次提交
  14. 03 4月, 2015 1 次提交
  15. 02 2月, 2015 1 次提交
  16. 22 1月, 2015 1 次提交
  17. 30 12月, 2014 3 次提交
  18. 25 11月, 2014 2 次提交
  19. 15 11月, 2014 1 次提交
  20. 11 11月, 2014 2 次提交
  21. 04 11月, 2014 2 次提交
  22. 03 11月, 2014 1 次提交
  23. 30 10月, 2014 3 次提交
  24. 21 10月, 2014 1 次提交
  25. 24 9月, 2014 2 次提交