|
Zephyr Project API 4.0.0
A Scalable Open Source RTOS
|
Public APIs for the DAI (Digital Audio Interface) bus drivers. More...
Go to the source code of this file.
Data Structures | |
| struct | dai_properties |
| DAI properties. More... | |
| struct | dai_config |
| Main DAI config structure. More... | |
| struct | dai_ts_cfg |
| DAI timestamp configuration. More... | |
| struct | dai_ts_data |
| DAI timestamp data. More... | |
Macros | |
| #define | DAI_FORMAT_CLOCK_PROVIDER_MASK 0xf000 |
| Used to extract the clock configuration from the format attribute of struct dai_config. | |
| #define | DAI_FORMAT_PROTOCOL_MASK 0x000f |
| Used to extract the protocol from the format attribute of struct dai_config. | |
| #define | DAI_FORMAT_CLOCK_INVERSION_MASK 0x0f00 |
| Used to extract the clock inversion from the format attribute of struct dai_config. | |
Functions | |
| static int | dai_probe (const struct device *dev) |
| Probe operation of DAI driver. | |
| static int | dai_remove (const struct device *dev) |
| Remove operation of DAI driver. | |
| static int | dai_config_set (const struct device *dev, const struct dai_config *cfg, const void *bespoke_cfg) |
| Configure operation of a DAI driver. | |
| static int | dai_config_get (const struct device *dev, struct dai_config *cfg, enum dai_dir dir) |
| Fetch configuration information of a DAI driver. | |
| static const struct dai_properties * | dai_get_properties (const struct device *dev, enum dai_dir dir, int stream_id) |
| Fetch properties of a DAI driver. | |
| static int | dai_trigger (const struct device *dev, enum dai_dir dir, enum dai_trigger_cmd cmd) |
| Send a trigger command. | |
| static int | dai_ts_config (const struct device *dev, struct dai_ts_cfg *cfg) |
| Configures timestamping in attached DAI. | |
| static int | dai_ts_start (const struct device *dev, struct dai_ts_cfg *cfg) |
| Starts timestamping. | |
| static int | dai_ts_stop (const struct device *dev, struct dai_ts_cfg *cfg) |
| Stops timestamping. | |
| static int | dai_ts_get (const struct device *dev, struct dai_ts_cfg *cfg, struct dai_ts_data *tsd) |
| Gets timestamp. | |
| static int | dai_config_update (const struct device *dev, const void *bespoke_cfg, size_t size) |
| Update DAI configuration at runtime. | |
Public APIs for the DAI (Digital Audio Interface) bus drivers.