fm/qcom/fmradio/FmTransceiver.java
protected boolean acquire(String device){
      boolean bStatus = true;
      if (sFd <= 0) { // if previous open fails fd will be -ve.
         sFd = FmReceiverJNI.acquireFdNative(V4L2_DEVICE);

         if (sFd > 0) {
            Log.d(TAG, "Opened "+ sFd);
            bStatus = true;
         }
         else {
            Log.d(TAG, "Fail to Open "+ sFd);
	    bStatus = false;
         }
      }
      else {
         Log.d(TAG, "Already Opened:" + sFd);
         /*This should be case
          * Where User try to opne the device
          * secondtime.
          * Case where Tx and Rx try to
          * acquire the device
          */
         bStatus = false;
       }
      return (bStatus);
   }
/**
   *    Allows access to the V4L2 FM device.
   *
   *    This synchronous call allows a client to use the V4L2 FM
   *    device. This must be the first call issued by the client
   *    before any receiver interfaces can be used.
   *
   *    This call also powers up the FM Module.
   *
   *    @param device String that is path to radio device
   *
   *    @return true if V4L2 FM device acquired, false if V4L2 FM
   *            device could not be acquired, possibly acquired by
   *            other client
   *    @see   #release
   *
   */
Allows access to the V4L2 FM device.
This synchronous call allows a client to use the V4L2 FM
device. This must be the first call issued by the client
before any receiver interfaces can be used.

This call also powers up the FM Module.

@param device String that is path to radio device

@return true if V4L2 FM device acquired, false if V4L2 FM
device could not be acquired, possibly acquired by
other client
@see   #release
Allows access to the V4L2 FM device . This synchronous call allows a client to use the V4L2 FM device . This must be the first call issued by the client before any receiver interfaces can be used . This call also powers up the FM Module . @param device String that is path to radio device @return true if V4L2 FM device acquired false if V4L2 FM device could not be acquired possibly acquired by other client @see #release
protected boolean acquire(String device){
      boolean bStatus = true;
      if (sFd <= 0) { 
         sFd = FmReceiverJNI.acquireFdNative(V4L2_DEVICE);
         if (sFd > 0) {
            Log.d(TAG, "Opened "+ sFd);
            bStatus = true;
         }
         else {
            Log.d(TAG, "Fail to Open "+ sFd);
	    bStatus = false;
         }
      }
      else {
         Log.d(TAG, "Already Opened:" + sFd);
         /*This should be case
          * Where User try to opne the device
          * secondtime.
          * Case where Tx and Rx try to
          * acquire the device
          */
         bStatus = false;
       }
      return (bStatus);
   }
protected boolean acquire ( String device ) { boolean bStatus = true ; if ( sFd <= 0 ) { sFd = FmReceiverJNI . acquireFdNative ( V4L2_DEVICE ) ; if ( sFd > 0 ) { Log . d ( TAG , "Opened " + sFd ) ; bStatus = true ; } else { Log . d ( TAG , "Fail to Open " + sFd ) ; bStatus = false ; } } else { Log . d ( TAG , "Already Opened:" + sFd ) ; /*This should be case
          * Where User try to opne the device
          * secondtime.
          * Case where Tx and Rx try to
          * acquire the device
          */ bStatus = false ; } return ( bStatus ) ; }
Allows access to the V4L2 FM device.
Allows access to the V4L2 FM device .
// if previous open fails fd will be -ve.