RFC - Clean up of ALSA kernel codes
In your message you mentioned:
"8. Clean up proc fs handlers".
My only idea is to make the /proc stuff a little more "page friendly". Many of the register dumps are one register per line. It is a bit easier (in my opinion) to have them say 8 register values per line. It makes the things easier to read, and refer without scrolling back and forth. As an example (not limited to JUST this sound card): /proc/asound/V8235/via82xx produces over 40 lines of register data. It could have just as easily been formatted horizontally and be at a minimum 1/4 of the number of lines.
Yes, this is a picky item, but having register data in a nice readable format makes for nicer debugging. Obviously this is not a "high priority" item, as the current setup does function. I will leave it to others to determine the priority of such a change.
I do have a driver in the planning stages, and my intent is to make the /proc printouts "nicely formatted". We shall see when I publish the driver which is one of those "real soon now" (in the works for 2+ years) things.
Just random thoughts.
Signature · 14 lines
Tom Watson [email protected] __________________________________ Yahoo! Mail - PC Magazine Editors' Choice 2005 http://mail.yahoo.com ------------------------------------------------------- This SF.Net email is sponsored by: Power Architecture Resource Center: Free content, downloads, discussions, and more. http://solutions.newsforge.com/ibmarch.tmpl
Quoted 6 lines · Tom Watson
In your message you mentioned:
"8. Clean up proc fs handlers".My only idea is to make the /proc stuff a little more "page friendly". Many of the register dumps are one register per line. It is a bit easier (in my opinion) to have them say 8 register values per line. It
I don't agree here. We have a lot text utilities (grep, awk etc.) which can be used to filter the registers for which one looks for. Having them mixed on one line means more mess (and you need the datasheet to check offsets by hand).
Jaroslav
-----
Jaroslav Kysela <[email protected]>
Linux Kernel Sound Maintainer
ALSA Project, SUSE Labs
-------------------------------------------------------
This SF.Net email is sponsored by:
Power Architecture Resource Center: Free content, downloads, discussions, and more. http://solutions.newsforge.com/ibmarch.tmpl
At Fri, 7 Oct 2005 09:16:44 +0200 (CEST),
Quoted 6 lines · Jaroslav
Quoted 3 lines · Tom Watson
In your message you mentioned:
"8. Clean up proc fs handlers".
Quoted 8 lines
Quoted 3 lines
My only idea is to make the /proc stuff a little more "page friendly". Many of the register dumps are one register per line. It is a bit easier (in my opinion) to have them say 8 register values per line. It
I don't agree here. We have a lot text utilities (grep, awk etc.) which can be used to filter the registers for which one looks for. Having them mixed on one line means more mess (and you need the datasheet to check offsets by hand).
Yep. (But rhetorically it's true in the reverse way, too ;)
One of the merits with one-register-per-line is that you can easiy find out the changes by grep. Imagine you have register snapshots and compare them.
Regarding /proc:
Some opinions are to move /proc stuff to /sys. But I have no strong reason to do this yet, especially since /sys is not ordered beautifully now as it was supposed to be.
Takashi
-------------------------------------------------------
This SF.Net email is sponsored by:
Power Architecture Resource Center: Free content, downloads, discussions, and more. http://solutions.newsforge.com/ibmarch.tmpl