Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 57e29b1d authored by jinjiawu's avatar jinjiawu Committed by Luca Weiss
Browse files

Add the detection for read the calibration data to adjust speaker performance.

Root cause:
Need to detect calibration data for speaker component differences.

How to fix:
1. Read the calibration data from persist to adjust speaker performance.

RiskArea: speaker
Change-Id: Ib3e9aaa3bc8a55fe4bbf99061c7d71b8ace810ac
parent 18459af5
Loading
Loading
Loading
Loading
+4 −1
Original line number Diff line number Diff line
@@ -46,7 +46,10 @@
#define	PPC_DRIVER_MTPLLSRC			0x00000400
#define	PPC_DRIVER_CFGDEV_NONCRC	0x00000101

#define TAS2557_CAL_NAME    "/data/tas2557_cal.bin"
//[FairPhone][Audio][jinjia]=2020.07.01=Read the calibration data from persist to adjust speaker performance. -s
//#define TAS2557_CAL_NAME    "/data/tas2557_cal.bin"
#define TAS2557_CAL_NAME    "/mnt/vendor/persist/tas2557_cal.bin"
//[FairPhone][Audio][jinjia]=2020.07.01=Read the calibration data from persist to adjust speaker performance. -e
#define RESTART_MAX 3

static int tas2557_load_calibration(struct tas2557_priv *pTAS2557,