1. 07 7月, 2012 1 次提交
    • M
      [media] drxk: Make the QAM demodulator command parameters configurable · 9e23f50a
      Martin Blumenstingl 提交于
      Currently there are two different implementations (in the firmware) for
      the QAM demodulator command: one takes 4 and the other takes 2
      parameters. The driver shows an error in dmesg When using the
      4-parameter command with firmware that implements the 2-parameter
      command. Unfortunately this happens every time when chaning the
      frequency (on DVB-C).
      
      This patch simply makes configurable, how many command parameters will
      be used. All existing drxk_config instances using the "drxk_a3.mc" were
      updated because this firmware is the only loadable firmware where the
      QAM demodulator command takes 4 parameters. Some firmwares in the ROM
      might also use it. The drxk instances in the em28xx-dvb driver were also
      updated to silence the warnings.
      
      If no qam_demod_parameter_count is given in the drxk_config struct, then
      the correct number of parameters will be auto-detected.
      
      [mchehab@redhat.com: Fix a small CodingStyle issue at one comment]
      Signed-off-by: NMartin Blumenstingl <martin.blumenstingl@googlemail.com>
      Tested-by: NMauro Carvalho Chehab <mchehab@redhat.com>
      Signed-off-by: NMauro Carvalho Chehab <mchehab@redhat.com>
      9e23f50a
  2. 15 5月, 2012 1 次提交
  3. 20 4月, 2012 1 次提交
  4. 21 1月, 2012 1 次提交
    • M
      [media] drxk: Don't assume a default firmware name · da989e0b
      Mauro Carvalho Chehab 提交于
      Move the ngene/ddbridge firmware into their drivers.
      
      There are two reasons for that:
      	1) The firmware used there didn't work for a few devices
      I tested here (Terratec H5, H6 and H7);
      	2) At least Terratec H7 doesn't seem to require a firmware
      for it to work.
      
      After this change, if firmware is not specified, the driver will
      use a rom-based firmware (this seems to be the case for Terratec
      H7, although I need to better check the USB dumps to be sure about
      that).
      
      In any case, the firmware seems to be optional, as the DRX-K driver
      don't return the firmware load error.
      Signed-off-by: NMauro Carvalho Chehab <mchehab@redhat.com>
      da989e0b
  5. 06 1月, 2012 1 次提交
  6. 04 1月, 2012 1 次提交
  7. 07 9月, 2011 1 次提交
  8. 04 9月, 2011 1 次提交
    • D
      [media] ddbridge: fix ddb_ioctl() · e9013fb6
      Dan Carpenter 提交于
      There were a several problems in this function:
      
      1) Potential integer overflow in the comparison:
      	if (fio.write_len + fio.read_len > 1028) {
      
      2) If the user gave bogus values for write_len and read_len then
         returning -EINVAL is more appropriate than returning -ENOMEM.
      
      3) wbuf was set to the address of an array and could never be NULL
         so I removed the pointless NULL check.
      
      4) The call to vfree(wbuf) was improper.  That array is part of a
         larger struct and isn't allocated by itself.
      
      5) flashio() can't actually fail, but we may as well add error
         handling in case this changes later.
      
      6) In the default case where an ioctl is not implemented then
         returning -ENOTTY is more appropriate than returning -EFAULT.
      Signed-off-by: NDan Carpenter <error27@gmail.com>
      Signed-off-by: NMauro Carvalho Chehab <mchehab@redhat.com>
      e9013fb6
  9. 28 7月, 2011 5 次提交