From mboxrd@z Thu Jan 1 00:00:00 1970 From: Timur Tabi Subject: Re: How to report error in _pointer function? Date: Mon, 11 Aug 2008 10:37:29 -0500 Message-ID: <48A05CB9.7010205@freescale.com> References: <489A1D9E.7040709@freescale.com> <489CC803.9030408@freescale.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: Received: from de01egw01.freescale.net (de01egw01.freescale.net [192.88.165.102]) by alsa0.perex.cz (Postfix) with ESMTP id EADB6245F3 for ; Mon, 11 Aug 2008 17:37:33 +0200 (CEST) In-Reply-To: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: alsa-devel-bounces@alsa-project.org Errors-To: alsa-devel-bounces@alsa-project.org To: Takashi Iwai Cc: alsa-devel@alsa-project.org List-Id: alsa-devel@alsa-project.org Takashi Iwai wrote: > Hm? snd_pcm_pre_stop() returns -EBADFD if the stream *IS* OPEN. > If it's RUNNING, it will stop the stream and change the state. Hmmm.... you're right. I don't know what I was thinking. Tracing the code, I see that ALSA does call my driver's trigger function to stop the stream. So why doesn't the application also stop? -- Timur Tabi Linux kernel developer at Freescale