From mboxrd@z Thu Jan 1 00:00:00 1970 From: Takashi Iwai Subject: Re: IO plugin and multiple poll descriptors Date: Wed, 18 May 2005 15:21:45 +0200 Message-ID: References: <1116173811.8886.55.camel@pegasus> <1116335015.10063.91.camel@pegasus> <1116417943.10063.234.camel@pegasus> <1116421003.10063.243.camel@pegasus> Mime-Version: 1.0 (generated by SEMI 1.14.5 - "Awara-Onsen") Content-Type: text/plain; charset=US-ASCII Return-path: In-Reply-To: <1116421003.10063.243.camel@pegasus> 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: Marcel Holtmann Cc: ALSA Mailing List List-Id: alsa-devel@alsa-project.org At Wed, 18 May 2005 14:56:43 +0200, Marcel Holtmann wrote: > > > > What happens at the moment when I really return two poll_fd. > > What about this one? The poll_descriptors_count and poll_descriptors should return 2, for example, int my_poll_descriptors_count(snd_pcm_ioplug_t *io) { return 2; } int my_poll_descriptors(snd_pcm_ioplug_t *io, struct pollfd *pfds, unsigned int space) { if (space < 2) { error("Too little pfd\n"); return 0; } pfds[0].fd = fd0; pfds[0].events = POLLOUT | POLLERR | POLLNVAL pfds[1].fd = fd1; pfds[0].events = POLLIN | POLLERR | POLLNVAL return 2; } Takashi ------------------------------------------------------- This SF.Net email is sponsored by Oracle Space Sweepstakes Want to be the first software developer in space? Enter now for the Oracle Space Sweepstakes! http://ads.osdn.com/?ad_id=7412&alloc_id=16344&op=click