[linux-dvb] [PATCH] Fix for Air2PC HD5000

Michael Krufky mkrufky at linuxtv.org
Wed Aug 8 15:57:51 CEST 2007

On 8/7/07, Geoffrey Hausheer <inli3epy93n at phracturedblue.com> wrote:
> I have been unable to tune my HD5000 using recent kernels for quite
> some time, and I finally broke down and tried to figure out what is
> going on.
> It turns out that ever since the lgh06xf driver was removed, my card
> has been unable to tune.  However this is only true after a hard-boot.
>  If I boot into an earlier driver, tune it once and get a lock, then
> soft-boot unto a recent driver, it works fine.
> I didn't really dig into that, but comparing dvb_pll_attach to
> lgh06xf_attach I noticed the only significant difference was some
> extra i2c stuff.
> Specifically this:
>               ret = i2c_transfer (i2c, &msg, 1);
>               if (ret != 1)
>                       return NULL;
> Well, I checked, and, indeed, we fall through here and abort the
> attach before all the callbacks are registered.  Since the lgh06xf
> didn't even do this, I just ignored the return code, and voila, my
> HD5000 tunes fine again.
> I'm not sure the patch will work for all frontends, but someone more
> knowledgable could probably figure out what needs to be done here.
> ---------------------------
> This patch allows my Air2PC HD5000 to tune properly
> Sign-off: Geoffrey Hausheer <inli3epy93n at phracturedblue.com>


Could you give us some more information about your problem?

ie:  What was the last working kernel version? / When did these
problems first appear?  / Do you have the same problem after
installing the newer modules from linuxtv.org v4l-dvb hg repository?
/  Could you test using the hg modules against an older kernel
revision?  /  When testing using hg modules against an older kernel
revision, is your patch still required to allow tuning?

My reasons for asking these questions are decribed below:

I have been informed that the HD5000 has a problem under 2.6.22.y,
where it will correctly tune the first set of params sent to the
device, but all attempts thereafter do not work.  If you are always
trying to tune the same frequency / pid, you would not notice the
problem.  I don't think that this is the problem that you're

I did some testing last weekend, and I confirm the same problem under
vanilla 2.6.22.y , and we'll have to do a git bisection test to
discover the cause.  However, I am sure that the cause of this problem
does NOT lie within the code of the dvb subsystem -- If you install
the most recent hg against an older kernel, there is no problem -- all
works correctly.

Then, I tested using vanilla 2.6.21.y , and had an entirely different
problem, in which tuning did not seem to work at all.  I suspect that
this is what you may be experiencing.  I did not have enough time this
past weekend to figure out the cause of these problems, but I am sure
that a git bisection will reveal the cause.

My HD5000 is sitting in my my mythbackend server, running 2.6.20.
(fedora's 2.6.20-1.2320.fc5smp, to be exact) ... Under 2.6.20, the
card is working properly with no issue.

Although your patch may appear to fix your problem, I suspect that it
is really curing a symptom of the problem, and not the cause.

When replying to this email, please be sure to retain cc: to linux-dvb
-- I am away from my email right now, and I can read the mailing lists
via a separate email account, used specifically for this purpose.  --
it's too much to explain why :-)



More information about the linux-dvb mailing list