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 <marc.herbert@intel.com>
This commit is contained in:
parent
2bf1ce9137
commit
eead89e7f2
1 changed files with 2 additions and 2 deletions
|
@ -392,7 +392,7 @@ def load_firmware(fw_file):
|
||||||
while (sd.CTL & 1) == 0: pass
|
while (sd.CTL & 1) == 0: pass
|
||||||
sd.CTL = 0
|
sd.CTL = 0
|
||||||
while (sd.CTL & 1) == 1: pass
|
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.BDPU = (buf_list_addr >> 32) & 0xffffffff
|
||||||
sd.BDPL = buf_list_addr & 0xffffffff
|
sd.BDPL = buf_list_addr & 0xffffffff
|
||||||
sd.CBL = len(fw_bytes)
|
sd.CBL = len(fw_bytes)
|
||||||
|
@ -703,6 +703,6 @@ elif args.verbose:
|
||||||
|
|
||||||
if __name__ == "__main__":
|
if __name__ == "__main__":
|
||||||
try:
|
try:
|
||||||
asyncio.get_event_loop().run_until_complete(main())
|
asyncio.run(main())
|
||||||
except KeyboardInterrupt:
|
except KeyboardInterrupt:
|
||||||
start_output = False
|
start_output = False
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue