]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
ASoC: codecs: rt5640: Retry DEVICE_ID verification
authorXinxin Wan <xinxin.wan@intel.com>
Fri, 30 May 2025 14:21:19 +0000 (16:21 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 28 Aug 2025 14:28:19 +0000 (16:28 +0200)
commitc3d3492b12dd484f89b3fabeb2162b98c456ac2f
treebcd93b7d6dcfc9e05c10275a281321caacd00d5c
parent70b3c831cfea86b2aaf86369fd03f43405ee3683
ASoC: codecs: rt5640: Retry DEVICE_ID verification

[ Upstream commit 19f971057b2d7b99c80530ec1052b45de236a8da ]

To be more resilient to codec-detection failures when the hardware
powers on slowly, add retry mechanism to the device verification check.
Similar pattern is found throughout a number of Realtek codecs. Our
tests show that 60ms delay is sufficient to address readiness issues on
rt5640 chip.

Reviewed-by: Amadeusz Sławiński <amadeuszx.slawinski@linux.intel.com>
Reviewed-by: Cezary Rojewski <cezary.rojewski@intel.com>
Signed-off-by: Xinxin Wan <xinxin.wan@intel.com>
Signed-off-by: Cezary Rojewski <cezary.rojewski@intel.com>
Link: https://patch.msgid.link/20250530142120.2944095-3-cezary.rojewski@intel.com
Signed-off-by: Mark Brown <broonie@kernel.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
sound/soc/codecs/rt5640.c