1. 23 3月, 2013 37 次提交
  2. 22 3月, 2013 3 次提交
    • M
      [media] m5602_ov7660: return error at ov7660_init() · 9dc033f1
      Mauro Carvalho Chehab 提交于
      It used to be a code that returns arror at ov7660_init.
      However, this was removed by changeset c84e412f:
      
      @@ -231,33 +116,40 @@ int ov7660_init(struct sd *sd)
              if (dump_sensor)
                      ov7660_dump_registers(sd);
      
      -   err = ov7660_set_gain(&sd->gspca_dev, sensor_settings[GAIN_IDX]);
      -   if (err < 0)
      -           return err;
      + return 0;
      +}
      
      -   err = ov7660_set_auto_white_balance(&sd->gspca_dev,
      -           sensor_settings[AUTO_WHITE_BALANCE_IDX]);
      -   if (err < 0)
      -           return err;
      
      As complained by gcc:
      	drivers/media/usb/gspca/m5602/m5602_ov7660.c: In function 'ov7660_init':
      	drivers/media/usb/gspca/m5602/m5602_ov7660.c:99:9: warning: variable 'err' set but not used [-Wunused-but-set-variable]
      
      It should be noticed that the original error code was crappy, as it wasn't
      returning any error if sensor init fails.
      
      Fix it by returning an error if the sensor can't be initialized.
      
      Cc: Hans de Goede <hdegoede@redhat.com>
      Signed-off-by: NMauro Carvalho Chehab <mchehab@redhat.com>
      9dc033f1
    • M
      [media] siano: remove the ir protocol field · 39ed1267
      Mauro Carvalho Chehab 提交于
      This field is unused. Remove it.
      Signed-off-by: NMauro Carvalho Chehab <mchehab@redhat.com>
      39ed1267
    • M
      [media] drxk: fix CNR calculus · 48f72a1a
      Mauro Carvalho Chehab 提交于
      Changeset 8f3741e0 accidentally broke the CNR estimation. It should
      be calculated as "a + b - c". However, previously, the subtraction
      by c only occurred if SNR would be positive, due to a bad binding
      to DVBv3 API.
      
      This also fixes the following warning:
      	drivers/media/dvb-frontends/drxk_hard.c:2556:6: warning: variable 'c' set but not used [-Wunused-but-set-variable]
      Signed-off-by: NMauro Carvalho Chehab <mchehab@redhat.com>
      48f72a1a