I wrote above product thing. I have it working for analog TV and radio:
RADIO: with gqradio. Gqradio's scan is a lot dodgy, ymmv. Set up the channels manually. There is no DAB but you get FM, UHF, things like Radio1 and Classic FM in the UK.
The module is saa7134 card=78 tuner=54. Also need module 'tuner' and saa7134_alsa or something like that for the sound.
Sound varies with kernel and seems to need sox or something like that to get it to the speakers. Some suggestions:
Code:
#! /bin/bash
# Try to start tvtime and sox sound and stop them cleanly.
#sox -V -q -w -p -c 2 -r 44100 -t alsa hw:1 -r 44100 -t alsa -v 1 hw:0 &
#sox -d -q -V -r 48000/1 -c 2 -t alsa hw:1 -t alsa -r 44100 -d -v 1 hw:0 &
#sox -q -c 2 -s -w -r 32000 -t ossdsp /dev/dsp1 -t ossdsp -w -c 2 -r 32000 -v 2 /dev/dsp
#sox -q -V -c 1 -r 32000 -t alsa hw:1 -r 44100 -t alsa hw:0 & #no stereo
#sox -q -V -c 2 -r 32000 -t ossdsp /dev/dsp1 -c 2 -r 44100 -t alsa hw:0 &
pulseaudio --kill
artsshell terminate
play -c 2 -w -v 3 -t alsa hw:1 fade 14 &
#sox -q -V -w -s -c 2 -r 32000 -t alsa hw:1 -c 2 -r 44100 -t alsa hw:0 fade 14 & #stereo
#sox -q -V -w -s -c 2 -r 32000 -t ossdsp /dev/dsp1 -c 2 -r 44100 -t alsa hw:0 fade 14 & #stereo
#artswrapper
tvtime --norm=PAL --frequencies=Custom #--mixer=/dev/mixer:pcm
l=`pidof play`
kill $l
unset l
exit 0
For radio, this works for television too on my box:
Code:
#! /bin/bash
gqradio &
play -q -c 2 -v 2 -t alsa hw:1 fade 10 &
while [ `pidof tvtime` -gt 0 ]; do sleep 8; done
kill `pidof play`
exit 0
(If you have the misfortune to be using arts it is difficult to get it to stop, but you may know how. Alsa is bad on the time gap between the lips moving and the sound, 'latency'. OSS or OSS emulation is better. Latency may get worse the more load there is on the computer. Putting artsdsp in front of things is a good way to stop ARTS from buggering things, e.g. $ artsdsp mplayer ....)
I like the picture.
tvtime, kdetv - for teletext, mplayer (full full-screen), etc..
INTERNAL WIRING TO SOUND CARD:
A 4-pin CDROM drive type lead may be put in between the card and the soundcard. Use the plug furthest away from the metal bit that fits in the back of the computer. The two end pins seem to be audio left and right channels; the middle two ground - watch yourself with old cables which can be excentrically wired. Sound is now synced with lip movement, there is no need for sox or whatever.
(With mplayer I have to use PAL-I to get any sound.)
If your speakers have their own amplifier it may be useful to note that, even when the computer is turned off, any sound source plugged into the Peak card, e.g. a CD recorder using composite, can be heard through the computer's loudspeakers, if you switch up the volume.