From: Takashi Iwai Subject: Re: Re: No snd_pcm_resume_all() ? Date: Tue, 18 Apr 2006 20:54:39 +0200 Message-ID: References: <1145321918.4705.4.camel@localhost.localdomain> <1145382922.4116.81.camel@localhost> <1145383590.4116.83.camel@localhost> <1145383929.4116.85.camel@localhost> <1145385653.4116.88.camel@localhost> Mime-Version: 1.0 (generated by SEMI 1.14.6 - "Maruoka") Content-Type: text/plain; charset=US-ASCII Return-path: Received: from mx1.suse.de (mail.suse.de [195.135.220.2]) by alsa.jcu.cz (ALSA's E-mail Delivery System) with ESMTP id 9C3AF183 for ; Tue, 18 Apr 2006 20:54:39 +0200 (MEST) In-Reply-To: <1145385653.4116.88.camel@localhost> Sender: alsa-devel-admin@lists.sourceforge.net Errors-To: alsa-devel-admin@lists.sourceforge.net List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , List-Archive: To: Johannes Berg Cc: Benjamin Herrenschmidt , alsa-devel@alsa-project.org List-Id: alsa-devel@alsa-project.org At Tue, 18 Apr 2006 20:40:53 +0200, Johannes Berg wrote: > > On Tue, 2006-04-18 at 20:25 +0200, Takashi Iwai wrote: > > > Yes, of course, it's not an XRUN but "another type" of state. > > The driver just notifes the SUSPENDED state when any access comes from > > the app. > > I still don't see why it is necessary. I can see two cases: > > 1) the app is frozen before the driver suspends, so that we get into a > regular xrun situation. That can be handled as an xrun > > 2) the driver suspends before the app is frozen, which means that the > app won't be getting any pcm progress for a bit of time, which doesn't > matter at all. Or is that the point where I'm mistaken, and it does > matter to the app if the hardware pauses for a bit (say for video/audio > sync)? Another reason is that not all drivers provide the full resume capability. Most drivers provide only the partial suspend -- the driver can restore the hardware setting but the PCM must be restarted for a proper operation. In this case, the app requires the explicit reset-and-restart. So, it matter for apps what the current status is. IIRC, I discussed it for using a XRUN instead of an individual SUSPENDED state in order to simplify the system, but it was rejected by reasons I forgot :) Takashi ------------------------------------------------------- This SF.Net email is sponsored by xPML, a groundbreaking scripting language that extends applications into web and mobile media. Attend the live webcast and join the prime developer group breaking into this new coding territory! http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642