1. 25 7月, 2009 11 次提交
  2. 13 7月, 2009 1 次提交
  3. 06 7月, 2009 22 次提交
  4. 05 7月, 2009 1 次提交
  5. 23 6月, 2009 5 次提交
    • M
      V4L/DVB (12131): BUGFIX: An incorrect Carrier Recovery Loop optimization table was being · eebf8d86
      Manu Abraham 提交于
      loaded for a given chip version. This would cause the optimization in
      tuning not to be applied and thus a failed expectation, in tuning speed
      increment. The patch swaps the tables in use. It also fixes a possible
      one in a million condition where state->dev_ver implies an older Cut
      (Cut < 2.0, eventhough the driver doesn't attach to any Cut older than
      2.0) or even negative (due to a bad I2C bus master driver) for the card
      combination.
      
      Thanks to Mauro Carvalho Chehab <mchehab@infradead.org> for pointing
      out the issue at large.
      Signed-off-by: NManu Abraham <manu@linuxtv.org>
      Signed-off-by: NMauro Carvalho Chehab <mchehab@redhat.com>
      eebf8d86
    • M
      V4L/DVB (12130): Fix a redundant compiler warning · 0a5ded56
      Manu Abraham 提交于
      drivers/media/dvb/frontends/stv090x.c: In function ‘stv090x_optimize_carloop_short’:
      drivers/media/dvb/frontends/stv090x.c:2677: warning: ‘short_crl’ may be used uninitialized in this function
      Signed-off-by: NManu Abraham <manu@linuxtv.org>
      Signed-off-by: NMauro Carvalho Chehab <mchehab@redhat.com>
      0a5ded56
    • T
      V4L/DVB (12003): v4l2: Move bounding code outside I2C ifdef block · d8b29966
      Trent Piepho 提交于
      On Fri, 12 Jun 2009, Randy Dunlap wrote:
      > From: Randy Dunlap <randy.dunlap@oracle.com>
      >
      > Move v4l_bound_align_image() outside of an #ifdef CONFIG_I2C block
      > so that it is always built.  Fixes a build error:
      
      clamp_align() should be moved as well, since it's only used by
      v4l_bound_align_image().  I'm attaching an alternate version that fixes
      this.  Labeled the endif too.
      Reported-by: NRandy Dunlap <randy.dunlap@oracle.com>
      Signed-off-by: NTrent Piepho <xyzzy@speakeasy.org>
      Signed-off-by: NMauro Carvalho Chehab <mchehab@redhat.com>
      d8b29966
    • T
      V4L/DVB (11913): cx231xx: TRY_FMT should not actually set anything · 1ca27379
      Trent Piepho 提交于
      In the TRY_FMT handler the function get_scale() is called to find what the
      scaler hardware will produce for a requested size.
      
      The problem is that get_scale(struct cx231xx *dev, ..., unsigned int *vscale,
      unsigned int *hscale) saves the calculated scale values into both the
      pointer arguments and into dev's hscale and vscale fields.  TRY_FMT shouldn't
      actually change anything in the device state.
      
      The code to in get_scale() that writes to dev->[hv]scale can just be
      deleted.  In all cases when dev's fields should be modified, get_scale()
      was called with get_scale(dev, ..., &dev->hscale, &dev->vscale), so dev was
      getting updated anyway.
      
      This didn't actually cause a problem because nothing ever actually made use
      of the hscale and vscale fields.  I changed cx231xx_resolution_set() to use
      those fields rather than re-calculate them with a call to get_scale().
      
      Updating [hv]scale in cx231xx_resolution_set() isn't necessary because
      every call of cx231xx_resolution_set() was already preceded by a call to
      get_scale() or setting the [hv]scale fields, so they will be always be
      up-to-date w.r.t. width and height.
      
      Removing the call to get_scale() from cx231xx_resolution_set() allowed
      making get_scale() a static function, which is a good thing for something
      with such a short name.  There is already another function with the same
      name in the em28xx driver, but that one is static.
      Signed-off-by: NTrent Piepho <xyzzy@speakeasy.org>
      Signed-off-by: NMauro Carvalho Chehab <mchehab@redhat.com>
      1ca27379
    • T
      V4L/DVB (11912): em28xx: Use v4l bounding/alignment function · ccb83408
      Trent Piepho 提交于
      The v4l function has a better algorithm for aligning image size.
      
      It appears that the em2800 can only scale by 50% or 100%, i.e. the only
      heights supported might be 240 and 480.  In that case the old code would
      set any height other than 240 to 480.  Request 240 get 240, but request 239
      and then you get 480.  Change it to round to the nearest supported value.
      Signed-off-by: NTrent Piepho <xyzzy@speakeasy.org>
      Signed-off-by: NMauro Carvalho Chehab <mchehab@redhat.com>
      ccb83408