From eead89e7f22dcb2e507cb2083c5ad8383cead038 Mon Sep 17 00:00:00 2001 From: Marc Herbert Date: Thu, 26 Jan 2023 23:06:04 +0000 Subject: [PATCH] soc: intel_adsp: cavstool.py: simplify asyncio.run() call Fixes the following warning: cavstool.py:706: DeprecationWarning: There is no current event loop asyncio.get_event_loop().run_until_complete(main()) Signed-off-by: Marc Herbert --- soc/xtensa/intel_adsp/tools/cavstool.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/soc/xtensa/intel_adsp/tools/cavstool.py b/soc/xtensa/intel_adsp/tools/cavstool.py index e359e0b0aa6..a28d3c20321 100755 --- a/soc/xtensa/intel_adsp/tools/cavstool.py +++ b/soc/xtensa/intel_adsp/tools/cavstool.py @@ -392,7 +392,7 @@ def load_firmware(fw_file): while (sd.CTL & 1) == 0: pass sd.CTL = 0 while (sd.CTL & 1) == 1: pass - sd.CTL = (1 << 20) # Set stream ID to anything non-zero + sd.CTL = 1 << 20 # Set stream ID to anything non-zero sd.BDPU = (buf_list_addr >> 32) & 0xffffffff sd.BDPL = buf_list_addr & 0xffffffff sd.CBL = len(fw_bytes) @@ -703,6 +703,6 @@ elif args.verbose: if __name__ == "__main__": try: - asyncio.get_event_loop().run_until_complete(main()) + asyncio.run(main()) except KeyboardInterrupt: start_output = False