asoc: lpass-cdc: Update compander zone settings for macros
Update compander settings table to calculate based on upper gain and lower gain. Change-Id: Ib423f3c14c900c0df03bc8fcab2df0f62fb614f1 Signed-off-by: Laxminath Kasam <lkasam@codeaurora.org>
This commit is contained in:
@@ -6,18 +6,22 @@
|
||||
|
||||
#include <sound/soc.h>
|
||||
|
||||
#define COMP_MAX_SETTING 12
|
||||
|
||||
struct comp_coeff_val {
|
||||
u8 lsb;
|
||||
u8 msb;
|
||||
};
|
||||
|
||||
struct lpass_cdc_comp_setting {
|
||||
int upper_gain_int;
|
||||
int lower_gain_int;
|
||||
int ana_addr_map;
|
||||
};
|
||||
|
||||
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);
|
||||
|
||||
u16 start_addr,
|
||||
struct lpass_cdc_comp_setting *comp_setting);
|
||||
#endif
|
||||
|
Reference in New Issue
Block a user