From mboxrd@z Thu Jan 1 00:00:00 1970 From: Marcel Holtmann Subject: Re: IO plugin and multiple poll descriptors Date: Wed, 18 May 2005 15:45:11 +0200 Message-ID: <1116423911.10063.257.camel@pegasus> 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 Content-Type: text/plain Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: 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: Takashi Iwai Cc: ALSA Mailing List List-Id: alsa-devel@alsa-project.org Hi Takashi, > > > > 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; > } I know, but what I meant was if both descriptors are handled inside the library. Previous you said that multiple descriptors are not supported. Of did I understand that wrong? Regards Marcel ------------------------------------------------------- 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