hn.today

Fixing My Hauppauge TV Tuner Card on Linux

blog.nawaz.org5 points0 comments
Screenshot of Fixing My Hauppauge TV Tuner Card on Linux

A kernel upgrade from Linux 5.15.19 to 6.18.12 caused two Hauppauge WinTV-QuadHD tuner cards to stop producing channels, which also prevented Plex from recording shows. Frequency scans still locked onto broadcast signals, and the cards’ tuners could communicate over I²C, but scans failed when reading program information tables. The key clue was that the cards’ PCI status registers showed pending interrupts while Linux recorded no interrupts for them. Without those interrupts, the cards’ DMA data path could not deliver the data needed to complete scans.

The investigation traced the failure to a PCI quirk that changes an Intel chipset register controlling legacy interrupt routing. The cards use legacy interrupts rather than MSI, and the quirk’s change made their interrupts invisible to the operating system. Although the quirk’s code was unchanged between kernels, the older kernel lacked extended PCI configuration access, so its attempted register change failed; the newer kernel enabled that access and applied the change. Adding pci=noioapicquirk to the boot command line prevents the relevant quirk from running, preserving the BIOS interrupt-routing state. After rebooting with this setting, the cards’ interrupts flowed normally and scans produced complete channel lists.

Read on blog.nawaz.org0 comments on Hacker News

Summary generated by AI from the linked article. hn.today is not affiliated with Hacker News or Y Combinator.

More in Hardware

The daily digest

Today's best Hacker News stories, summarized and screenshotted, one email a day.