2 Mar 2010 10:57
Re: IIO ring buffer
Jonathan, I know you are changing iio ring buffer. Here a problem to discuss with you, there are maybe this kind of use cases: the DACs have no internal clock and buffer, so we need an external bus with continuous DMA to "play" data flow with constant speed. It is very similar with alsa driver to play audio by I2S or AC97. ALSA framework is easy to implement this kind of drivers. But our DACs are not audio cards. Then in the iio ring buffer core, it seems we also need APIs like trigger(), pointer(), snd_pcm_period_elapsed()... to get a common framework. Of course, we can let users to handle blocking in write() callback like OSS, but alsa-like APIs should be better. So what's your opinion for that? If I begin to work on this, I am not sure how much is needed to do to merge into your new iio ring buffer codes. So if you have some new codes for reference, it should be better. Thanks Barry On Wed, Feb 24, 2010 at 10:10 PM, Jonathan Cameron <jic23 <at> cam.ac.uk> wrote: > On 02/24/10 06:42, Song, Barry wrote: >> >> >>> -----Original Message----- >>> From: Jonathan Cameron [mailto:jic23 <at> cam.ac.uk] >>> Sent: Tuesday, February 23, 2010 7:45 PM >>> To: Song, Barry >>> Cc: jic23 <at> hermes.cam.ac.uk; manuel.stahl <at> iis.fraunhofer.de; >>> uclinux-dist-devel <at> blackfin.uclinux.org; linux-iio <at> vger.kernel.org >>> Subject: Re: IIO ring buffer >>>(Continue reading)
RSS Feed