From: "Clemens Ladisch" <cladisch@fastmail.net>
To: mazarick@bellsouth.net, alsa-devel@alsa-project.org
Cc: wavepro-driver-developers@lists.sourceforge.net
Subject: Re: how do you people debug ALSA?
Date: Tue, 22 Jan 2008 09:45:29 +0100 [thread overview]
Message-ID: <1200991529.25807.1232559973@webmail.messagingengine.com> (raw)
In-Reply-To: <012120082025.22241.4794FFC1000089D6000056E122243651029B0A02D2089B9A019C04040A0DBF050C079D0E960E03@att.net>
mazarick@bellsouth.net wrote:
> It would be fine to say "vi is the development environment,
Actually, I'm using vim.
> and we sprinkle the code with printk statements and take them out when
> the soup's done".
When using snd_printd() or snd_printdd(), one doesn't need to take them
out afterwards. :)
> 1. Do you regularly use the "alsasound" kernel function during
> development so you can take the driver in and out of the kernel?
I regularly (un)load the modules that I'm changing. In most cases I
don't use the script that came with my distribution because I don't want
to (un)load all the other sound drivers, too.
> 3. Are there tools that are almost always used when writing a sound
> card driver like gdb, ddd, etc?
These debuggers don't work with kernel code.
> 4. Since it's easy to do, is an interface into the proc file system
> useful from the start?
Yes. Most drivers have some proc file that dumps the current register
contents. It's always helpful to be able to check what your code did to
the chip.
> 1. We've having difficulty getting the Altera PLD to load.
This code in uart_gl824_program_pld looks very suspicious:
//YUCK: This stops us from actually doing it.
if( uart_io_port != NULL ){
return(0);
}
> 2. Should the 'load the Altera' function be part of the alsa driver,
> part of alsa firmware, or should we just load it up when the computer
> boots (not in alsa)?
Doing it in the driver is easiest (otherwise you would have to write
another kernel module) and ensures that it's actually done before using
the driver.
HTH
Clemens
next prev parent reply other threads:[~2008-01-22 9:08 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-01-21 20:25 how do you people debug ALSA? mazarick
2008-01-22 8:45 ` Clemens Ladisch [this message]
2008-01-22 12:14 ` Claudio Matsuoka
2008-01-23 11:09 ` Takashi Iwai
-- strict thread matches above, loose matches on Subject: below --
2008-01-21 9:11 Mihaela Vitalariu
2008-01-21 12:04 ` Jan-Benedict Glaw
2008-01-21 15:13 ` Mihaela Vitalariu
2008-01-21 15:39 ` Timur Tabi
2008-01-22 17:21 ` John Utz
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1200991529.25807.1232559973@webmail.messagingengine.com \
--to=cladisch@fastmail.net \
--cc=alsa-devel@alsa-project.org \
--cc=mazarick@bellsouth.net \
--cc=wavepro-driver-developers@lists.sourceforge.net \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.