24 Aug
2012
24 Aug
'12
9:15 a.m.
Dylan Reid wrote:
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.
TRIGGER_RESUME must restart the stream at the buffer position at which it was suspended. If the driver is not capable of that, it must not support TRIGGER_SUSPEND/RESUME in the first place (i.e., remove SNDRV_PCM_INFO_RESUME).
Regards, Clemens