Files
android_kernel_samsung_sm86…/asoc/codecs/lpass-cdc/lpass-cdc-comp.h
Laxminath Kasam ab521cd5c8 asoc: lpass-cdc: Add support for unified compander
On lpass-cdc 2.5 support unified compander. Update macros
to align to this feature.

Change-Id: Id444116511db48e8f20948ed7fc4af4fca87b8e4
Signed-off-by: Laxminath Kasam <lkasam@codeaurora.org>
2020-12-04 04:38:28 -08:00

24 lines
564 B
C

/* SPDX-License-Identifier: GPL-2.0-only */
/* Copyright (c) 2020, The Linux Foundation. All rights reserved.
*/
#ifndef LPASS_CDC_COMP_H
#define LPASS_CDC_COMP_H
#include <sound/soc.h>
#define COMP_MAX_SETTING 12
struct comp_coeff_val {
u8 lsb;
u8 msb;
};
int lpass_cdc_load_compander_coeff(struct snd_soc_component *component,
u16 lsb_reg, u16 msb_reg,
struct comp_coeff_val *comp_coeff_table,
u16 arr_size);
int lpass_cdc_update_compander_setting(struct snd_soc_component *component,
u16 start_addr, u8 *reg_val);
#endif