Linking audio to a kernel
Linking audio to a kernel
I am a newbbie in this site. Im onto an OS level project. We need to link the audio to the kernel.Please help me
Plz help................
Plz help................
Last edited by atmb4u on Wed Oct 17, 2007 6:46 am, edited 1 time in total.
[a:t:m]
WHILE WALKING THROUGH A STORM,WALK WITH YOUR HEADS RIGHT UP,THEN YOU WILL NEVER WALK ALONE
WHILE WALKING THROUGH A STORM,WALK WITH YOUR HEADS RIGHT UP,THEN YOU WILL NEVER WALK ALONE
Wow.
Please do obey forum policy. Thank you.
- Wrong Forum
- Asking for "A-Z" or "just giv"
- Questionable Grammar
- Did not search this forum\wiki to find your answer. (Otherwise your wouldn't have posted in the manner you did. )
- ALSA was mentioned on an osdev forum.
Please do obey forum policy. Thank you.
C8H10N4O2 | #446691 | Trust the nodes.
- Brynet-Inc
- Member
- Posts: 2426
- Joined: Tue Oct 17, 2006 9:29 pm
- Libera.chat IRC: brynet
- Location: Canada
- Contact:
You've already posted this.. and you keep posting it in the wrong section as well
http://www.osdev.org/phpBB2/viewtopic.php?p=108339
Please don't wait 5 days and ask the same question again..
http://www.osdev.org/phpBB2/viewtopic.php?p=108339
Please don't wait 5 days and ask the same question again..
- JackScott
- Member
- Posts: 1036
- Joined: Thu Dec 21, 2006 3:03 am
- Location: Hobart, Australia
- Mastodon: https://aus.social/@jackscottau
- Matrix: @JackScottAU:matrix.org
- GitHub: https://github.com/JackScottAU
- Contact:
The OSDev wiki forum is generally only for questions relating to the development of the wiki, and questions about dubious content. If you have a general development question (such as this one is) you should consider using the Development board (http://www.osdev.org/phpBB2/viewforum.php?f=1).
As for your actual question, we need more information to be able to help. For instance, what do you mean by 'link audio with the kernel'. I presume you mean you want to support sound cards. Well, there are a lot of different types, all accessed in different ways. Some of them might have ISA interfaces, some have PCI. Others will have non-standard drivers.
To begin with, check out http://www.osdev.org/wiki/Resources#Audio
If you refine your question, hopefully we'll be able to help more.
As for your actual question, we need more information to be able to help. For instance, what do you mean by 'link audio with the kernel'. I presume you mean you want to support sound cards. Well, there are a lot of different types, all accessed in different ways. Some of them might have ISA interfaces, some have PCI. Others will have non-standard drivers.
To begin with, check out http://www.osdev.org/wiki/Resources#Audio
If you refine your question, hopefully we'll be able to help more.
Fine. You will need three things:atmb4u wrote:Now then plz guide me. I am searching in the wrong area then show me the right path Plz....
This is because I don't know wat to do.....
plz
- a device driver for the specific type of audio interface in the computer
- audio data in some format
- some code to feed the data to the driver in the format it understands
How to write device drivers for sound cards should be your first problem. Such a device driver typically fills a buffer for the soundcard, waits until the buffer is empty (or near empty) then fills some more, and so on. Doing this in a reasonable manner involves interrupts, so make sure you can handle those first. Then figure out what device you want to support first (choosing some simple well documented and emulator supported thing like SBpro/16 might be a good idea), and search for documentation of said device.
The part that then feeds data to this driver (into some possibly larger buffer) is relatively easy, if your audio data is something simple. I'd suggest you forget about fancy codecs like MP3 at first, and just use something like uncompressed .WAVs, which are basicly PCM data.
Ofcourse if you've never written any software that plays audio under some normal operating system, I suggest you try that first, before you start messing with your own device drivers.
Did that help any?
The real problem with goto is not with the control transfer, but with environments. Properly tail-recursive closures get both right.
AUDIO::AUDIO::AUDIO::All around...
Another foolish doubt.
Is it necessary to have "SPECIFIC" audio drivers to use the audio devices????
Can I use same program to access audio devices in different systems at minimum level???
Can I access it through any other easier means???
Plz Don't feel bored of my foolish questions.
It is to know how much should I study to develop something at this level.
Is it necessary to have "SPECIFIC" audio drivers to use the audio devices????
Can I use same program to access audio devices in different systems at minimum level???
Can I access it through any other easier means???
Plz Don't feel bored of my foolish questions.
It is to know how much should I study to develop something at this level.
[a:t:m]
WHILE WALKING THROUGH A STORM,WALK WITH YOUR HEADS RIGHT UP,THEN YOU WILL NEVER WALK ALONE
WHILE WALKING THROUGH A STORM,WALK WITH YOUR HEADS RIGHT UP,THEN YOU WILL NEVER WALK ALONE
Re: AUDIO::AUDIO::AUDIO::All around...
Yes, although some devices are compatible to other devices (or specifications). It used to be that all audio cards had some level of soundblaster compatibility. Not so anymore, but nowadays many cards (and especially integrated chipsets) follow the AC97 specification, so researching into that might be worth something.atmb4u wrote: Is it necessary to have "SPECIFIC" audio drivers to use the audio devices????
Same program, yes, but same driver, no. The program talks to the driver, the driver knows how to speak to a specific audio card.Can I use same program to access audio devices in different systems at minimum level???
In a custom OS.. well, no.Can I access it through any other easier means???
The real problem with goto is not with the control transfer, but with environments. Properly tail-recursive closures get both right.
- Brynet-Inc
- Member
- Posts: 2426
- Joined: Tue Oct 17, 2006 9:29 pm
- Libera.chat IRC: brynet
- Location: Canada
- Contact:
Re: AUDIO::AUDIO::AUDIO::All around...
Typically, Yes - Sound card manufactures don't design their cards identically...atmb4u wrote:Is it necessary to have "SPECIFIC" audio drivers to use the audio devices????
Program? Normally you would write the drivers in-kernel or via modules.. and then implement a standard userland API (Like OSS..)atmb4u wrote:Can I use same program to access audio devices in different systems at minimum level???
Intel's AC'97 is often implemented.... if you aren't one of the lucky few, Try looking at other OS's drivers and port them over (licence permitting...)atmb4u wrote:Can I access it through any other easier means???
http://en.wikipedia.org/wiki/AC97 (Fairly common..)
http://en.wikipedia.org/wiki/Intel_High ... tion_Audio (Also widely implemented..)
Please try searching Google or the Wiki first.. in the future
EDIT: mystran got here first sadly, hopefully I was of some help anyway..