Results 1 to 2 of 2
I am struggling to find some area of code in the kernel that gets executed while audio is playing. My current goal is to be able to find the actual ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
- 03-27-2013 #1
- Join Date
- Mar 2013
Sound / Audio Entry Point
I would appreciate information about any version of the kernel that you are familiar with, but I am currently using version 126.96.36.199.
I have tried putting printk()s in sound/core/pcm_lib.c in functions like snd_pcm_lib_write_transfer. When playing audio, none of those messages show up, so I'm not really sure where else to look at this point.
Any help is greatly appreciated.
- 03-27-2013 #2
- Join Date
- Mar 2009
I'd start by reading a bit at alsa-project
As a quick tip, since you are not writing a _new_ PCI driver yourself, you can skip directly to the PCM-part (which is raw, uncompressed sound that is passed to the sound card).
Try writing a short client yourself, and I say this for several reasons:
- you have absolute control over the client part (mplayer and friends does a _lot_ of magic stuff)
- you can fine-tune the framesizes
- you will learn how sound is being fed through both the userspace-library and into the kernel