* Developing SIS 962L driver. @ 2003-07-05 16:04 Robert Liguori 2003-07-05 18:53 ` Ryan Underwood 0 siblings, 1 reply; 3+ messages in thread From: Robert Liguori @ 2003-07-05 16:04 UTC (permalink / raw) To: alsa-devel Hello all, I would like to write a driver for SIS 962L. I am new at this. Could anyone please answer the following questions for me? 1) What tools/applications do I need to write a driver. 2) Can you give me an example of a complete set of .c and .h files that constitute a new driver, and what application does it get appended to. Will it become part of the kernel, or will it be maintained as an external mod? 3) Where can I get the specs to build this driver. Exactly what data/specifications do I need. 4) I am a novice C/C++ programmer. Will my skillset be sufficient to accomplish this task. 5) What books or online resources ( in addition to this list ) are available to help me achieve my goal. 6) Is there any other information that I need to know, that I may not even know to ask about? Thanks, Robert Liguori ------------------------------------------------------- This SF.Net email sponsored by: Free pre-built ASP.NET sites including Data Reports, E-commerce, Portals, and Forums are available now. Download today and enter to win an XBOX or Visual Studio .NET. http://aspnet.click-url.com/go/psa00100006ave/direct;at.asp_061203_01/01 ^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: Developing SIS 962L driver. 2003-07-05 16:04 Developing SIS 962L driver Robert Liguori @ 2003-07-05 18:53 ` Ryan Underwood [not found] ` <3F07F12E.8090805@esat.kuleuven.ac.be> 0 siblings, 1 reply; 3+ messages in thread From: Ryan Underwood @ 2003-07-05 18:53 UTC (permalink / raw) To: alsa-devel Hi Robert, On Sat, Jul 05, 2003 at 12:04:47PM -0400, Robert Liguori wrote: > Hello all, > > I would like to write a driver for SIS 962L. > > I am new at this. Could anyone please answer the following questions for me? > > 1) What tools/applications do I need to write a driver. Your C compiler, a copy of ALSA, a copy of the specification, your brain, that's about all. :) > 2) Can you give me an example of a complete set of .c and .h files that constitute a new driver, and what application does it get appended to. Will it become part of the kernel, or will it be maintained as an external mod? It builds a snd-xxxxx.o kernel module where xxxxx is the name of your chip. That module may be loaded after the rest of the ALSA framework is loaded, such as snd-pcm, snd-timer, as well as any ALSA modules it may depend on. I.E. if your driver uses the AC97 code, it will depend on snd-ac97-codec being loaded. > 3) Where can I get the specs to build this driver. Exactly what data/specifications do I need. If they are not under http://www.alsa-project.org/alsa/ftp/manuals/ then you will have to beg SiS for the documentation. Unfortunately they have not been forthcoming e.g. to the DRI people. > 4) I am a novice C/C++ programmer. Will my skillset be sufficient to accomplish this task. It depends how well you can read the specification and mimic the existing ALSA drivers. Building a driver within the ALSA framework is not hard because ALSA does most of the work for you, you just have to provide the glue between ALSA and the hardware. If you are not well versed in C, that will be a roadblock. If you are not familiar with how the machine works, how to do port I/O, how data is stored in memory, then that will make it even more difficult. Not insurmountable, but you will have to learn these things first. :) > 5) What books or online resources ( in addition to this list ) are available to help me achieve my goal. Check out "Writing An ALSA Driver" by Takashi. You can find it from Google. > 6) Is there any other information that I need to know, that I may not even know to ask about? The answer to the question is 42. You must find the question for yourself. ;) -- Ryan Underwood, <nemesis at icequake.net>, icq=10317253 ------------------------------------------------------- This SF.Net email sponsored by: Free pre-built ASP.NET sites including Data Reports, E-commerce, Portals, and Forums are available now. Download today and enter to win an XBOX or Visual Studio .NET. http://aspnet.click-url.com/go/psa00100006ave/direct;at.asp_061203_01/01 ^ permalink raw reply [flat|nested] 3+ messages in thread
[parent not found: <3F07F12E.8090805@esat.kuleuven.ac.be>]
* Re: Developing SIS 962L driver. [not found] ` <3F07F12E.8090805@esat.kuleuven.ac.be> @ 2003-07-06 13:42 ` Ryan Underwood 0 siblings, 0 replies; 3+ messages in thread From: Ryan Underwood @ 2003-07-06 13:42 UTC (permalink / raw) To: alsa-devel Hi Pieter, On Sun, Jul 06, 2003 at 11:51:42AM +0200, Pieter Palmers wrote: > > And I personally wouldn't say that writing an ALSA driver is that > easy... I'm working on one myself, and I can assure you that the > framework is pretty complex. You have to understand it first, before you > can use it. You are right; when I said "not hard", I was meaning "not hard" compared to developing an OSS driver, where not only do you have to hit the hardware, but you get to do lots of data conversion and memory management in your driver. I definitely didn't mean to trivialize the task of developing a driver of any sort! :) See ya, -- Ryan Underwood, <nemesis at icequake.net>, icq=10317253 ------------------------------------------------------- This SF.Net email sponsored by: Free pre-built ASP.NET sites including Data Reports, E-commerce, Portals, and Forums are available now. Download today and enter to win an XBOX or Visual Studio .NET. http://aspnet.click-url.com/go/psa00100006ave/direct;at.asp_061203_01/01 ^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2003-07-06 13:42 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2003-07-05 16:04 Developing SIS 962L driver Robert Liguori
2003-07-05 18:53 ` Ryan Underwood
[not found] ` <3F07F12E.8090805@esat.kuleuven.ac.be>
2003-07-06 13:42 ` Ryan Underwood
This is an external index of several public inboxes, see mirroring instructions on how to clone and mirror all data and code used by this external index.