]> git.proxmox.com Git - mirror_ubuntu-jammy-kernel.git/commit
ASoC: rt1011: Read and apply r0 and temperature device property
authorShuming Fan <shumingf@realtek.com>
Wed, 16 Oct 2019 08:58:45 +0000 (16:58 +0800)
committerMark Brown <broonie@kernel.org>
Wed, 16 Oct 2019 12:56:58 +0000 (13:56 +0100)
commit8de6e755069fbfaefae67d3abff2b2e3d83db986
tree2bf32526bfa662bf19081b207d04fcc8c5ac6d83
parentcf775f68a0939f0e5aad5855f63338c4b5e51c59
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>
sound/soc/codecs/rt1011.c
sound/soc/codecs/rt1011.h