asoc: wsa884x: fix device tree parsing issue for sys gain
System gain is miscalculated due to incorrect parsing of device tree property. Correct the parsing logic of the system gain device tree property. Change-Id: I8c9c5198a139a69c2d5d9520a071123261b0581f Signed-off-by: Phani Kumar Uppalapati <quic_phaniu@quicinc.com>
This commit is contained in:

کامیت شده توسط
Vangala, Amarnath

والد
3737f300d4
کامیت
7288435e01
@@ -2249,7 +2249,7 @@ static int wsa884x_swr_probe(struct swr_device *pdev)
|
||||
goto err_mem;
|
||||
}
|
||||
|
||||
sys_gain_length = sys_gain_size / (2 * sizeof(u32));
|
||||
sys_gain_length = sys_gain_size / sizeof(u32);
|
||||
ret = of_property_read_u32_array(
|
||||
wsa884x->macro_dev->dev.of_node,
|
||||
"qcom,wsa-system-gains", wsa884x->sys_gains,
|
||||
|
مرجع در شماره جدید
Block a user