Closed 1994lwz closed 3 years ago
reproduced on UpExtreme in default HDaudio mode
terminal 1: aplay -Dhw:0,0 -c2 -r48000 -fS16_LE -i /dev/zero press on space to pause terminal 2: rtcwake -m mem -s 2 wait for resume terminal 1: press on space
root@plb-UP-WHL01:~# aplay -Dhw:0,0 -c2 -r48000 -fS16_LE -i /dev/zero
Playing raw data '/dev/zero' : Signed 16 bit Little Endian, Rate 48000 Hz, Stereo
=== PAUSE === Suspended. Trying resume. Failed. Restarting stream. aplay: suspend:1714: suspend: prepare error: Invalid argument
[ 119.580720] sof-audio-pci-intel-cnl 0000:00:1f.3: hda: prepare stream dir 0
[ 119.580751] sof-audio-pci-intel-cnl 0000:00:1f.3: ipc tx: 0x80010000: GLB_DAI_MSG: CONFIG
[ 119.580906] sof-audio-pci-intel-cnl 0000:00:1f.3: ipc tx error for 0x80010000 (msg/reply size: 216/12): -19
[ 119.580921] sof-audio-pci-intel-cnl 0000:00:1f.3: error: failed resetting DAI config for HDA0.OUT
@ranj063 can you take a look?
kernel SHA1: bed17efc810a fixup! ASoC: SOF: handle paused streams during system suspend SOF SHA1: 6b650bd95 xtensa-build-zephyr: add imx8 as supported platform
@1994lwz can you please try https://github.com/thesofproject/linux/pull/3133, it solves the problem for me. Thanks!
@1994lwz can you please try #3133, it solves the problem for me. Thanks!
I didn't see any issue with the updated #3133
kernel: topic/sof-dev branch commit: 973aa02
To reproduce: Start a sdw pcm. eg. "aplay -D hw:0,0 -r 48000 -c 2 -f S16_LE -vv -i /dev/zero -q" on terminal 1 Press "space" to pause the stream on terminal 1. Run "sudo rtcwake -m mem -s 5" on terminal 2. Press "space" again on terminal 1 to release the stream after the system is resume. and we will see ipc tx error
Test platform: ADLS-RVP-HDA
[Terminal]
[dmesg]