Merged in alinjerpelea/nuttx (pull request #1048)

boards: arm: cxd56xx: audio: add power_control and audio_tone_generator

* boards: arm: cxd56xx: audio: add power_control

    Add a simeple way to control the audio power for userspace apps

    Signed-off-by: Alin Jerpelea <alin.jerpelea@sony.com>

* boards: arm: cxd56xx: audio: add audio_tone_generator

    Add a simple way to control the audio buzzer with defined frequency
    for userspace apps

    Signed-off-by: Alin Jerpelea <alin.jerpelea@sony.com>

Approved-by: Gregory Nutt <gnutt@nuttx.org>
This commit is contained in:
Alin Jerpelea
2019-10-11 15:46:15 +00:00
committed by Gregory Nutt
parent fae7e63479
commit 716c7c9bee
4 changed files with 132 additions and 0 deletions
@@ -63,6 +63,17 @@ extern "C"
#define EXTERN extern
#endif
/****************************************************************************
* Name: board_audio_power_control
*
* Description:
* Power on/off the audio on the board.
*
****************************************************************************/
bool board_audio_power_control(bool en);
/****************************************************************************
* Name: board_aca_power_control
*