fm/qcom/fmradio/FmTransmitter.java
public boolean enable (FmConfig configSettings){
      boolean status = false;

      int state = getFMState();
      if (state == FMState_Tx_Turned_On) {
          Log.d(TAG, "enable: FM Tx already turned On and running");
          return status;
      }else if (state == subPwrLevel_FMTurning_Off) {
          Log.v(TAG, "FM is in the process of turning off.Pls wait for sometime.");
          return status;
      }else if((state == subPwrLevel_FMTx_Starting)
                ||(state == subPwrLevel_FMRx_Starting)) {
          Log.v(TAG, "FM is in the process of turning On.Pls wait for sometime.");
          return status;
      }else if((state == FMState_Srch_InProg)
                ||(state == FMState_Rx_Turned_On)) {
          Log.v(TAG, "FM Rx is turned on");
          return status;
      }
      setFMPowerState(subPwrLevel_FMTx_Starting);
      Log.v(TAG, "enable: CURRENT-STATE : FMOff ---> NEW-STATE : FMTxStarting");
      status = super.enable(configSettings, FmTransceiver.FM_TX);
      if(status == true) {
         registerTransmitClient(mTxCallbacks);
         mRdsData = new FmRxRdsData(sFd);
      } else {
         status = false;
         Log.e(TAG, "enable: failed to turn On FM TX");
         Log.e(TAG, "enable: CURRENT-STATE : FMTxStarting ---> NEW-STATE : FMOff");
         setFMPowerState(FMState_Turned_Off);
      }
      return status;
   }
/**
    *  Enables the FM device in Transmit Mode.
    *  <p>
    *  This is a synchronous method used to initialize the FM
    *  device in transmitt mode. If already initialized this function will
    *  intialize the Fm device with default settings. Only after
    *  successfully calling this function can many of the FM device
    *  interfaces be used.
    *  <p>
    *  When enabling the transmitter, the application must also
    *  provide the regional settings in which the transmitter will
    *  operate. These settings (included in argument
    *  configSettings) are typically used for setting up the FM
    *  Transmitter for operating in a particular geographical
    *  region. These settings can be changed after the FM driver
    *  is enabled through the use of the function {@link
    *  #configure}.
    *  <p>
    *  This command can only be issued by the owner of an FM
    *  transmitter.
    *
    *  @param configSettings  the settings to be applied when
    *                           turning on the radio
    *  @return true if Initialization succeeded, false if
    *          Initialization failed.
    *  <p>
    *  @see #enable
    *  @see #registerTransmitClient
    *  @see #disable
    *
    */
Enables the FM device in Transmit Mode.

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

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

This command can only be issued by the owner of an FM
transmitter.

@param configSettings  the settings to be applied when
turning on the radio
@return true if Initialization succeeded, false if
Initialization failed.
Enables the FM device in Transmit Mode . This is a synchronous method used to initialize the FM device in transmitt mode . If already initialized this function will intialize the Fm device with default settings . Only after successfully calling this function can many of the FM device interfaces be used . When enabling the transmitter the application must also provide the regional settings in which the transmitter will operate . These settings ( included in argument configSettings ) are typically used for setting up the FM Transmitter for operating in a particular geographical region . These settings can be changed after the FM driver is enabled through the use of the function { @link #configure } . This command can only be issued by the owner of an FM transmitter . @param configSettings the settings to be applied when turning on the radio @return true if Initialization succeeded false if Initialization failed .
public boolean enable (FmConfig configSettings){
      boolean status = false;
      int state = getFMState();
      if (state == FMState_Tx_Turned_On) {
          Log.d(TAG, "enable: FM Tx already turned On and running");
          return status;
      }else if (state == subPwrLevel_FMTurning_Off) {
          Log.v(TAG, "FM is in the process of turning off.Pls wait for sometime.");
          return status;
      }else if((state == subPwrLevel_FMTx_Starting)
                ||(state == subPwrLevel_FMRx_Starting)) {
          Log.v(TAG, "FM is in the process of turning On.Pls wait for sometime.");
          return status;
      }else if((state == FMState_Srch_InProg)
                ||(state == FMState_Rx_Turned_On)) {
          Log.v(TAG, "FM Rx is turned on");
          return status;
      }
      setFMPowerState(subPwrLevel_FMTx_Starting);
      Log.v(TAG, "enable: CURRENT-STATE : FMOff ---> NEW-STATE : FMTxStarting");
      status = super.enable(configSettings, FmTransceiver.FM_TX);
      if(status == true) {
         registerTransmitClient(mTxCallbacks);
         mRdsData = new FmRxRdsData(sFd);
      } else {
         status = false;
         Log.e(TAG, "enable: failed to turn On FM TX");
         Log.e(TAG, "enable: CURRENT-STATE : FMTxStarting ---> NEW-STATE : FMOff");
         setFMPowerState(FMState_Turned_Off);
      }
      return status;
   }
public boolean enable ( FmConfig configSettings ) { boolean status = false ; int state = getFMState ( ) ; if ( state == FMState_Tx_Turned_On ) { Log . d ( TAG , "enable: FM Tx already turned On and running" ) ; return status ; } else if ( state == subPwrLevel_FMTurning_Off ) { Log . v ( TAG , "FM is in the process of turning off.Pls wait for sometime." ) ; return status ; } else if ( ( state == subPwrLevel_FMTx_Starting ) || ( state == subPwrLevel_FMRx_Starting ) ) { Log . v ( TAG , "FM is in the process of turning On.Pls wait for sometime." ) ; return status ; } else if ( ( state == FMState_Srch_InProg ) || ( state == FMState_Rx_Turned_On ) ) { Log . v ( TAG , "FM Rx is turned on" ) ; return status ; } setFMPowerState ( subPwrLevel_FMTx_Starting ) ; Log . v ( TAG , "enable: CURRENT-STATE : FMOff ---> NEW-STATE : FMTxStarting" ) ; status = super . enable ( configSettings , FmTransceiver . FM_TX ) ; if ( status == true ) { registerTransmitClient ( mTxCallbacks ) ; mRdsData = new FmRxRdsData ( sFd ) ; } else { status = false ; Log . e ( TAG , "enable: failed to turn On FM TX" ) ; Log . e ( TAG , "enable: CURRENT-STATE : FMTxStarting ---> NEW-STATE : FMOff" ) ; setFMPowerState ( FMState_Turned_Off ) ; } return status ; }
Enables the FM device in Transmit Mode.
Enables the FM device in Transmit Mode .