asoc: lpass-cdc: Update path_gain common for RX/WSA
In unified compander design, path gain for rx and wsa macros vary. Update common logic to use and derive required path_gain setting for respective macros. Change-Id: I64dcb4e36a703e8effd069d2c68b7045920a77b0 Signed-off-by: Laxminath Kasam <lkasam@codeaurora.org>
This commit is contained in:
@@ -103,7 +103,7 @@ int lpass_cdc_update_compander_setting(struct snd_soc_component *component,
|
||||
start_addr + 0x20,
|
||||
max_attn);
|
||||
|
||||
path_gain = upper_gain_int;
|
||||
path_gain = zone6_rms - abs(lower_gain_int);
|
||||
snd_soc_component_write(component,
|
||||
start_addr + 0x24,
|
||||
path_gain);
|
||||
|
Reference in New Issue
Block a user