ASoC: codecs: rt5640: Retry DEVICE_ID verification
authorXinxin Wan <xinxin.wan@intel.com>
Fri, 30 May 2025 14:21:19 +0000 (16:21 +0200)
committerMark Brown <broonie@kernel.org>
Sun, 8 Jun 2025 22:34:37 +0000 (23:34 +0100)
commit19f971057b2d7b99c80530ec1052b45de236a8da
treedbb240e74e5b1342bea79ff08bc9dd65d389c0fc
parentcecec195b2930fc45d71e29f66a66f0c83e41468
ASoC: codecs: rt5640: Retry DEVICE_ID verification

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>
sound/soc/codecs/rt5640.c