]> git.baikalelectronics.ru Git - kernel.git/commitdiff
ASoC: Intel: avs: Update AVS_FW_INIT_TIMEOUT_US declaration
authorCezary Rojewski <cezary.rojewski@intel.com>
Thu, 7 Jul 2022 12:41:53 +0000 (14:41 +0200)
committerMark Brown <broonie@kernel.org>
Fri, 8 Jul 2022 17:53:29 +0000 (18:53 +0100)
To reduce the number of places to update if timeouts would have to
change, modify the constant declaration.

Signed-off-by: Cezary Rojewski <cezary.rojewski@intel.com>
Link: https://lore.kernel.org/r/20220707124153.1858249-13-cezary.rojewski@intel.com
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/intel/avs/loader.c

index 542fd44aa501e5a65469f1926054c16d474d2914..9e3f8ff33a87ac85b47d4b2552bc801f295a99b7 100644 (file)
@@ -27,8 +27,8 @@
 #define APL_ROM_INIT_RETRIES           3
 
 #define AVS_FW_INIT_POLLING_US         500
-#define AVS_FW_INIT_TIMEOUT_US         3000000
 #define AVS_FW_INIT_TIMEOUT_MS         3000
+#define AVS_FW_INIT_TIMEOUT_US         (AVS_FW_INIT_TIMEOUT_MS * 1000)
 
 #define AVS_CLDMA_START_DELAY_MS       100