Re: tda8290 regression fix

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Em Thu, 30 Aug 2012 13:27:21 +0200
Anders Thomson <aeriksson2@xxxxxxxxx> escreveu:

> Hi,
> 
> Ever since 2.6.26 or so (where there was a code reorg) I had to carry 
> this patch.
> Without it the received signal is noisy, and the card worked fine prior 
> to the code
> reorg. This patch is a hack, mostly as a result of my inability to 
> follow the code
> paths (and bisect failing). I'd be more than willing to test whatever 
> the proper
> patch might be prior to any mainlining.
> 
> Thanks,
> /Anders
> 
> 
> 
> $ cat /TV_CARD.diff
> diff --git a/drivers/media/common/tuners/tda8290.c 
> b/drivers/media/common/tuners/tda8290.c
> index 064d14c..498cc7b 100644
> --- a/drivers/media/common/tuners/tda8290.c
> +++ b/drivers/media/common/tuners/tda8290.c
> @@ -635,7 +635,11 @@ static int tda829x_find_tuner(struct dvb_frontend *fe)
> 
>                  dvb_attach(tda827x_attach, fe, priv->tda827x_addr,
>                             priv->i2c_props.adap, &priv->cfg);
> +               tuner_info("ANDERS: setting switch_addr. was 0x%02x, new 
> 0x%02x\n",priv->cfg.switch_addr,priv->i2c_props.addr);
>                  priv->cfg.switch_addr = priv->i2c_props.addr;
> +               priv->cfg.switch_addr = 0xc2 / 2;

No, this is wrong. The I2C address is passed by the bridge driver or by
the tuner_core attachment, being stored at priv->i2c_props.addr.

What's the driver and card you're using?

> +               tuner_info("ANDERS: new 0x%02x\n",priv->cfg.switch_addr);
> +
>          }
>          if (fe->ops.tuner_ops.init)
>                  fe->ops.tuner_ops.init(fe);
> 
> --
> To unsubscribe from this list: send the line "unsubscribe linux-media" in
> the body of a message to majordomo@xxxxxxxxxxxxxxx
> More majordomo info at  http://vger.kernel.org/majordomo-info.html


-- 
Regards,
Mauro
--
To unsubscribe from this list: send the line "unsubscribe linux-media" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[Index of Archives]     [Linux Input]     [Video for Linux]     [Gstreamer Embedded]     [Mplayer Users]     [Linux USB Devel]     [Linux Audio Users]     [Linux Kernel]     [Linux SCSI]     [Yosemite Backpacking]
  Powered by Linux