From mboxrd@z Thu Jan 1 00:00:00 1970 From: James Wright Subject: Re: SND_PCM_ASYNC - why??? Date: Mon, 19 Jan 2004 20:47:26 +0000 Sender: alsa-devel-admin@lists.sourceforge.net Message-ID: <20040119204726.65062e67.james@jigsawdezign.com> References: <20040117112645.1c9dce19.james@jigsawdezign.com> Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Return-path: Received: from loki.a-q.co.uk (loki.a-q.co.uk [195.224.50.15]) by alsa.alsa-project.org (8.9.3/8.9.3/SuSE Linux 8.9.3-0.1) with ESMTP id VAA03117 for ; Mon, 19 Jan 2004 21:48:55 +0100 Received: from neutrino.jigsawdezign.int (cpc1-hatf2-6-0-cust204.lutn.cable.ntl.com [81.109.147.204]) by loki.a-q.co.uk (Custom (aq) mailer/8.9.3) with SMTP id i0JKfqp19683 for ; Mon, 19 Jan 2004 20:41:52 GMT In-Reply-To: Errors-To: alsa-devel-admin@lists.sourceforge.net List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , List-Archive: To: alsa-devel@alsa-project.org List-Id: alsa-devel@alsa-project.org On Mon, 19 Jan 2004 20:07:51 +0100 Takashi Iwai wrote: > At Sat, 17 Jan 2004 11:26:45 +0000, > James Wright wrote: > > > > Hello, > > > > I'm doing much better with ALSA now that i spent a coule of days messing with code. I've got both direct > > MMAP PCM playback and a fallback using normal write access with no problems. However, i've > > just written in asyncronous notification support and found that if i use the SND_PCM_ASYNC flag in snd_pcm_open() > > and then setup my callback function with snd_async_add_pcm_handler(), then the callback function is not called! > > When i remove the SND_PCM_ASYNC flag it works fine, so is this flag/mode redundant? > > snd_async_add_pcm_handler() sets/resets the O_ASYNC flag by itself, so > basically you don't need to open the pcm with SND_PCM_ASYNC. > > > Takashi Be nice if the docs mentioned this! Surely anyone that wants to use asynchornous notification will call snd_async_add_pcm_handler() at some point, so there is no real need for the SND_PCM_ASYNC flag... > > > ------------------------------------------------------- > The SF.Net email is sponsored by EclipseCon 2004 > Premiere Conference on Open Tools Development and Integration > See the breadth of Eclipse activity. February 3-5 in Anaheim, CA. > http://www.eclipsecon.org/osdn > _______________________________________________ > Alsa-devel mailing list > Alsa-devel@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/alsa-devel > ------------------------------------------------------- The SF.Net email is sponsored by EclipseCon 2004 Premiere Conference on Open Tools Development and Integration See the breadth of Eclipse activity. February 3-5 in Anaheim, CA. http://www.eclipsecon.org/osdn