Re: [patch] Fix AF9015 Dual tuner i2c write failures

2011-03-05 Thread Andrew de Quincey
;> >> My informal and quick tests with Windows Media Center and these cards did >> not reproduce the problem, when trying to change channels as quickly as >> possible, admittedly for not so long a time. >> >> Best regards, >>    Juan Jesus. >> El 05/03/2011

Re: [patch] Fix AF9015 Dual tuner i2c write failures

2011-03-04 Thread Andrew de Quincey
On 4 March 2011 22:59, Antti Palosaari wrote: > On 03/05/2011 12:44 AM, Andrew de Quincey wrote: >>>> >>>> Adding a "bus lock" to af9015_i2c_xfer() will not work as demod/tuner >>>> accesses will take multiple i2c transactions. >&

Re: [patch] Fix AF9015 Dual tuner i2c write failures

2011-03-04 Thread Andrew de Quincey
. Unless, of course, I've misunderstood your proposal. However, looking at the code again, I realise it is possible to simplify it. Since its only the demod gates that cause a problem, we only /actually/ need to lock the get_frontend() and set_frontend() calls. Signed-off-by: Andrew de Quinc

[patch] Fix AF9015 Dual tuner i2c write failures

2011-03-04 Thread Andrew de Quincey
the errors. Signed-off-by: Andrew de Quincey diff --git a/drivers/media/dvb/dvb-usb/af9015.c b/drivers/media/dvb/dvb-usb/af9015.c index 31c0a0e..740d969 100644 --- a/drivers/media/dvb/dvb-usb/af9015.c +++ b/drivers/media/dvb/dvb-usb/af9015.c @@ -1083,6 +1083,104 @@ static int af9015_i2c_i