1. 09 7月, 2016 1 次提交
  2. 22 4月, 2016 1 次提交
  3. 05 2月, 2016 1 次提交
  4. 08 12月, 2015 1 次提交
  5. 23 10月, 2015 1 次提交
  6. 11 8月, 2015 1 次提交
  7. 10 6月, 2015 5 次提交
    • 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
    • A
      [media] m88ds3103: use regmap for I2C register access · 478932b1
      Antti Palosaari 提交于
      Use regmap for I2C register access.
      Remove own I2C repeated mutex as it should not be needed. I2C adapter
      lock is already taken when I2C mux adapter is called, no need for
      double locking.
      Signed-off-by: NAntti Palosaari <crope@iki.fi>
      Signed-off-by: NMauro Carvalho Chehab <mchehab@osg.samsung.com>
      478932b1
    • A
      [media] m88ds3103: rename variables and correct logging · 7978b8a1
      Antti Palosaari 提交于
      Rename driver state from priv to dev.
      Use I2C client for correct logging.
      Use adapter and address from I2C client structure where needed.
      Signed-off-by: NAntti Palosaari <crope@iki.fi>
      Signed-off-by: NMauro Carvalho Chehab <mchehab@osg.samsung.com>
      7978b8a1
    • 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
    • D
      [media] m88ds3103: a couple missing error codes · 4347df6a
      Dan Carpenter 提交于
      We need to set some error codes here.
      
      Fixes: f01919e8 ('[media] m88ds3103: add I2C client binding')
      Signed-off-by: NDan Carpenter <dan.carpenter@oracle.com>
      Signed-off-by: NAntti Palosaari <crope@iki.fi>
      Signed-off-by: NMauro Carvalho Chehab <mchehab@osg.samsung.com>
      4347df6a
  8. 30 5月, 2015 5 次提交
  9. 09 4月, 2015 1 次提交
  10. 07 3月, 2015 1 次提交
  11. 25 11月, 2014 2 次提交
  12. 11 11月, 2014 1 次提交
  13. 04 11月, 2014 1 次提交
  14. 04 9月, 2014 1 次提交
  15. 03 9月, 2014 3 次提交
  16. 23 7月, 2014 2 次提交
  17. 29 3月, 2014 1 次提交
  18. 12 3月, 2014 3 次提交
  19. 19 12月, 2013 8 次提交