On Thu, 26 Aug 1999, Alan Cox wrote:
> > > 200bytes/sec is just rudiculous , how do you plan to drive an external synth
> > > with that little MIDI bandwidth ?
> >
> > I need a timer around 2000Hz for some good code. I won't support polling
> > mode (busy loop) in any case.
>
> Then your code will never be usable. Some hardware sucks, you have to do
> limited polling with a timer backoff. A well tuned polling loop will often
> work out nicely providing you are careful. Remember with irqs on you are
> just like busy in userspace no worse. You can even do
>
> while(poll_input()==0)
> {
> if(current->need_resched())
> schedule();
> }
>
> sort of stuff
Is possible to create some thread for this loop inside kernel module?
I don't want to suspend the application execution due to a broken
hardware. I did some tests with 2.2 kernels (using kernel_thread()) and
I've not been successful.
Jaroslav
-----
Jaroslav Kysela <[EMAIL PROTECTED]>
SuSE Linux http://www.suse.com
ALSA project http://www.alsa-project.org
- Bad MIDI performance : 10ms latency instead of the expec... Benno Senoner
- Re: Bad MIDI performance : 10ms latency instead of ... Benno Senoner
- Re: Bad MIDI performance : 10ms latency instead... Jaroslav Kysela
- Re: Bad MIDI performance : 10ms latency ins... Benno Senoner
- Re: Bad MIDI performance : 10ms latency ins... Alan Cox
- Re: Bad MIDI performance : 10ms latency... Benno Senoner
- Re: Bad MIDI performance : 10ms latency... Jaroslav Kysela
- Re: Bad MIDI performance : 10ms la... Alan Cox
- sound card overhead? James Stevenson
- Re: sound card overhead? Thomas Sailer
- Re: sound card overhead? Benno Senoner
- playing MP3 vs CPU usage Yau Chan
- Re: playing MP3 vs CPU usa... Benno Senoner
- Re: playing MP3 vs CPU usa... Yau Chan
- Re: playing MP3 vs CPU usa... Benno Senoner
- Re: [alsa-devel] Re: Bad MIDI performance : 10m... Paul Barton-Davis
- Re: [alsa-devel] Re: Bad MIDI performance :... Benno Senoner
