Thread (7 messages) flat view 7 messages, 3 authors, 2012-08-24

[alsa-devel] [PATCH] ASoC: samsung dma - prepare dma in start/resume trigger path

From: Dylan Reid <hidden>
Date: 2012-08-24 07:52:10
Also in: alsa-devel

On Fri, Aug 24, 2012 at 12:41 AM, Sangbeom Kim [off-list ref] wrote:
Hi!

On Thu, Aug 24, 2012 at 5:51 AM, Dylan Reid wrote:
quoted
On suspend all dma transactions are terminated (by the stop/suspend
trigger calling ops->stop), they need to be set up again during resume.
Move the prepare op to the start/resume/unpause trigger path so that dma
and audio will restart on resume/unpause.
Do you mean that currently, suspend/resume can't be supported?
Yes. Currently, if I suspend while playing, after resume it won't work
until I close and reopen the device.  the call to snd_pcm_resume is
not indicating an error, but a write error comes from snd_pcm_write a
little later.

The suspend trigger calls ops->stop, which in turn sends
DMA_TERMINATE_ALL to the pl330.  I think this causes resume's call to
ops->trigger to fail because there is nothing enqueued, but I'm pretty
new to this system.

Thanks for the help!

Dylan
Thanks,
Sangbeom.
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help