1. 25 1月, 2013 4 次提交
  2. 24 1月, 2013 4 次提交
  3. 23 1月, 2013 1 次提交
    • M
      [media] mb86a20s: don't use state before initializing it · f167e302
      Mauro Carvalho Chehab 提交于
      As reported by Feng's kbuild test:
      	From: kbuild test robot <fengguang.wu@intel.com>
      	Subject: drivers/media/dvb-frontends/mb86a20s.c:706 mb86a20s_attach() error: potential null dereference 'state'.  (kzalloc returns null)
      	Date: Wed, 23 Jan 2013 19:30:43 +0800
      
      	commit: f66d81b5 [media] mb86a20s: convert it to use dev_info/dev_err/dev_dbg
      
      	drivers/media/dvb-frontends/mb86a20s.c:706 mb86a20s_attach() error: potential null dereference 'state'.  (kzalloc returns null)
      	drivers/media/dvb-frontends/mb86a20s.c:706 mb86a20s_attach() error: we previously assumed 'state' could be null (see line 705)
      
      As, at mb86a20s_attach(), we have an i2c pointer, use it for all printk
      messages there, instead of state->i2c.
      Signed-off-by: NMauro Carvalho Chehab <mchehab@redhat.com>
      f167e302
  4. 22 1月, 2013 7 次提交
  5. 14 8月, 2012 1 次提交
  6. 16 1月, 2012 1 次提交
  7. 11 1月, 2012 3 次提交
    • M
      mb86a20s: Add a few more register settings at the init seq · ebe96749
      Mauro Carvalho Chehab 提交于
      Some time ago, Manoel sent us a patch adding more stuff
      to the init sequence. However, his patch were also doing
      non-related stuff, by changing the init logic without
      any good reason. So, it was asked for him to submit a
      patch with just the data that has changed, in order to
      allow us to better analyze it.
      
      As he didn't what it was requested, I finally found some
      time to dig into his init sequence and add it here.
      
      Basically, new stuff is added there. There are a few changes:
      
      1) The removal of the extra (duplicated) logic that puts
         the chip into the serial mode;
      2) Some Viterbi VBER measurement init data was changed from
         0x00 to 0xff for layer A, to match what was done for
         layers B and C.
      
      None of those caused any regressions and both make sense
      on my eyes.
      
      The other parameters additions actually increased the
      tuning quality for some channels. Yet, some channels that
      were previously discovered with scan disappered, while
      others appeared instead. This were tested in Brasilia,
      with an external antena.
      
      At the overall, it is now a little better. So, better to
      add these, and then try to figure out a configuration that
      would get even better scanning results.
      Reported-by: NManoel Pinheiro <pinusdtv@hotmail.com>
      Signed-off-by: NMauro Carvalho Chehab <mchehab@redhat.com>
      ebe96749
    • M
      mb86a20s: Group registers into the same line · a7025edf
      Mauro Carvalho Chehab 提交于
      On mb86a20s, some registers have sub-addresses, while others not.
      In order to make easier to compare different settings, group them.
      
      No functional changes in this patch.
      Signed-off-by: NMauro Carvalho Chehab <mchehab@redhat.com>
      a7025edf
    • M
      [media] mb86a20s: implement get_frontend() · 959a119f
      Mauro Carvalho Chehab 提交于
      Reports the auto-detected parameters to userspace.
      Signed-off-by: NMauro Carvalho Chehab <mchehab@redhat.com>
      959a119f
  8. 05 1月, 2012 1 次提交
  9. 31 12月, 2011 6 次提交
  10. 31 3月, 2011 1 次提交
  11. 19 1月, 2011 2 次提交
    • M
      [media] mb86a20s: Be sure that device is initialized before starting DVB · c736a5f2
      Mauro Carvalho Chehab 提交于
      Due to a hard to track bug between tda829x/tda18271/saa7134, tda829x
      wants to go to analog mode during DVB initialization, causing some
      I2C errors.
      
      The analog failure doesn't cause any harm, as the device were already
      properly initialized in analog mode. However, the failure at the digital
      mode causes the frontend mb86a20s to not initialize. Fortunately, at
      least on my tests, it was possible to detect that the device is a
      mb86a20s before the failure.
      
      What happens is that tda8290 is a very bad boy: during DVB setup, it
      keeps insisting to call tda18271 analog_set_params, that calls
      tune_agc code. The tune_agc code calls saa7134 driver, changing the
      value of GPIO 27, switching from digital to analog mode and disabling
      the access to mb86a20s, as, on Kworld SBTVD, the same GPIO used
      to switch the hardware AGC mode seems to be used to enable the I2C
      switch that allows access to the frontend (mb86a20s).
      
      So, a call to analog_set_params ultimately disables the access to
      the frontend, and causes a failure at the init frontend logic.
      
      This patch is a workaround for this issue: it simply checks if the
      frontend init had any failure. If so, it will init the frontend when
      some DTV application will try to set DVB mode.
      
      Even being a hack for Kworld SBTVD to work, and assumning that we could
      teach tda8290 to be a good boy, this is actually an improvement at the
      frontend driver, as it will be more reliable to initialization failures.
      Signed-off-by: NMauro Carvalho Chehab <mchehab@redhat.com>
      c736a5f2
    • M
      [media] mb86a20s: Fix i2c read/write error messages · 7570800c
      Mauro Carvalho Chehab 提交于
      A script replaced err var to rc. Howerver, this script gambled
      "error" string, changing it to "rcor". Revert that bad change.
      Signed-off-by: NMauro Carvalho Chehab <mchehab@redhat.com>
      7570800c
  12. 29 12月, 2010 3 次提交