si470x.rst 5.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165
  1. .. include:: <isonum.txt>
  2. The Silicon Labs Si470x FM Radio Receivers driver
  3. =================================================
  4. Copyright |copy| 2009 Tobias Lorenz <tobias.lorenz@gmx.net>
  5. Information from Silicon Labs
  6. -----------------------------
  7. Silicon Laboratories is the manufacturer of the radio ICs, that nowadays are the
  8. most often used radio receivers in cell phones. Usually they are connected with
  9. I2C. But SiLabs also provides a reference design, which integrates this IC,
  10. together with a small microcontroller C8051F321, to form a USB radio.
  11. Part of this reference design is also a radio application in binary and source
  12. code. The software also contains an automatic firmware upgrade to the most
  13. current version. Information on these can be downloaded here:
  14. http://www.silabs.com/usbradio
  15. Supported ICs
  16. -------------
  17. The following ICs have a very similar register set, so that they are or will be
  18. supported somewhen by the driver:
  19. - Si4700: FM radio receiver
  20. - Si4701: FM radio receiver, RDS Support
  21. - Si4702: FM radio receiver
  22. - Si4703: FM radio receiver, RDS Support
  23. - Si4704: FM radio receiver, no external antenna required
  24. - Si4705: FM radio receiver, no external antenna required, RDS support, Dig I/O
  25. - Si4706: Enhanced FM RDS/TMC radio receiver, no external antenna required, RDS
  26. Support
  27. - Si4707: Dedicated weather band radio receiver with SAME decoder, RDS Support
  28. - Si4708: Smallest FM receivers
  29. - Si4709: Smallest FM receivers, RDS Support
  30. More information on these can be downloaded here:
  31. http://www.silabs.com/products/mcu/Pages/USBFMRadioRD.aspx
  32. Supported USB devices
  33. ---------------------
  34. Currently the following USB radios (vendor:product) with the Silicon Labs si470x
  35. chips are known to work:
  36. - 10c4:818a: Silicon Labs USB FM Radio Reference Design
  37. - 06e1:a155: ADS/Tech FM Radio Receiver (formerly Instant FM Music) (RDX-155-EF)
  38. - 1b80:d700: KWorld USB FM Radio SnapMusic Mobile 700 (FM700)
  39. - 10c5:819a: Sanei Electric, Inc. FM USB Radio (sold as DealExtreme.com PCear)
  40. Software
  41. --------
  42. Testing is usually done with most application under Debian/testing:
  43. - fmtools - Utility for managing FM tuner cards
  44. - gnomeradio - FM-radio tuner for the GNOME desktop
  45. - gradio - GTK FM radio tuner
  46. - kradio - Comfortable Radio Application for KDE
  47. - radio - ncurses-based radio application
  48. - mplayer - The Ultimate Movie Player For Linux
  49. - v4l2-ctl - Collection of command line video4linux utilities
  50. For example, you can use:
  51. .. code-block:: none
  52. v4l2-ctl -d /dev/radio0 --set-ctrl=volume=10,mute=0 --set-freq=95.21 --all
  53. There is also a library libv4l, which can be used. It's going to have a function
  54. for frequency seeking, either by using hardware functionality as in radio-si470x
  55. or by implementing a function as we currently have in every of the mentioned
  56. programs. Somewhen the radio programs should make use of libv4l.
  57. For processing RDS information, there is a project ongoing at:
  58. http://rdsd.berlios.de/
  59. There is currently no project for making TMC sentences human readable.
  60. Audio Listing
  61. -------------
  62. USB Audio is provided by the ALSA snd_usb_audio module. It is recommended to
  63. also select SND_USB_AUDIO, as this is required to get sound from the radio. For
  64. listing you have to redirect the sound, for example using one of the following
  65. commands. Please adjust the audio devices to your needs (/dev/dsp* and hw:x,x).
  66. If you just want to test audio (very poor quality):
  67. .. code-block:: none
  68. cat /dev/dsp1 > /dev/dsp
  69. If you use sox + OSS try:
  70. .. code-block:: none
  71. sox -2 --endian little -r 96000 -t oss /dev/dsp1 -t oss /dev/dsp
  72. or using sox + alsa:
  73. .. code-block:: none
  74. sox --endian little -c 2 -S -r 96000 -t alsa hw:1 -t alsa -r 96000 hw:0
  75. If you use arts try:
  76. .. code-block:: none
  77. arecord -D hw:1,0 -r96000 -c2 -f S16_LE | artsdsp aplay -B -
  78. If you use mplayer try:
  79. .. code-block:: none
  80. mplayer -radio adevice=hw=1.0:arate=96000 \
  81. -rawaudio rate=96000 \
  82. radio://<frequency>/capture
  83. Module Parameters
  84. -----------------
  85. After loading the module, you still have access to some of them in the sysfs
  86. mount under /sys/module/radio_si470x/parameters. The contents of read-only files
  87. (0444) are not updated, even if space, band and de are changed using private
  88. video controls. The others are runtime changeable.
  89. Errors
  90. ------
  91. Increase tune_timeout, if you often get -EIO errors.
  92. When timed out or band limit is reached, hw_freq_seek returns -EAGAIN.
  93. If you get any errors from snd_usb_audio, please report them to the ALSA people.
  94. Open Issues
  95. -----------
  96. V4L minor device allocation and parameter setting is not perfect. A solution is
  97. currently under discussion.
  98. There is an USB interface for downloading/uploading new firmware images. Support
  99. for it can be implemented using the request_firmware interface.
  100. There is a RDS interrupt mode. The driver is already using the same interface
  101. for polling RDS information, but is currently not using the interrupt mode.
  102. There is a LED interface, which can be used to override the LED control
  103. programmed in the firmware. This can be made available using the LED support
  104. functions in the kernel.
  105. Other useful information and links
  106. ----------------------------------
  107. http://www.silabs.com/usbradio