Skip to content

Commit

Permalink
soc: intel_adsp: cavstool.py: simplify asyncio.run() call
Browse files Browse the repository at this point in the history
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 <marc.herbert@intel.com>
  • Loading branch information
marc-hb authored and nashif committed Feb 26, 2023
1 parent 2bf1ce9 commit eead89e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions soc/xtensa/intel_adsp/tools/cavstool.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down Expand Up @@ -703,6 +703,6 @@ async def main():

if __name__ == "__main__":
try:
asyncio.get_event_loop().run_until_complete(main())
asyncio.run(main())
except KeyboardInterrupt:
start_output = False

0 comments on commit eead89e

Please sign in to comment.