Logo Search packages:      
Sourcecode: linux-fsl-imx51 version File versions  Download package

PMIC_STATUS pmic_audio_output_disable_phantom_ground (  ) 

Disable the phantom ground circuit that is used to help identify the type of headset that has been inserted.

This function disables the phantom ground circuit that is used to help identify the type of headset (e.g., stereo or mono) that has been inserted.

Parameters:
handle Device handle from pmic_audio_open() call.
Return values:
PMIC_SUCCESS If the phantom ground circuit was successfully disabled.
PMIC_PARAMETER_ERROR If the handle was invalid.
PMIC_ERROR If the phantom ground circuit could not be disabled.

Definition at line 5406 of file pmic_audio.c.

References pmic_write_reg(), and SET_BITS.

{
      PMIC_STATUS rc = PMIC_PARAMETER_ERROR;
      const unsigned int reg_mask = SET_BITS(regAUDIO_RX_0, HSPGDIS, 1);

      /* No critical section required here since we are not updating any
       * global data.
       */

      rc = pmic_write_reg(REG_AUDIO_RX_0, 1, reg_mask);
      if (rc == PMIC_SUCCESS) {
            pr_debug("Phantom ground disabled\n");

      }
      return rc;
}


Generated by  Doxygen 1.6.0   Back to index