>I made such circuit on AT89C52 microcontroller, but chip is too slow for >that job. >So I've diecided to use PC as a "fast microcontroller". >But why not to write kernel module - the PC would stand on Linux. > >So I have to write special driver for this amplifier. >I think that writting it in assembly language would be the fastest >choice.
Linux runs on at least a dozen h/w platforms. AFAIK, no device driver directly includes assembler, and if they do, they are unlikely to be part of the mainstream kernel. They certainly wouldn't be part of ALSA, I would hope. >The speed is critical - I have to generate a signal of frequency more >than 1MHz You seem to be under the same mistaken impression as many people that assembler is always quicker. Sometimes it is, sometimes it isn't. If you've never written a kernel module, or even a time sensitive program, its quite possible that the compiler will do a better than you :) >As a person, who never wrote a kernel module, or even time sensitive >program for >Linux, I'm asking for help someone that would surely know the solution - >that means YOU :) See "Linux Device Drivers" by Rubini, A., published by O'Reilly. Its probably one of the best programming handbooks ever written. It has a nice example of a PC speaker driver, which I imagine will provide a good model for your driver. It contains a wealth of information about the kernel and how to write device drivers. --p _______________________________________________ Alsa-devel mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/alsa-devel