[mythtv-users] UPDATE: Re: WinTV-dualHD TV Tuner not found.

Mike Bibbings mike.bibbings at gmail.com
Sun Sep 10 15:09:41 UTC 2017

On 09/09/17 23:40, A. F. Cano wrote:
> On Mon, Sep 04, 2017 at 11:22:08PM -0400, I wrote:
>> ...
>>> Ian
>> Thank you very much!  At least now there's light at the end of the
>> tunnel.  First, I'll see if the tuner is visible to kernel 4.11,
> I can report partial good news.  I installed kernel 4.11 from backports
> on a test machine running stretch and one tuner became visible (one
> green led on the tuner).  Mythtv-setup (0.28 from deb-multimedia) after
> proper configuration, detected 60 channels after a channel scan.
> Unfortunately, that computer has issues with the display (possibly
> config issues) so using myth there is not possible until I track that
> down.
>> then I'll decide if I want to go the patch route or wait for the
> Next, I decided to install the sources for kernel 3.16 on the myth
> box that's running jessie, and apply the patch.
> The excellent instructions here made it easy:
> https://linuxconfig.org/building-kernels-the-debian-way
> /usr/src/linux-source-3.16# patch -p1 < /tmp/hvr-9x5-19x5-22x5-kernel-3.16-2015-05-21.patch
> patching file drivers/media/common/tveeprom.c
> patching file drivers/media/dvb-frontends/Kconfig
> patching file drivers/media/dvb-frontends/Makefile
> patching file drivers/media/dvb-frontends/lgdt3306a.c
> patching file drivers/media/dvb-frontends/lgdt3306a.h
> patching file drivers/media/dvb-frontends/si2168b.c
> patching file drivers/media/dvb-frontends/si2168b.h
> patching file drivers/media/dvb-frontends/si2168b_priv.h
> patching file drivers/media/dvb-frontends/silg.c
> patching file drivers/media/dvb-frontends/silg.h
> patching file drivers/media/pci/saa7164/Kconfig
> patching file drivers/media/pci/saa7164/saa7164-api.c
> patching file drivers/media/pci/saa7164/saa7164-cards.c
> patching file drivers/media/pci/saa7164/saa7164-core.c
> patching file drivers/media/pci/saa7164/saa7164-dvb.c
> patching file drivers/media/pci/saa7164/saa7164-encoder.c
> patching file drivers/media/pci/saa7164/saa7164-fw.c
> patching file drivers/media/pci/saa7164/saa7164-i2c.c
> patching file drivers/media/pci/saa7164/saa7164-reg.h
> patching file drivers/media/pci/saa7164/saa7164-vbi.c
> patching file drivers/media/pci/saa7164/saa7164.h
> patching file drivers/media/tuners/Kconfig
> patching file drivers/media/tuners/Makefile
> patching file drivers/media/tuners/silabs_tercab.c
> patching file drivers/media/tuners/silabs_tercab.h
> patching file drivers/media/tuners/silabs_tercab_priv.h
> patching file drivers/media/tuners/tuner-types.c
> patching file drivers/media/usb/cx231xx/Kconfig
> patching file drivers/media/usb/cx231xx/cx231xx-avcore.c
> Hunk #6 succeeded at 1727 (offset 3 lines).
> Hunk #7 succeeded at 2129 (offset 3 lines).
> Hunk #8 succeeded at 2397 (offset 3 lines).
> patching file drivers/media/usb/cx231xx/cx231xx-cards.c
> patching file drivers/media/usb/cx231xx/cx231xx-core.c
> Hunk #1 succeeded at 727 (offset 1 line).
> Hunk #2 succeeded at 748 (offset 1 line).
> Hunk #3 succeeded at 1386 (offset 1 line).
> patching file drivers/media/usb/cx231xx/cx231xx-dvb.c
> patching file drivers/media/usb/cx231xx/cx231xx-video.c
> patching file drivers/media/usb/cx231xx/cx231xx.h
> patching file drivers/media/usb/pvrusb2/Kconfig
> patching file drivers/media/usb/pvrusb2/pvrusb2-cx2584x-v4l.c
> patching file drivers/media/usb/pvrusb2/pvrusb2-devattr.c
> patching file drivers/media/usb/pvrusb2/pvrusb2-devattr.h
> patching file drivers/media/usb/pvrusb2/pvrusb2-dvb.c
> patching file drivers/media/usb/pvrusb2/pvrusb2-fx2-cmd.h
> patching file drivers/media/usb/pvrusb2/pvrusb2-hdw-internal.h
> patching file drivers/media/usb/pvrusb2/pvrusb2-hdw.c
> Hunk #2 succeeded at 2096 (offset -23 lines).
> Hunk #3 succeeded at 2149 (offset -23 lines).
> Hunk #4 succeeded at 2231 (offset -23 lines).
> Hunk #5 succeeded at 4056 (offset -23 lines).
> patching file drivers/media/v4l2-core/tuner-core.c
> patching file include/media/tuner.h
> After applying the patch:
> cp /boot/config-3.16.0-4-amd64 .config
> make-kpkg --rootcmd fakeroot  --initrd --us --uc kernel_image
> After the compilation ended:
> # cd ..
> # dpkg -i linux-image-3.16.43_3.16.43-10.00.Custom_amd64.deb
> and reboot.  Tuner not recognized.  No green led and mythtv-setup
> doesn't see it.  Not sure what's missing.  Maybe this is not the only
> patch that's needed, or it's possibly the wrong patch.  Does anyone
> know?
>> After that, I'll have to upgrade the myth machine (liva X) that is still
>> running jessie.
> Since the above didn't work, I'm now upgrading the myth machine to
> stretch.  After changing all "jessie" to "stretch" in /etc/apt/soures.list:
> apt-get update
> apt-get dist-upgrade.
> Then I'll install the backports kernel 4.11 and I'll have at least one
> tuner.
> Does anyone know what Debian kernel has the 2-tuner patch/addition?
> Augustine
Don't know about any kernel supporting 2 tuner patch on Ubuntu or Debian.
As far as I can tell such patches are not yet in upstream.

I recently purchased a Hauppauge WinTV QuadHD DVB-T/T/C tuner which does 
work  in Ubuntu 16.04 LTS (series 4.10 kernel) and Debian Stretch 
(series 4.9 kernel).
output of dmesg shows some errors like unrecognised card version
[   12.419603] cx23885: cx23885[0]: warning: unknown hauppauge model #166200
[   12.795285] cx23885: cx23885[1]: warning: unknown hauppauge model #166201

The Hauppauge repo does contain patches for this card and for 2-tuner patch.

You could try applying these Hauppauge patches to latest V4L media stack 
and see if it solves your problem.
The following outlines how do this, it works on my Ubuntu 16.04 LTS 
system and tested with my card ( and does build ok on Debian Stretch - 
not actually tested with my card)

# This uses Developer's Approach at 
#create new directory e.g
mkdir -p v4l_rebuild
cd v4l_rebuild
#clone v4l repo
git clone --depth=1 git://linuxtv.org/media_build.git
# clone hauppauge repo
git clone https://github.com/b-rad-NDi/Ubuntu-media-tree-kernel-builder.git
# build v4l for the first time
cd media_build
./build --main-git --depth 1
#now apply patches from hauppauge repo ubuntu-artful-4.12.0/extra/
cd media
for i in 
; do patch -p1 <$i; done
# make sure patches apply cleanly -  ignore  offset changes, do not go 
any further if you get rejects, the rest is not going to work
make  -C ../v4l
sudo make -C ../ install
sudo reboot
# check output of dmesg command for errors

To purge the new media stack reinstall your kernel and reboot.


More information about the mythtv-users mailing list