TI's V4L2 based FM driver Test Procedure

Validating the presence of the FM driver in Kernel
After booting the board look for /dev/radio0 device node which indicates the presence of the FM driver built-in within the kernel

Testing FM Radio
There are 2 ways to test the FM,
 * Command line app - kfmapp
 * GUI application

kfmapp
Kfmapp is the CLI test tool used to test the TI's V4L2 based FM driver.


 * Execute following commands from CLI.
 * $ kfmapp (This steps shows below result)

Opening device '/dev/radio0' ***/dev/radio0 Info **** Driver      : ti_fmdrv Card        : TI FM Radio Bus         : UART Capabilities : 0x10f0500 1 FM RX                 2 FM TX                  3 Exit

Now you can choose between FM RX (press 1)and FM TX (press 2)

Below is the list of avilable FM RX Commands:
 * f tune to freq(in MHz)
 * gf get frequency(MHz)
 * gr get rssi level
 * t turns RDS on/off
 * gt get RDS on/off
 * + increases the volume
 * - decreases the volume
 * v <0-65535> sets the volume
 * gv get volume
 * b Band switch(0=US/Eur, 1=Japan, 2=Russian and 3=Weather)
 * gb get band
 * s switches stereo / mono
 * gs get stereo/mono mode
 * m changes mute mode
 * gm get mute mode
 * c set rds af switch(0-OFF & 1=ON)
 * gc get rds af switch
 * w Enable/Disable wrap around seek
 * < seek down
 * > seek up
 * C Complete Scan
 * ? <(0)-(127)> set RSSI threshold
 * g? get rssi threshold
 * ga get tuner attributes
 * A Start FM RX Analog Audio Routing
 * D Start FM RX Digital Audio Routing
 * q quit rx menu

Available FM Transmitter Commands:
 * f tune to freq(in MHz)
 * gf get frequency(MHz)
 * e set pre-emphasis filter value(0 = OFF, 1 = 50 usec and 2 = 75 usec)
 * p set FM TX powerlevel (91 - 122)
 * 1 to set RDS Radio Text
 * 2 to set RDS Radio PS Name
 * 3 to set RDS Radio PI code
 * 4 to set RDS Radio PTY
 * 5  to set RDS Radio Alternate Frequency

FM GUI
TI's own FM GUI solution for Wilink chip-sets.

"FM Receiver"
 * Navigate to Android Applications screen and click on "FM Radio" GUI. FM GUI should turn up and FM Rx audio shall be heard on headset.

"FM Transmitter"
 * Navigate to Android Applications screen and Turn FM Tx UI app on
 * After FM Tx is powered on, enter the transmission frequency. [Note: the frequency chosen for transmission should not already have a valid station transmitting on that channel. Also, the input to the frequency given in UI is in MHz so for eg to input 100Mhz enter 100 Mhz]
 * Select “Start Tx On” and press Ok to start transmission
 * If “Check to Start” button is checked on UI launch enter frequency in Mhz and press OK to start transmission.
 * Now go to media player and start playing the song which you wants to transmitt
 * Take an other FM Radio(your cell phones FM radio will do) and tune to the frequency in which FM TX is transmitting, you should hear the song which is transmitted by the FM Transmitter.