[alsa-devel] HDA codec graphing
After a lot of time published only as a git repository, I created a page and tarball for Eduardo Habkost's codecgraph tool to graph the layout of HDA codecs. It may be useful for those tweaking or troubleshooting existing drivers. The page has also examples of different codec layouts rendered in SVG. See details at http://helllabs.org/codecgraph/.
At Thu, 17 Jan 2008 10:24:00 -0200, Claudio Matsuoka wrote:
After a lot of time published only as a git repository, I created a page and tarball for Eduardo Habkost's codecgraph tool to graph the layout of HDA codecs. It may be useful for those tweaking or troubleshooting existing drivers. The page has also examples of different codec layouts rendered in SVG. See details at http://helllabs.org/codecgraph/.
Nice. Then we shouldn't change the proc output format any more, or at least, keep codecgraph working :)
I think it's worth to include this to the ALSA upstream repo. Any other useful stuff? Maybe Tobin's script would be good.
Or, maybe it's better to keep outside so that other people can change more freely than on alsa-project.org...
Takashi
On Jan 17, 2008 12:46 PM, Takashi Iwai tiwai@suse.de wrote:
Nice. Then we shouldn't change the proc output format any more, or at least, keep codecgraph working :)
Change the format as needed, as long as it is unambiguous and contains all the necessary information we'll keep the tool up to date.
I think it's worth to include this to the ALSA upstream repo. Any other useful stuff? Maybe Tobin's script would be good. Or, maybe it's better to keep outside so that other people can change more freely than on alsa-project.org...
The grapher is still unstable, keeping it outside would probably be better for now.
I ran this on my home system (Intel DP965LT - STAC9227). Attached is the graph to add to your samples.
I also am submitting the first (of possibly many) patches. This one will also look in the $PWD for the codecgraph.py file, so users who don't wish to install this can just download and run it in place.
I noticed a few output errors as well:
6: Unknown item: No Modem Function Group found 10: Unknown item: Default PCM:
But as I am not yet familiar with python, I'd like to just report these for now.
As to "my script", first let me clarify that it isn't mine. A user (wishie) on #alsa at irc.freenode.net worked with me to develop it, but he deserves full credit. On that note, these both should be added to alsa-utils or alsa-tools and to the main web site. Together, they will make development/debug much nicer.
Tobin
On Thu, 2008-01-17 at 16:18 -0200, Claudio Matsuoka wrote:
On Jan 17, 2008 12:46 PM, Takashi Iwai tiwai@suse.de wrote:
Nice. Then we shouldn't change the proc output format any more, or at least, keep codecgraph working :)
Change the format as needed, as long as it is unambiguous and contains all the necessary information we'll keep the tool up to date.
I think it's worth to include this to the ALSA upstream repo. Any other useful stuff? Maybe Tobin's script would be good. Or, maybe it's better to keep outside so that other people can change more freely than on alsa-project.org...
The grapher is still unstable, keeping it outside would probably be better for now.
On Jan 18, 2008 2:28 AM, Tobin Davis tdavis@dsl-only.net wrote:
I ran this on my home system (Intel DP965LT - STAC9227). Attached is the graph to add to your samples.
Could you send me the subdevice ID and the codec file? We store the samples in codec file format (instead of the generated ps/svg/png files).
I also am submitting the first (of possibly many) patches. This one will also look in the $PWD for the codecgraph.py file, so users who don't wish to install this can just download and run it in place.
I noticed a few output errors as well:
6: Unknown item: No Modem Function Group found 10: Unknown item: Default PCM: But as I am not yet familiar with python, I'd like to just report these for now.
Thanks. In fact the tool is Eduardo's, I added the wrapper shell instead of building that functionality into the Python script exactly because I'm not familiar with Python as well, but I though this script was a good excuse to learn it ;) So eventually (soon, I hope) I'll change the main script to pipe the output directly into graphviz and get rid of the wrapper.
On Fri, 2008-01-18 at 08:39 -0200, Claudio Matsuoka wrote:
On Jan 18, 2008 2:28 AM, Tobin Davis tdavis@dsl-only.net wrote:
I ran this on my home system (Intel DP965LT - STAC9227). Attached is the graph to add to your samples.
Could you send me the subdevice ID and the codec file? We store the samples in codec file format (instead of the generated ps/svg/png files).
Ok, attached.
I also am submitting the first (of possibly many) patches. This one will also look in the $PWD for the codecgraph.py file, so users who don't wish to install this can just download and run it in place.
I noticed a few output errors as well:
6: Unknown item: No Modem Function Group found 10: Unknown item: Default PCM: But as I am not yet familiar with python, I'd like to just report these for now.
Thanks. In fact the tool is Eduardo's, I added the wrapper shell instead of building that functionality into the Python script exactly because I'm not familiar with Python as well, but I though this script was a good excuse to learn it ;) So eventually (soon, I hope) I'll change the main script to pipe the output directly into graphviz and get rid of the wrapper.
On Jan 18, 2008 12:52 PM, Tobin Davis tdavis@dsl-only.net wrote:
On Fri, 2008-01-18 at 08:39 -0200, Claudio Matsuoka wrote:
Could you send me the subdevice ID and the codec file? We store the samples in codec file format (instead of the generated ps/svg/png files).
Ok, attached.
Added, thanks. I also changed the way it finds the python script so you'll be able to run it from the same path as the wrapper script.
On Thu, Jan 17, 2008 at 08:28:13PM -0800, Tobin Davis wrote:
I ran this on my home system (Intel DP965LT - STAC9227). Attached is the graph to add to your samples.
I also am submitting the first (of possibly many) patches. This one will also look in the $PWD for the codecgraph.py file, so users who don't wish to install this can just download and run it in place.
I noticed a few output errors as well:
6: Unknown item: No Modem Function Group found 10: Unknown item: Default PCM:
It is just a warning because the script doesn't know what those lines mean. But those lines are simply ignored and it shouldn't cause problems.
I have just changed the script to not give a warning on those cases.
Claudio Matsuoka wrote:
After a lot of time published only as a git repository, I created a page and tarball for Eduardo Habkost's codecgraph tool to graph the layout of HDA codecs. It may be useful for those tweaking or troubleshooting existing drivers. The page has also examples of different codec layouts rendered in SVG. See details at http://helllabs.org/codecgraph/.
Please find attached a codec file for SigmaTel STAC9227, for addition to the samples on your web page.
home:~# lspci -n -vv -d 8086:284b 00:1b.0 0403: 8086:284b (rev 02) Subsystem: 8086:2114 Control: I/O- Mem+ BusMaster+ SpecCycle- MemWINV- VGASnoop- ParErr- Stepping- SERR- FastB2B- Status: Cap+ 66MHz- UDF- FastB2B- ParErr- DEVSEL=fast >TAbort- <TAbort- <MAbort- >SERR- <PERR- Latency: 0, Cache Line Size: 64 bytes Interrupt: pin A routed to IRQ 23 Region 0: Memory at 90420000 (64-bit, non-prefetchable) [size=16K] Capabilities: [50] Power Management version 2 Flags: PMEClk- DSI- D1- D2- AuxCurrent=55mA PME(D0+,D1-,D2-,D3hot+,D3cold+) Status: D0 PME-Enable- DSel=0 DScale=0 PME- Capabilities: [60] Message Signalled Interrupts: Mask- 64bit+ Queue=0/0 Enable- Address: 0000000000000000 Data: 0000 Capabilities: [70] Express Unknown type IRQ 0 Device: Supported: MaxPayload 128 bytes, PhantFunc 0, ExtTag- Device: Latency L0s <64ns, L1 <1us Device: Errors: Correctable- Non-Fatal- Fatal- Unsupported- Device: RlxdOrd- ExtTag- PhantFunc- AuxPwr- NoSnoop+ Device: MaxPayload 128 bytes, MaxReadReq 128 bytes Link: Supported Speed unknown, Width x0, ASPM unknown, Port 0 Link: Latency L0s <64ns, L1 <1us Link: ASPM Disabled CommClk- ExtSynch- Link: Speed unknown, Width x0
2008/1/18 Alexander E. Patrakov patrakov@gmail.com:
Please find attached a codec file for SigmaTel STAC9227, for addition to the samples on your web page.
Thanks, is that an Intel DG965SS board?
2008/1/19, Claudio Matsuoka cmatsuoka@gmail.com:
2008/1/18 Alexander E. Patrakov patrakov@gmail.com:
Please find attached a codec file for SigmaTel STAC9227, for addition to the samples on your web page.
Thanks, is that an Intel DG965SS board?
Yes.
participants (5)
-
Alexander E. Patrakov
-
Claudio Matsuoka
-
Eduardo Pereira Habkost
-
Takashi Iwai
-
Tobin Davis