Zephyr API Documentation
2.7.0-rc2
A Scalable Open Source RTOS
|
Public API header file for Audio Codec. More...
#include <drivers/i2s.h>
Go to the source code of this file.
Data Structures | |
union | audio_dai_cfg_t |
struct | audio_codec_cfg |
union | audio_property_value_t |
Enumerations | |
enum | audio_pcm_rate_t { AUDIO_PCM_RATE_8K = 8000 , AUDIO_PCM_RATE_16K = 16000 , AUDIO_PCM_RATE_24K = 24000 , AUDIO_PCM_RATE_32K = 32000 , AUDIO_PCM_RATE_44P1K = 44100 , AUDIO_PCM_RATE_48K = 48000 , AUDIO_PCM_RATE_96K = 96000 , AUDIO_PCM_RATE_192K = 192000 } |
enum | audio_pcm_width_t { AUDIO_PCM_WIDTH_16_BITS = 16 , AUDIO_PCM_WIDTH_20_BITS = 20 , AUDIO_PCM_WIDTH_24_BITS = 24 , AUDIO_PCM_WIDTH_32_BITS = 32 } |
enum | audio_dai_type_t { AUDIO_DAI_TYPE_I2S , AUDIO_DAI_TYPE_INVALID } |
enum | audio_property_t { AUDIO_PROPERTY_OUTPUT_VOLUME , AUDIO_PROPERTY_OUTPUT_MUTE } |
enum | audio_channel_t { AUDIO_CHANNEL_FRONT_LEFT , AUDIO_CHANNEL_FRONT_RIGHT , AUDIO_CHANNEL_LFE , AUDIO_CHANNEL_FRONT_CENTER , AUDIO_CHANNEL_REAR_LEFT , AUDIO_CHANNEL_REAR_RIGHT , AUDIO_CHANNEL_REAR_CENTER , AUDIO_CHANNEL_SIDE_LEFT , AUDIO_CHANNEL_SIDE_RIGHT , AUDIO_CHANNEL_ALL } |
Functions | |
static int | audio_codec_configure (const struct device *dev, struct audio_codec_cfg *cfg) |
Configure the audio codec. More... | |
static void | audio_codec_start_output (const struct device *dev) |
Set codec to start output audio playback. More... | |
static void | audio_codec_stop_output (const struct device *dev) |
Set codec to stop output audio playback. More... | |
static int | audio_codec_set_property (const struct device *dev, audio_property_t property, audio_channel_t channel, audio_property_value_t val) |
Set a codec property defined by audio_property_t. More... | |
static int | audio_codec_apply_properties (const struct device *dev) |
Atomically apply any cached properties. More... | |
Public API header file for Audio Codec.
This file contains the Audio Codec APIs