Results 1 to 2 of 2
Thread: Linux intel8x0 Sound Driver
Enjoy an ad free experience by logging in. Not a member yet? Register.
- Join Date
- Mar 2013
Linux intel8x0 Sound Driver
I am a newbie when it comes to messing around with kernel code. What I am trying to do is modify my existing sound driver to forward any audio data to some place that I specify. My current plan is to send it to a user process using something like netlink, but I don't think that part is very important for this question yet.
I am having a hard time even figuring out where the actual audio data even is. The driver being used is intel8x0. The source can be found here: [lxr.free-electrons.com]
The snd_intel8x0_update method gets called repeatedly once I begin playing audio, so I thought that was a good place to start looking for audio data. I have no had any luck so far. I'm sorry that I have not made my question more concise, but do any of you have advice or something to point me when trying to access this audio data? Is it ever even accessed by or passed through the kernel driver module? Is there any way to access it from a kernel module, even if it is not the sound driver?
Thanks in advance.
- Join Date
- Apr 2009
- I can be found either 40 miles west of Chicago, in Chicago, or in a galaxy far, far away.
Don't bother doing this in the kernel. You can use some of the standard ALSA, Pulse Audio API's to intercept the audio stream and send it wherever you want. I think you are trying to drive a screw with a hammer! I'd suggest to review the streaming code from tools like the VLC media player to see how they do that.Sometimes, real fast is almost as good as real time.
Just remember, Semper Gumbi - always be flexible!