fm/qcom/fmradio/FmTransceiver.java
public boolean enable (FmConfig configSettings, int device){

      boolean status;
      //Acquire the deviceon Enable
      if( !acquire("/dev/radio0")){
         return false;
      }
      Log.d(TAG, "turning on " + device);
      mControl.fmOn(sFd, device);

      Log.d(TAG, "Calling fmConfigure");
      status = FmConfig.fmConfigure (sFd, configSettings);
      if (!status) {
          Log.d(TAG, "fmConfigure failed");
          FmReceiverJNI.closeFdNative(sFd);
          sFd = 0;
      }
      return status;
   }
/**
   *    Initializes the FM device.
   *    <p>
   *    This is a synchronous call is used to initialize the FM
   *    tranceiver. If already initialized this function will
   *    intialize the tranceiver with default settings. Only after
   *    successfully calling this function can many of the FM device
   *    interfaces be used.
   *    <p>
   *    When enabling the receiver, the client must also provide
   *    the regional settings in which the receiver will operate.
   *    These settings (included in configSettings) are typically
   *    used for setting up the FM receiver for operating in a
   *    particular geographical region. These settings can be
   *    changed after the FM driver is enabled through the use of
   *    the function #configure.
   *    <p>
   *    This call can only be issued by the owner of an FM
   *    receiver.  To issue this call, the client must first
   *    successfully call #acquire.
   *    <p>
   *    @param configSettings  the settings to be applied when
   *                             turning on the radio
   *    @return true if Initialization succeeded, false if
   *            Initialization failed.
   *    @see   #registerClient
   *    @see   #disable
   *
   */
Initializes the FM device.

This is a synchronous call is used to initialize the FM
tranceiver. If already initialized this function will
intialize the tranceiver with default settings. Only after
successfully calling this function can many of the FM device
interfaces be used.

When enabling the receiver, the client must also provide
the regional settings in which the receiver will operate.
These settings (included in configSettings) are typically
used for setting up the FM receiver for operating in a
particular geographical region. These settings can be
changed after the FM driver is enabled through the use of
the function #configure.

This call can only be issued by the owner of an FM
receiver.  To issue this call, the client must first
successfully call #acquire.

@param configSettings  the settings to be applied when
turning on the radio
@return true if Initialization succeeded, false if
Initialization failed.
@see   #registerClient
@see   #disable
Initializes the FM device . This is a synchronous call is used to initialize the FM tranceiver . If already initialized this function will intialize the tranceiver with default settings . Only after successfully calling this function can many of the FM device interfaces be used . When enabling the receiver the client must also provide the regional settings in which the receiver will operate . These settings ( included in configSettings ) are typically used for setting up the FM receiver for operating in a particular geographical region . These settings can be changed after the FM driver is enabled through the use of the function #configure . This call can only be issued by the owner of an FM receiver . To issue this call the client must first successfully call #acquire . @param configSettings the settings to be applied when turning on the radio @return true if Initialization succeeded false if Initialization failed . @see #registerClient @see #disable
public boolean enable (FmConfig configSettings, int device){
      boolean status;
      if( !acquire("/dev/radio0")){
         return false;
      }
      Log.d(TAG, "turning on " + device);
      mControl.fmOn(sFd, device);
      Log.d(TAG, "Calling fmConfigure");
      status = FmConfig.fmConfigure (sFd, configSettings);
      if (!status) {
          Log.d(TAG, "fmConfigure failed");
          FmReceiverJNI.closeFdNative(sFd);
          sFd = 0;
      }
      return status;
   }
public boolean enable ( FmConfig configSettings , int device ) { boolean status ; if ( ! acquire ( "/dev/radio0" ) ) { return false ; } Log . d ( TAG , "turning on " + device ) ; mControl . fmOn ( sFd , device ) ; Log . d ( TAG , "Calling fmConfigure" ) ; status = FmConfig . fmConfigure ( sFd , configSettings ) ; if ( ! status ) { Log . d ( TAG , "fmConfigure failed" ) ; FmReceiverJNI . closeFdNative ( sFd ) ; sFd = 0 ; } return status ; }
Initializes the FM device.
Initializes the FM device .
//Acquire the deviceon Enable