asoc: codecs: Fix WSA PBR equation
Update equation that converts from the PBR table to the correct register value. Improve accuracy of truncation by moving the division into one operation at the end of the formula and adding 1. Update a few table values that were copied incorrectly. Change-Id: I685c02778468e910820a90e2de216e0daf2491ac Signed-off-by: Matthew Rice <quic_mrice@quicinc.com>
这个提交包含在:

提交者
Gerrit - the friendly Code Review server

父节点
99585c50e4
当前提交
2e8c4069b5
@@ -85,7 +85,7 @@ enum {
|
||||
};
|
||||
|
||||
#define WSA884X_VTH_TO_REG(vth) \
|
||||
((vth) != 0 ? (((vth) - 150 / PBR_MAX_VOLTAGE) * PBR_MAX_CODE / 100) : 0)
|
||||
((vth) != 0 ? (((vth) - 150) * PBR_MAX_CODE / (PBR_MAX_VOLTAGE * 100) + 1) : 0)
|
||||
|
||||
struct wsa_reg_mask_val {
|
||||
u16 reg;
|
||||
|
在新工单中引用
屏蔽一个用户