all version of mythtv falling scanning or tuning if you have the hauppauge hvr-4000. i self tested dvb-t. here is finally a hotfix - it slows down the things a bit, but a least hvr4000 works now. USEflag "hvr4000fix" for the patch? please include this into the ebuild(s) of mythtv http://www.mythtvtalk.com/forum/hardware/11318-hvr-4000-fails-scan.html Reproducible: Always
*** Bug 304297 has been marked as a duplicate of this bug. ***
Please retest with 0.23 as the channel scanner has been updated.
tested with kernel 2.6.34 and a clean mythtv-0.23 install -> nochange - still no tuning and scanning without patch btw used mythtv-0-23-fixes for attached patch
Created attachment 236145 [details, diff] patch for a working hvr-4000 with mythtv
so before you ask version 0.23.1 doesn't fix this, too. nothing happens here with this bug:-( hauppauge cards are very common. so damn it, add this patch.
Your patch merely adds a 5 second sleep everywhere. Random sleeps are hardly a proper solution. What may work on your machine will not work on someone's machine that is slower. I would encourage you to work with upstream to find a proper solution.
developers from e.g. mythtv say it's a upstream bug too. But wont talk to upstream. And Upstream seems not to feel like getting active either or aren't willing. But like all users have problems with hvr1300, hvr3000, hvr4000 and tuning for over 2 years now... A kernel driver patch from upstream introduced this bug in first place, nobody knows why they not reverting it. Here I found a helping discussion and a patch for hvr1300 which I modified to work with above mentioned cards. using newest dvb-firmware and gentoo.sources-2.6.37-r1 https://bugs.launchpad.net/mythbuntu/+bug/439163
Created attachment 264879 [details, diff] kernel-patch for hvr1300, hvr3000, hvr4000 tuning bug
Created attachment 264881 [details, diff] kernel-patch for hvr1300, hvr3000, hvr4000 tuning bug
In the end, after let's say 3 years:-(, a race condition in the kernel was fixed since 3.x and makes this bug obsolete. tested with gentoo-sources-3.1.0 + hvr-4000 https://git.kernel.org/?p=linux/kernel/git/torvalds/linux.git;a=commit;h=2d1969312d6319d28ae9609a84f969b6933bd51c