Developing SIS 962L driver.
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
Hi Robert,
Quoted 7 lines · Robert Liguori
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/applicationsdo I need to write a driver.
Your C compiler, a copy of ALSA, a copy of the specification, your brain, that's about all. :)
Quoted 1 line
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.
Quoted 1 line
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.
Quoted 1 line
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. :)
Quoted 1 line
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.
Quoted 1 line
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. ;)
Signature · 8 lines
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
Hi Pieter,
Quoted 5 lines · Pieter Palmers
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,
Signature · 8 lines
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