Sound Open Firmware
Loading...
Searching...
No Matches
a_law.h
Go to the documentation of this file.
1/* SPDX-License-Identifier: BSD-3-Clause
2 *
3 * Copyright(c) 2025 Intel Corporation.
4 */
5
6#ifndef __SOF_MATH_A_LAW_H__
7#define __SOF_MATH_A_LAW_H__
8
9#include <stdint.h>
10
22uint8_t sofm_a_law_encode(int16_t sample);
23
34int16_t sofm_a_law_decode(int8_t byte);
35
36#endif /* __SOF_MATH_A_LAW_H__ */
int16_t sofm_a_law_decode(int8_t byte)
sofm_a_law_decode() - Decode A-law encoded code word
uint8_t sofm_a_law_encode(int16_t sample)
sofm_a_law_encode() - Encode sample with A-law coding