WinTV Radio Model 401 Success
I thought I'd share a recent success I had using a WinTV Radio Model 401 on Mythdora 4. It was a rocky road getting it working, but I've finally done it. Hopefully it helps someone else down the road.
I got this card Hauppauge WinTV Radio (model dbx-401) for free, so I figured I'd put it to use. This card is a v4l card that uses the CX88 modules that are included with the video4linux packages.
After the setup of MD4.0 the card was detected auto-magically as the proper type. So here are some things you may need to be careful of or modify to get things working nicely.
1) Mythtv-setup & sound card selection:
Choose v4l card. and select audio capture as /dev/dsp1 (you should verify cx88-alsa is loaded). By choosing /dev/dsp1 (you should have /dev/dsp & /dev/dsp1 for available devices) you will capture audio by DMA and eliminate the need for a line-out / line-in jumper from capture card to sound card.
2) LIRC & Remote Controls:
This bit was a bit frustrating until I stumbled onto what was happening. At the setup step in mythdorasetup for remotes, I selected the Hauppauge-Grey remote (which it is). Unfortunately, due to our old assumptions, when we make this choice for remote we assume it's an IVTV lirc device. So here's the weird and confusing part. The remote came up and kind-of worked. Some keys worked, others didn't, and irw wouldn't show me anything.
After some poking and prodding as to why I'd get ^B and ^M signals from the remote key presses, I realized that the remote was working not via lirc, but via the built in cx88_ir module that automagically loaded. The problem with this was that I couldn't figure out how to program the damn thing with the proper key presses, so I figured out how to make it work with LIRC instead.
The IR device was being installed as a /dev/input/event device. So to get lirc to honor this device I looked here: /proc/bus/input/devices for the IR device. It said my device was installed on /dev/input/event4. So now /etc/sysconfig/lircd needed to be updated for options to acces this device. So for lircd_options I added this -H dev/input -d /dev/input/event4.
A restart of lircd with /sbin/service lircd restart and I was on my way. Now one thing to notice here.. if you go and remove a device, like an add on card, or say a USB keyboard or mouse. It's possible that your input event ID will change. Especially if you remove a device, it's likely your event ID will decrease, and of course lircd will not work properly.
3)Pre-Loaded modules.. No Good for me.
I found that something being done in /etc/sysconfig/modules/v4l.sh was causing me problems. This script was pre-loading the cx88-alsa card early in the boot scheme. As a result my main sound card would fail to get the proper device ID at boot time and thus the module would insert but no device would exist; and the result: No Sound.
Needless to say this pissed me off and I was on my way to finding what to do. I removed the v4l.sh pre-load script, and the cx88-alsa still loaded before my snd-intel8x0 module and I still had no sound. So to remedy this I ended up having to blacklist the cx88-alsa module in /etc/modprobe.d/blacklist. Now to get my module working I had to add a modprobe line to /etc/rc.local to get this module to load last. Finally I have reliable sound.
The video4linux and ivtv drivers hate each other. So rip out all ivtv and ivtv-kmdl packages to get smooth playback.
I hope this helps someone out there cause it was a PITA for me! But the card is functioning well now, and it's pretty decent for a cheap software based card.