On 25.10.2012 17:18, Jeffrey Barish wrote: > I found something in the snd_usb_audio code (in endpoint.c) that could > explain one of the problems I have observed (the ticks). I would > normally test my theory by modifying the code. In this case, I would > like to stick in a print statement to see what values are being assigned > to certain variables. Unfortunately, I am too ignorant to do something > even this trivial as I have never worked on kernel code. I think I am > supposed to use printk, printk is nice for simple debugging, yes. But note that this call is timing critical and should not be used in "fast path" code. Introducing a printk for each received packet for example will almost certainly make the driver behave quite differently. > but beyond that I am lost. Can someone provide > me with some directions? I need to know how to make the driver. To that > end, I probably will have to install additional packages. After making > the driver, I need to know how to install it over the existing driver. Here's one way to do it: 1. git clone git://git.kernel.org/pub/scm/linux/kernel/git/tiwai/sound.git (your patch should apply on top of this tree eventually) 2. cd sound 3. zcat /proc/config.gz >.config 4. build and install the kernel image. How that is done depends on the distribution you're using. For Ubuntu follow the docs at [1] (start at point #5). For Fedora and others, something like "make && make install" should do 5. reboot and check that the new kernel is running 6. hack on sound/usb 7. make M=sound/usb 8. reload the module with "sudo rmmod snd_usb_audio; sudo insmod sound/usb/snd-usb-audio.ko" (better plug out the device before so you always have the same defined point of start) Hope that works for you. Daniel [1] https://wiki.ubuntu.com/KernelTeam/GitKernelBuild ------------------------------------------------------------------------------ Everyone hates slow websites. So do we. Make your web apps faster with AppDynamics Download AppDynamics Lite for free today: http://p.sf.net/sfu/appdyn_sfd2d_oct _______________________________________________ Alsa-user mailing list Alsa-user@xxxxxxxxxxxxxxxxxxxxx https://lists.sourceforge.net/lists/listinfo/alsa-user