From mboxrd@z Thu Jan 1 00:00:00 1970 Return-path: Received: from mx3.redhat.com (mx3.redhat.com [172.16.48.32]) by int-mx1.corp.redhat.com (8.13.1/8.13.1) with ESMTP id m6SIXi17029251 for ; Mon, 28 Jul 2008 14:33:44 -0400 Received: from smtp3-g19.free.fr (smtp3-g19.free.fr [212.27.42.29]) by mx3.redhat.com (8.13.8/8.13.8) with ESMTP id m6SIXW6E032423 for ; Mon, 28 Jul 2008 14:33:32 -0400 To: Guennadi Liakhovetski References: <1217113647-20638-1-git-send-email-robert.jarzmik@free.fr> <878wvnkd8n.fsf@free.fr> From: Robert Jarzmik Date: Mon, 28 Jul 2008 20:33:29 +0200 In-Reply-To: (Guennadi Liakhovetski's message of "Sun\, 27 Jul 2008 21\:11\:43 +0200 \(CEST\)") Message-ID: <87tze997uu.fsf@free.fr> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Cc: video4linux-list@redhat.com, linux-pm@lists.linux-foundation.org Subject: Re: [PATCH] Fix suspend/resume of pxa_camera driver List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: video4linux-list-bounces@redhat.com Errors-To: video4linux-list-bounces@redhat.com List-ID: Guennadi Liakhovetski writes: > On Sun, 27 Jul 2008, Robert Jarzmik 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:-) AFAIK, on resume, sound streams continues. So the normal behaviour would be to continue video stream too (as done in ALSA). This supposes the whole video chip state is saved on suspend and restored on resume, of course. > If you know how a v4l2 device should handle suspend/resume, or when we get > some answers, let's try to do it completely- Of course. In a week or two, my mt9m111 driver will be ready for submission, and in the review process I'll post a submission for complete suspend/resume. >> For the camera part, by now, I'm using standard suspend/resume functions of the >> platform driver (mt9m111.c). It does work, but it's not clean ATM. The chaining >> between the driver resume function and the availability of the I2C bus are not >> properly chained. I'm still working on it. > > Yes, we have to clarify this too. Yes. So, to sum up : - I finish the mt9m111 driver - I submit it - I cook up a clean suspend/resume (unless you did it first of course :) -- Robert -- video4linux-list mailing list Unsubscribe mailto:video4linux-list-request@redhat.com?subject=unsubscribe https://www.redhat.com/mailman/listinfo/video4linux-list