|
Sound Open Firmware
|
Audio sample format conversion and size calculation helpers for modules. More...


Go to the source code of this file.
Functions | |
| static uint32_t | get_sample_bytes (enum sof_ipc_frame fmt) |
| Get the byte size of a single audio sample for a given frame format. | |
| static uint32_t | get_sample_bitdepth (enum sof_ipc_frame fmt) |
| Get the bit depth of a single audio sample for a given frame format. | |
| static uint32_t | get_frame_bytes (enum sof_ipc_frame fmt, uint32_t channels) |
| Get the byte size of an entire multi-channel audio frame. | |
Audio sample format conversion and size calculation helpers for modules.
|
inlinestatic |
Get the byte size of an entire multi-channel audio frame.
| fmt | Audio frame format enum (enum sof_ipc_frame). |
| channels | Number of audio channels. |
|
inlinestatic |
Get the bit depth of a single audio sample for a given frame format.
| fmt | Audio frame format enum (enum sof_ipc_frame). |
|
inlinestatic |
Get the byte size of a single audio sample for a given frame format.
| fmt | Audio frame format enum (enum sof_ipc_frame). |