summaryrefslogtreecommitdiffstats
path: root/sound/soc/codecs/rt1011.h
diff options
context:
space:
mode:
authorShuming Fan <shumingf@realtek.com>2019-10-16 10:58:45 +0200
committerMark Brown <broonie@kernel.org>2019-10-16 14:56:58 +0200
commit8de6e755069fbfaefae67d3abff2b2e3d83db986 (patch)
tree2bf32526bfa662bf19081b207d04fcc8c5ac6d83 /sound/soc/codecs/rt1011.h
parentASoC: dt-bindings: rt1011: add r0 and temperature device property (diff)
downloadlinux-8de6e755069fbfaefae67d3abff2b2e3d83db986.tar.xz
linux-8de6e755069fbfaefae67d3abff2b2e3d83db986.zip
ASoC: rt1011: Read and apply r0 and temperature device property
Typically, the r0 (calibration data) and temperature were measured in the factory. This information is written into the non-volatile area where keeps data whether factory reset or OS update. In Chromium OS case, the coreboot will read the info from VPD and create the device property for each rt1011. Signed-off-by: Shuming Fan <shumingf@realtek.com> Tested-By: Cheng-Yi Chiang <cychiang@chromium.org> Link: https://lore.kernel.org/r/20191016085845.11672-1-shumingf@realtek.com Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'sound/soc/codecs/rt1011.h')
-rw-r--r--sound/soc/codecs/rt1011.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/sound/soc/codecs/rt1011.h b/sound/soc/codecs/rt1011.h
index 3f7dea1191ad..68fadc15fa8c 100644
--- a/sound/soc/codecs/rt1011.h
+++ b/sound/soc/codecs/rt1011.h
@@ -690,6 +690,7 @@ struct rt1011_priv {
int bq_drc_set;
unsigned int r0_reg, cali_done;
+ unsigned int r0_calib, temperature_calib;
int recv_spk_mode;
};