Penguin

Differences between version 8 and predecessor to the previous major change of RadioTuner.

Other diffs: Previous Revision, Previous Author, or view the Annotated Edit History

Newer page: version 8 Last edited on Thursday, May 12, 2005 2:03:07 pm by JohnMcPherson Revert
Older page: version 6 Last edited on Thursday, December 9, 2004 9:01:30 pm by JohnMcPherson Revert
@@ -3,21 +3,42 @@
 Many TvTunerCards have a radio tuner built in. 
  
 !Tuning/Listening to the radio 
 You can use the "radio" application to tune and listen to radio stations. This is part of the xawtv package, but in [Debian] at least it is split into its own binary package: 
+<verbatim>  
  apt-get install radio 
+</verbatim>  
  
 Here is a sample __~/.radio__ configuration file for it (based on Hamilton frequencies): 
- # frequencies have 6 decimal places of precision?!  
- [ [Stations]  
- # 91.4  
- 91400000=Concert Radio  
- # 101.0 or so  
- 101000000 =National Radio  
- [[Buttons]  
- 1 =91400000  
- 2 =101000000  
+----  
+<verbatim>  
+[Stations]  
+88950000=The Generator  
+89750000=ZMFM  
+91400000=Concert Radio  
+91950000=scan-3  
+93000000=The Rock  
+93800000=Solid Gold  
+94540000=Life FM  
+96000000 =Radio Hauraki  
+96950000=scan-9  
+97790000 =scan-10  
+98590000=scan-12  
+99250000=scan-13  
+99950000=scan-14  
+100950000=National Radio  
+103340000 =scan-16  
  
+[Buttons]  
+1=88950000  
+2=89750000  
+3=91400000  
+5=93000000  
+6=93800000  
+7=96000000  
+8=100950000  
+</verbatim>  
+----  
 Gnome Radio is a nice gui for [GTK2] that can store frequencies and record streams onto disk as Wav, [MP3] or OggVorbis.%%% 
 RedHat users with Dags repo set up on Apt or yum can install `gnomeradio` 
  
  
@@ -32,8 +53,9 @@
 Step 2 - run the "radio" command or whatever program you use to get output to the sound card. 
  
 Step 3 - run the following commands (or put them in a script and run that). Press Ctrl-C to finish. 
 ---- 
+<verbatim>  
  #!/bin/sh 
  
  # -c 1 for mono 
  
@@ -50,14 +72,27 @@
  #If you prefer mp3, you could install "gogo" and use 
  #encodecmd="gogo stdin out.mp3" 
  
  sox -t ossdsp /dev/dsp -t wav -c 1 $rate $datatype - | $encodecmd 
+</verbatim>  
 ---- 
 Note that these commands aren't really radio-specific - they could be 
 used for recording anything, although the settings here are ok for radio-quality audio. Also, if you use [ALSA] then you will need to have [OSS]-emulation drivers loaded. 
  
 ---- 
 !!! Troubleshooting 
+!!UDev  
+[UDev] by default (at least in Debian and Ubuntu) doesn't create a symlink for /dev/radio (to /dev/radio0), but the 'radio' program tries to use /dev/radio.  
+  
+To tell udev to create a symlink, create a file called 00_video4linux.rules  
+in the /etc/udev/rules.d directory, with the following content:  
+<verbatim>  
+# make a symlink to the first radio device  
+KERNEL="radio0", SYMLINK="radio"  
+</verbatim>  
+  
+  
+!!Misc  
 The driver for the radio tuner on the saa7134 tv tuner card seemed to have been broken for LinuxKernel 2.6.8, but works again in 2.6.9. 
  
 ---- 
 [CategoryHardware]