1. 07 7月, 2014 1 次提交
  2. 05 7月, 2014 2 次提交
  3. 20 6月, 2014 6 次提交
  4. 17 6月, 2014 7 次提交
    • M
      [media] dib7000p: Callibrate signal strength · 3926d91a
      Mauro Carvalho Chehab 提交于
      Calibrate the signal strength to dB.
      
      For this callibration, I used adapter 0 (antenna 1), connected
      via a normal cable to a DTF-2111 generator.
      
      The same cabling and RF generator connected to adapter 1
      (antenna 2) has a difference of +3dBm (signal was stronger
      there).
      
      Yet, changing the RF for a difference of, let's say, 6dB
      reflected on a 6dB difference at the measured signal, with
      is good.
      
      So, the signal strengh can indeed be used to measure the
      antenna gain, if the antenna is repositioned. It is
      not precise to measure the absolute dBm value, however.
      Signed-off-by: NMauro Carvalho Chehab <m.chehab@samsung.com>
      3926d91a
    • M
      [media] dib7000p: Add DVBv5 stats support · 041ad449
      Mauro Carvalho Chehab 提交于
      Adds DVBv5 stats support. For now, just mimic whatever dib8000
      does, as they're very similar, with regards to statistics.
      
      However, dib7000p_get_time_us() likely require some
      adjustments, as I didn't actually reviewed the formula
      for it to work with DVB-T. Still, better than nothing,
      as latter patches can improve it.
      
      This patch also doesn't show the signal strength in dB
      yet. The code is already there, but it requires to be
      callibrated.
      
      A latter patch will do the calibration.
      
      It seems that this patch is also a bug fix: Before this
      patch, the frontend were not tuning with some userspace
      tools. I suspect that dib7000p firmware or hardware
      internally expects that the statistics to be collected,
      in order for it to work. With this patch, the DVB core
      will always retrive statistics, even if userspace doesn't
      request. So, it makes the device work on all tested apps.
      Signed-off-by: NMauro Carvalho Chehab <m.chehab@samsung.com>
      041ad449
    • M
      [media] dib8000: export just one symbol · d44913c1
      Mauro Carvalho Chehab 提交于
      Exporting multiple symbols don't work as it causes compilation
      breakages, due to the way dvb_attach() works.
      
      The bug happens when:
              CONFIG_DVB_DIB8000=m
      	CONFIG_DVB_USB_DIB0700=y
      
      As a bonus, dib8000 won't be loaded anymore if the device uses
      a different frontend, reducing the memory footprint.
      
      Tested with both Pixelview PV-D231 and MyGica S870.
      Signed-off-by: NMauro Carvalho Chehab <m.chehab@samsung.com>
      d44913c1
    • M
      [media] dib8000: rename dib8000_attach to dib8000_init · b9bc7d59
      Mauro Carvalho Chehab 提交于
      Well, what we call as "foo_attach" is the method that should
      be called by the dvb_attach() macro.
      
      It should be noticed that the name "dvb_attach" is really a
      bad name and don't express what it does.
      
      dvb_attach() basically does three things, if the frontend is
      compiled as a module:
      - It lookups for the module that it is known to have the
        given symbol name and requests such module;
      - It increments the module usage (anonymously - so lsmod
        doesn't print who loaded the module);
      - after loading the module, it runs the function associated
        with the dynamic symbol.
      
      When compiled as builtin, it just calls the function given to it.
      
      As dvb_attach() increments refcount, it can't be (easily)
      called more than once for the same module, or the kernel
      will deny to remove the module, because refcount will never
      be zeroed.
      
      In other words, the function name given to dvb_attach()
      should be one single symbol that will always be called
      before any other function on that module to be used.
      
      For almost all DVB frontends, there's just one function,
      but, on dib8000, there are several exported symbols.
      
      We need to get rid of all those direct calls, because they
      cause compilation breakages when bridge is builtin and
      frontend is module, we'll need to add a new function that
      will be the first one to be called, whatever initialization
      is needed.
      
      So, let's rename this function, in order to prepare for
      a next patch that will add a new attach() function that
      will be the only one exported by this module.
      Signed-off-by: NMauro Carvalho Chehab <m.chehab@samsung.com>
      b9bc7d59
    • M
      [media] dib7000: export just one symbol · 8abe4a0a
      Mauro Carvalho Chehab 提交于
      Exporting multiple symbols don't work as it causes compilation
      breakages, due to the way dvb_attach() works.
      
      This were reported several times, like:
      
         drivers/built-in.o: In function `cxusb_dualdig4_rev2_tuner_attach':
      >> cxusb.c:(.text+0x27d4b5): undefined reference to `dib7000p_get_i2c_master'
         drivers/built-in.o: In function `dib7070_set_param_override':
         cxusb.c:(.text+0x27d5a5): undefined reference to `dib0070_wbd_offset'
      >> cxusb.c:(.text+0x27d5be): undefined reference to `dib7000p_set_wbd_ref'
         drivers/built-in.o: In function `dib7070_tuner_reset':
      >> cxusb.c:(.text+0x27d5f9): undefined reference to `dib7000p_set_gpio'
         drivers/built-in.o: In function `cxusb_dualdig4_rev2_frontend_attach':
      >> cxusb.c:(.text+0x27df5c): undefined reference to `dib7000p_i2c_enumeration'
      
      In this specific report:
      	CONFIG_DVB_USB_CXUSB=y
      	CONFIG_DVB_DIB7000P=m
      
      But the same type of bug can happen if:
      	CONFIG_DVB_DIB7000P=m
      and one of the bridge drivers is compiled builtin (cxusb, cx23885-dvb
      and/or dib0700).
      
      As a bonus, dib7000p won't be loaded anymore if the device uses
      a different frontend, reducing the memory footprint.
      
      Tested with Hauppauge Nova-TD (2 frontends).
      Reported-by: NFengguang Wu <fengguang.wu@intel.com>
      Signed-off-by: NMauro Carvalho Chehab <m.chehab@samsung.com>
      8abe4a0a
    • M
      [media] dib7000p: rename dib7000p_attach to dib7000p_init · 7f67d96a
      Mauro Carvalho Chehab 提交于
      Well, what we call as "foo_attach" is the method that should
      be called by the dvb_attach() macro.
      
      It should be noticed that the name "dvb_attach" is really a
      bad name and don't express what it does.
      
      dvb_attach() basically does three things, if the frontend is
      compiled as a module:
      - It lookups for the module that it is known to have the
        given symbol name and requests such module;
      - It increments the module usage (anonymously - so lsmod
        doesn't print who loaded the module);
      - after loading the module, it runs the function associated
        with the dynamic symbol.
      
      When compiled as builtin, it just calls the function given to it.
      
      As dvb_attach() increments refcount, it can't be (easily)
      called more than once for the same module, or the kernel
      will deny to remove the module, because refcount will never
      be zeroed.
      
      In other words, the function name given to dvb_attach()
      should be one single symbol that will always be called
      before any other function on that module to be used.
      
      For almost all DVB frontends, there's just one function.
      
      However, the dib7000p initialization can require up to 3
      functions to be called:
      	- dib7000p_get_i2c_master;
      	- dib7000p_i2c_enumeration;
      	- dib7000p_init (before this patch dib7000_attach).
      
      (plus a bunch of other functions that the bridge driver will
      need to call).
      
      As we need to get rid of all those direct calls, because they
      cause compilation breakages when bridge is builtin and
      frontend is module, we'll need to add a new function that
      will be the first one to be called, whatever initialization
      is needed.
      
      So, let's rename the function that probes and init the hardware
      to dib7000p_init.
      
      A latter patch will add a new dib7000p_attach that will be
      used as originally conceived by dvb_attach() way.
      Signed-off-by: NMauro Carvalho Chehab <m.chehab@samsung.com>
      7f67d96a
    • M
      [media] drxd: get rid of EXPORT_SYMBOL(drxd_config_i2c) · 619c027d
      Mauro Carvalho Chehab 提交于
      This symbol is not used externally. Get rid of it.
      Signed-off-by: NMauro Carvalho Chehab <m.chehab@samsung.com>
      619c027d
  5. 23 4月, 2014 5 次提交
  6. 07 4月, 2014 3 次提交
  7. 29 3月, 2014 1 次提交
  8. 15 3月, 2014 2 次提交
  9. 12 3月, 2014 3 次提交
  10. 11 3月, 2014 10 次提交