1. 16 7月, 2016 8 次提交
  2. 13 7月, 2016 2 次提交
    • S
      [media] ascot2e: Fix I2C message size check · cd829821
      Saso Slavicic 提交于
      Tuning a card with Sony ASCOT2E produces the following error:
      
      	kernel: i2c i2c-9: wr reg=0006: len=11 is too big!
      
      MAX_WRITE_REGSIZE is defined as 10, buf[MAX_WRITE_REGSIZE + 1] buffer is
      used in ascot2e_write_regs().
      
      The problem is that exactly 10 bytes are written in ascot2e_set_params():
      
      	/* Set BW_OFFSET (0x0F) value from parameter table */
      	data[9] = ascot2e_sett[tv_system].bw_offset;
      	ascot2e_write_regs(priv, 0x06, data, 10);
      
      The test in write_regs is as follows:
      
      	if (len + 1 >= sizeof(buf))
      
      10 + 1 = 11 and that would be exactly the size of buf. Since 10 bytes +
      buf[0] = reg would seem to fit into buf[], this shouldn't be an error.
      Signed-off-by: NMauro Carvalho Chehab <mchehab@s-opensource.com>
      cd829821
    • H
      [media] af9033: fix compiler warnings · c93350a6
      Hans Verkuil 提交于
      Fix two warnings:
      
      af9033.c: In function 'af9033_read_status':
      af9033.c:883:25: warning: 'snr_lut' may be used uninitialized in this function [-Wmaybe-uninitialized]
         const struct val_snr *snr_lut;
                               ^
      af9033.c:952:25: warning: 'tmp' may be used uninitialized in this function [-Wmaybe-uninitialized]
         c->cnr.stat[0].svalue = tmp;
                               ^
      Signed-off-by: NHans Verkuil <hans.verkuil@cisco.com>
      Signed-off-by: NMauro Carvalho Chehab <mchehab@s-opensource.com>
      c93350a6
  3. 09 7月, 2016 17 次提交
  4. 24 6月, 2016 2 次提交
  5. 10 6月, 2016 1 次提交
  6. 09 6月, 2016 1 次提交
  7. 08 6月, 2016 6 次提交
  8. 07 6月, 2016 3 次提交