[Sound-open-firmware] Question about PM sleep
Hi Ranjani,
While doing PM resume I get this warning message:
root@imx8qxpmek:~# arecord -Dhw:0,0 -f S32_LE -r 48000 -c 2 z3.wav Recording WAVE 'z3.wav' : Signed 32 bit Little Endian, Rate 48000 Hz, Stereo Suspended. Trying resume. Failed. Restarting stream. Done.
Any idea what could cause it? It is because my stream doesn't really support resume?
Still investigating this, but sending you this email because maybe you got hit by this issue.
thanks, Daniel.
On Fri, Mar 13, 2020 at 8:30 AM Daniel Baluta daniel.baluta@gmail.com wrote:
Hi Daniel,
This is the expected behavior in SOF and it was suggested by Takashi. Previously, we supported full resume in SOF, which meant that upon resuming from suspend, you would get only the TRIGGER_RESUME. But we needed to also get the prepare callback so that we could re-assign DMA stream tags upon resuming. This is why aplay indicates that the stream didnt resume but infact restarted from the previous position.
Does this help?
Thanks, Ranjani
On Fri, Mar 13, 2020 at 5:34 PM Sridharan, Ranjani ranjani.sridharan@intel.com wrote:
Indeed, it help. I will have a look at the discussion with Takashi.
thanks, Daniel
On Fri, Mar 13, 2020 at 8:43 AM Daniel Baluta daniel.baluta@gmail.com wrote:
Hi Daniel,
Here's the link to the discussion. https://mailman.alsa-project.org/pipermail/alsa-devel/2019-April/147440.html
Thanks, Ranjani
Dne 13. 03. 20 v 16:53 Sridharan, Ranjani napsal(a):
In other words: ALSA PCM stream resume expects the full resume without the stream position change from the application POV. SOF driver cannot do it, thus it requires the full PCM stream restart.
Jaroslav
participants (3)
-
Daniel Baluta
-
Jaroslav Kysela
-
Sridharan, Ranjani