Editing N900 FM radio receiver

Warning: You are not logged in. Your IP address will be recorded in this page's edit history.
The edit can be undone. Please check the comparison below to verify that this is what you want to do, and then save the changes below to finish undoing the edit.
Latest revision Your text
Line 11: Line 11:
==Software==
==Software==
-
 
===Kernel===
===Kernel===
 +
The FM receiver is implemented as a video4linux radio device by the [http://mxr.maemo.org/fremantle/source/kernel/drivers/media/radio/radio-bcm2048.c bcm2048] module.
 +
This controls the receiver over the [[N900 Hardware Bus I2C]].
-
The FM receiver is implemented as a video4linux radio device by the [http://mxr.maemo.org/fremantle/source/kernel/drivers/media/radio/radio-bcm2048.c bcm2048] module. This controls the receiver over the [[N900 Hardware Bus I2C]].
+
It appears as device /dev/radio1.
-
It appears as device <code>/dev/radio1</code>.
+
v4l2-ctl --all -d /dev/radio1
-
<pre>
+
Driver Info:
-
v4l2-ctl --all -d /dev/radio1
+
Driver name  : bcm2048
-
Driver Info:
+
Card type    : Broadcom bcm2048 FM Radio Recei
-
Driver name  : bcm2048
+
Bus info      : I2C: 0x22
-
Card type    : Broadcom bcm2048 FM Radio Recei
+
Driver version: 1
-
Bus info      : I2C: 0x22
+
Capabilities  : 0x00050400
-
Driver version: 1
+
Tuner
-
Capabilities  : 0x00050400
+
Radio
-
  Tuner
+
-
  Radio
+
  Video input : 0
  Video input : 0
-
Frequency: 1518400 (94.900000 MHz)
+
Frequency: 1518400 (94.900000 MHz)
-
Video Standard = 0x00000000
+
Video Standard = 0x00000000
-
Streaming Parameters Video Capture:
+
Streaming Parameters Video Capture:
-
Frames per second: 25.000 (25/1)
+
Frames per second: 25.000 (25/1)
-
Read buffers    : 0
+
Read buffers    : 0
-
Tuner:
+
Tuner:
-
Name                : FM Receiver
+
Name                : FM Receiver
-
Capabilities        : 62.5 Hz stereo  
+
Capabilities        : 62.5 Hz stereo  
-
Frequency range      : 87.5 MHz - 108.0 MHz
+
Frequency range      : 87.5 MHz - 108.0 MHz
-
Signal strength/AFC  : 0%/0
+
Signal strength/AFC  : 0%/0
-
Current audio mode  : stereo
+
Current audio mode  : stereo
-
Available subchannels: stereo  
+
Available subchannels: stereo  
-
</pre>
+
The module is only loaded when the radio is used.
The module is only loaded when the radio is used.
-
 
-
It is also exposed under sysfs.
 
-
<pre>
 
-
/sys/class/i2c-adapter/i2c-3/3-0022# ls
 
-
audio_route              fm_rssi                  rds_data
 
-
bus                      fm_search_mode_direction  rds_pi
 
-
dac_output                fm_search_rssi_threshold  rds_pi_mask
 
-
driver                    fm_search_tune_mode      rds_pi_match
 
-
fm_af_frequency          modalias                  rds_ps
 
-
fm_best_tune_mode        mute                      rds_rt
 
-
fm_carrier_error          name                      rds_wline
 
-
fm_deemphasis            power                    region
 
-
fm_frequency              power_state              region_bottom_frequency
 
-
fm_hi_lo_injection        rds                      region_top_frequency
 
-
fm_rds_flags              rds_b_block_mask          subsystem
 
-
fm_rds_mask              rds_b_block_match        uevent
 
-
</pre>
 
-
The sysfs interface allows configuration of region (which affects frequency ranges and other parameters).
 
===User===
===User===
-
 
+
The only (?) userspace application that uses the FM receiver is [http://maemo.org/packages/package_instance/view/fremantle_extras_free_armel/fmradio/2010.03.20/ FMRadio].
-
There are 3 userspace application that uses the FM receiver:
+
-
 
+
-
[http://maemo.org/packages/view/fmradio/ FMRadio],
+
-
[http://maemo.org/packages/view/qradio/ QRadio]
+
-
and
+
-
[http://maemo.org/packages/view/cfmradio/ C FM Radio]
+
[[Category:N900 Hardware]]
[[Category:N900 Hardware]]

Learn more about Contributing to the wiki.


Please note that all contributions to maemo.org wiki may be edited, altered, or removed by other contributors. If you do not want your writing to be edited mercilessly, then do not submit it here.
You are also promising us that you wrote this yourself, or copied it from a public domain or similar free resource (see maemo.org wiki:Copyrights for details). Do not submit copyrighted work without permission!


Cancel | Editing help (opens in new window)