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

From: [email-masked] (Clemens Ladisch)
Date: Fri, 24 Aug 2012 09:15:00 +0200

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