ASoC: aw882xx: set speaker default impedance value

According to Astro audio calibration statistical data in ODM
Ontim factory, set 7.3 as speaker default impedance value.
If aw_cali.bin is not exist, use 7.3ohm for aw882xx speaker
protection algorithm.

NO_PROP_NEEDED: aw882xx doesn't use in bq-shm2018 products.

Change-Id: Icc2b8cd24b2fd6547b8244a6c987122c1648d7c1
Signed-off-by: zhouwl <zhouwl@lenovo.com>
Reviewed-on: https://gerrit.mot.com/1582361
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Hujun Liao <liaohj@motorola.com>
Submit-Approved: Jira Key
This commit is contained in:
zhouwl 2020-05-27 18:13:43 +08:00 • committed by Wanlong Zhou
commit 764634ffd0

View file

@ -486,9 +486,8 @@ static void aw882xx_start(struct aw882xx *aw882xx)
ret = aw882xx_get_cali_re_form_nv(&cali_re);
if (ret < 0) {
cali_re = ERRO_CALI_VALUE;
pr_err("%s: use default vaule %d",
__func__ , ERRO_CALI_VALUE);
cali_re = 29900; /* 7.3*4096 */
pr_err("%s: use default vaule", __func__);
}
ret = aw882xx_set_cali_re(aw882xx, cali_re);
if (ret < 0)