Re: [PATCH] Fix suspend/resume of pxa_camera driver

Alan Stern
2008-07-27T22:10:02Z

On Sun, 27 Jul 2008, Guennadi Liakhovetski wrote:

> Yes, this is the difference. The sensor is attached to the camera host
> only on open. In fact, I am not sure, how video applications should behave
> during a suspend / resume cycle. If you suspend, while, say, recording
> from your camera, should you directly continue recording after a wake up?
> How do currect drivers implement this? Or, in general, for example with
> audio - if you suspend while listening to a stream over the net, or to a
> CD, or to a mp3-file on your local disk, should the sound resume after a
> wake up? I added linux-pm for some authoritative answers:-)

IMO, suspend should be as transparent as possible for userspace. So if
a user program has started an audio or video stream before suspend,
then after resume the stream should still be playing.

Alan Stern