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>
This commit is contained in:
Laxminath Kasam
2020-10-21 17:18:37 +05:30
committed by Gerrit - the friendly Code Review server
parent eca32d433e
commit ab521cd5c8
5 changed files with 218 additions and 67 deletions

View File

@@ -0,0 +1,23 @@
/* 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