Moved to: http://www.projectos...p?showtopic=465
392 replies to this topic
#1
Posted 24 September 2008 - 11:36 AM
#2
Posted 28 September 2008 - 08:31 PM
nice guide man... will be trying this soon
#3
Posted 28 September 2008 - 08:36 PM
#4
Posted 28 September 2008 - 09:33 PM
Thanks
Its not complete, was a fast write... I have to add on it more info and howto...
For now I'm stuck on codec verbs...searching on intel docs(I hate that, especial b/c dunno for what to look) also that missing info on terms makes this patching stuff even more hard..
Laso if u look on my converted dump there are some connections with an "*" on it, also dunno why:
CONNECTION: 5
12* 13 14 15 38
Maybe Taruga can help us to understand better.
L.E. Seems that "*" means connection in use.
Dunno for sure, maybe someone can confirm/or not this.
Its not complete, was a fast write... I have to add on it more info and howto...
For now I'm stuck on codec verbs...searching on intel docs(I hate that, especial b/c dunno for what to look) also that missing info on terms makes this patching stuff even more hard..
Laso if u look on my converted dump there are some connections with an "*" on it, also dunno why:
CONNECTION: 5
12* 13 14 15 38
Maybe Taruga can help us to understand better.
L.E. Seems that "*" means connection in use.
Dunno for sure, maybe someone can confirm/or not this.
#5
Posted 30 September 2008 - 01:43 PM
attaching a ruby script which will convert the hex values to decimal.
usage:
chmod +x convert_hex_to_dec.rb
./convert_hex_to_dec.rb dumpfile.txt
it will output to stdout. if you want u can pipe it to a file with:
./convert_hex_to_dec.rb dumpfile.txt >newdumpfile.txt
usage:
chmod +x convert_hex_to_dec.rb
./convert_hex_to_dec.rb dumpfile.txt
it will output to stdout. if you want u can pipe it to a file with:
./convert_hex_to_dec.rb dumpfile.txt >newdumpfile.txt
Attached Files
#6
Posted 30 September 2008 - 01:53 PM
#7
Posted 02 October 2008 - 10:12 AM
I get
What's the matter ?
Does the .profile file goes in ~/ ? Which profile file is it ? graphviz ?
Thank's
PM!
EDIT : OK my dump was wrong. I't ok now... i can follow the guide.
File "/Users/paul/Desktop/codecgraph/codecgraph.py", line 496, in <module> main(sys.argv) File "/Users/paul/Desktop/codecgraph/codecgraph.py", line 492, in main ci = CodecInfo(f) File "/Users/paul/Desktop/codecgraph/codecgraph.py", line 442, in __init__ n = Node(self, item, subitems) File "/Users/paul/Desktop/codecgraph/codecgraph.py", line 106, in __init__ self.nid = int(m.group(1), 16) AttributeError: 'NoneType' object has no attribute 'group'when trying to generate the codec.txt.svg it says then
Generating ALC889a.txt.svgBut
bash-3.2# ls ~/Desktop/codecgraph/ .DS_Store COPYING README codecgraph.py samples ALC889a.txt IDEAS codecgraph codecs.txt BUGS Makefile codecgraph.1 out
What's the matter ?
Does the .profile file goes in ~/ ? Which profile file is it ? graphviz ?
Thank's
PM!
EDIT : OK my dump was wrong. I't ok now... i can follow the guide.
#8
Posted 04 October 2008 - 05:37 PM
My little research about AppleHDA, i don't know if this things is right or not, just my experience.
We trying to understand how to modify codec verb (ConfigData)
The ConfigData looks like this:
<01471cf0 01471d00 01471e11 01471f40 01571c30 01571d40 01571e01 01571f01 01671c0f 01671d00 01671e00 01671f40 01771c0f 01771d00 01771e00 01771f40 01871c10 01871d01 01871ea0 01871f90 01971c11 01971d01 01971ea0 01971f90 01a71c20 01a71d30 01a71e81 01a71f01 01b71c50 01b71d70 01b71e21 01b71f01 01f71c30 01f71de0 01f71ec5 01f71f01 01e71c60 01e71de0 01e71e45 01e71f01>
As you can see, here is group of 4 values: 01471cf0 01471d00 01471e11 01471f40
This is what i found on every group:
01471xx = Green (Internal Speaker)
01571xx = Black (Line Out)
01671xx = ?
01771xx = ?
01871xx = Pink (External Mic In)
01971xx = ?
01a71xx = Blue (Line In)
01b71xx = Front (Headphones)
01f71xx = ?
01e71xx = ?
Another finding, again, im not sure if its right.
Group look like this:
01471cf0 01471d00 01471e11 01471f40
Value 1) Something with sound mapping <- if you change this value, you broke the sound.
Value 2) ?
Value 3) Changing Name (ex: Line out to Headphones)
Lets say if you change 01471e11 to 01471e40 you'll see that your Internal Speaker changed to Headphones, but only the name, mapping still the same.
Value 4) ?
Thats it.
Enjoy.
Feel free to add your researches or correct ours.
We trying to understand how to modify codec verb (ConfigData)
The ConfigData looks like this:
<01471cf0 01471d00 01471e11 01471f40 01571c30 01571d40 01571e01 01571f01 01671c0f 01671d00 01671e00 01671f40 01771c0f 01771d00 01771e00 01771f40 01871c10 01871d01 01871ea0 01871f90 01971c11 01971d01 01971ea0 01971f90 01a71c20 01a71d30 01a71e81 01a71f01 01b71c50 01b71d70 01b71e21 01b71f01 01f71c30 01f71de0 01f71ec5 01f71f01 01e71c60 01e71de0 01e71e45 01e71f01>
As you can see, here is group of 4 values: 01471cf0 01471d00 01471e11 01471f40
This is what i found on every group:
01471xx = Green (Internal Speaker)
01571xx = Black (Line Out)
01671xx = ?
01771xx = ?
01871xx = Pink (External Mic In)
01971xx = ?
01a71xx = Blue (Line In)
01b71xx = Front (Headphones)
01f71xx = ?
01e71xx = ?
Another finding, again, im not sure if its right.
Group look like this:
01471cf0 01471d00 01471e11 01471f40
Value 1) Something with sound mapping <- if you change this value, you broke the sound.
Value 2) ?
Value 3) Changing Name (ex: Line out to Headphones)
Lets say if you change 01471e11 to 01471e40 you'll see that your Internal Speaker changed to Headphones, but only the name, mapping still the same.
Value 4) ?
Thats it.
Enjoy.
Feel free to add your researches or correct ours.
#10
Posted 04 October 2008 - 10:17 PM
Codec Graph for STAC9274D found on badaxe2 in hex and decimal and archived as a zip file and codec dump
TheKing:
look in Taruga's patched AppleHDA.kext/Contents/Resources. Here you will find a number of Layout.xml and PathMap.xml files, it might help.
TheKing:
Quote
Layouts dunno... I leave them as they are...someone?
look in Taruga's patched AppleHDA.kext/Contents/Resources. Here you will find a number of Layout.xml and PathMap.xml files, it might help.
Attached Files
#11
Posted 05 October 2008 - 08:59 AM
hey i was wandering how to convert the hex to dec in OSX calculator. im really confused
#12
Posted 06 October 2008 - 08:06 AM
justvisiting, on Oct 5 2008, 01:17 AM, said:
look in Taruga's patched AppleHDA.kext/Contents/Resources. Here you will find a number of Layout.xml and PathMap.xml files, it might help.
@jaysonz Why you still try to use calculator for converssion now once u have a script for that, also I dont get what is not clear for using calculator...if you still want to spend a lot of time...
#13
Posted 08 October 2008 - 10:29 AM
stickpin, on Oct 4 2008, 05:37 PM, said:
My little research about AppleHDA, i don't know if this things is right or not, just my experience.
Group look like this:
01471cf0 01471d00 01471e11 01471f40
Value 1) Something with sound mapping <- if you change this value, you broke the sound.
Value 2) ?
Value 3) Changing Name (ex: Line out to Headphones)
Lets say if you change 01471e11 to 01471e40 you'll see that your Internal Speaker changed to Headphones, but only the name, mapping still the same.
Value 4) ?
Thats it.
Enjoy.
Feel free to add your researches or correct ours.
Group look like this:
01471cf0 01471d00 01471e11 01471f40
Value 1) Something with sound mapping <- if you change this value, you broke the sound.
Value 2) ?
Value 3) Changing Name (ex: Line out to Headphones)
Lets say if you change 01471e11 to 01471e40 you'll see that your Internal Speaker changed to Headphones, but only the name, mapping still the same.
Value 4) ?
Thats it.
Enjoy.
Feel free to add your researches or correct ours.
#14
Posted 08 October 2008 - 06:06 PM
Im trying this to work on an ADI1981.... took the ADI1988b patched from taruga as a model....
no success so far...
how to generate a diagram with codecgraph?
no success so far...
how to generate a diagram with codecgraph?
#15
Posted 10 October 2008 - 02:38 AM
very very interesting topic, thank you THe King
#16
Posted 10 October 2008 - 03:11 AM
should i give some time with 1998B or it's worthless?
i don't know about progress so far, taruga wiki is down a long time
i don't know about progress so far, taruga wiki is down a long time
#17
Posted 10 October 2008 - 10:49 AM
I made a graph from the codec dump
but I get this errors while doing it:
Although the graphic seems to be ok...
but I get this errors while doing it:
Quote
bash-3.2# ./codecgraph /Users/dlow/Desktop/codecgraph/ADI1981.txt
Codec: Analog Devices AD1981
Node 0x05: Amp-In vals count is wrong: values found: 2. expected: 1
Node 0x08: Amp-In vals count is wrong: values found: 0. expected: 1
Node 0x09: Amp-In vals count is wrong: values found: 2. expected: 1
Node 0x18: Amp-In vals count is wrong: values found: 2. expected: 1
Generating ADI1981.txt.svg
Codec: Analog Devices AD1981
Node 0x05: Amp-In vals count is wrong: values found: 2. expected: 1
Node 0x08: Amp-In vals count is wrong: values found: 0. expected: 1
Node 0x09: Amp-In vals count is wrong: values found: 2. expected: 1
Node 0x18: Amp-In vals count is wrong: values found: 2. expected: 1
Generating ADI1981.txt.svg
Although the graphic seems to be ok...
#18
Posted 12 October 2008 - 01:56 PM
Dear,
First, thank very much this helpful guide to understand AppleHDA structure.
This is what I was looking for during a month to understand...
BTW, when I tryed to build Graphviz from MacPort, I failed...(becuase I'm newbie of Mac)
However, I found the binary package of this 'Graphviz' for Leopard from here http://www.pixelglow...phviz/download/. It is version 2.18(March 2008).
I do not test yet, but I hope it will be helpful for others.
Thanks,
First, thank very much this helpful guide to understand AppleHDA structure.
This is what I was looking for during a month to understand...
BTW, when I tryed to build Graphviz from MacPort, I failed...(becuase I'm newbie of Mac)
However, I found the binary package of this 'Graphviz' for Leopard from here http://www.pixelglow...phviz/download/. It is version 2.18(March 2008).
I do not test yet, but I hope it will be helpful for others.
Thanks,
#19
Posted 13 October 2008 - 06:58 AM
PM!, on Oct 2 2008, 11:12 AM, said:
I get
What's the matter ?
Does the .profile file goes in ~/ ? Which profile file is it ? graphviz ?
Thank's
PM!
EDIT : OK my dump was wrong. I't ok now... i can follow the guide.
File "/Users/paul/Desktop/codecgraph/codecgraph.py", line 496, in <module> main(sys.argv) File "/Users/paul/Desktop/codecgraph/codecgraph.py", line 492, in main ci = CodecInfo(f) File "/Users/paul/Desktop/codecgraph/codecgraph.py", line 442, in __init__ n = Node(self, item, subitems) File "/Users/paul/Desktop/codecgraph/codecgraph.py", line 106, in __init__ self.nid = int(m.group(1), 16) AttributeError: 'NoneType' object has no attribute 'group'when trying to generate the codec.txt.svg it says then
Generating ALC889a.txt.svgBut
bash-3.2# ls ~/Desktop/codecgraph/ .DS_Store COPYING README codecgraph.py samples ALC889a.txt IDEAS codecgraph codecs.txt BUGS Makefile codecgraph.1 out
What's the matter ?
Does the .profile file goes in ~/ ? Which profile file is it ? graphviz ?
Thank's
PM!
EDIT : OK my dump was wrong. I't ok now... i can follow the guide.
You say your dump was wrong, how was it wrong? I am getting the same error, i converted the dump to dec but i can't convert it to svg format. if my dump is in hex format then it converts to svg without any problems
#20
Posted 13 October 2008 - 08:20 AM
THe KiNG, on Sep 24 2008, 01:36 PM, said:
- after install is done and u got this last mesg: ---> Cleaning graphviz type in terminal(press enter after each line):
cd
then type:
nano .profile
copy/paste this line in terminal: export PATH=/opt/local/bin:/opt/local/sbin:$PATH
Then press ctrl+x
type y
then enter
Jobe is done, close and open terminal again for the next step:
- Download CodecGraph *Tip look first on already uploaded codec graphs, on the main site, if you codec is already there(specific hw also!) then u are lucky and u don't need to make a new one, just skip the making part and just convert hex to dec for easy undestanding and plist modd.
- unzip it to desktop and rename the folder to codecgraph(also rename your codec dump to just 1 name if it have more, like alcxxx.txt), put your codec dump in the same folder
- now in terminal cd to your codecgraph folder example:
cd /Users/theking/Desktop/codecgraph
- then type:
./codecgraph /Users/theking/Desktop/codecgraph/M50SV.txt *replace "theking" & "M50SV.txt" with your user and codec name file
cd
then type:
nano .profile
copy/paste this line in terminal: export PATH=/opt/local/bin:/opt/local/sbin:$PATH
Then press ctrl+x
type y
then enter
Jobe is done, close and open terminal again for the next step:
- Download CodecGraph *Tip look first on already uploaded codec graphs, on the main site, if you codec is already there(specific hw also!) then u are lucky and u don't need to make a new one, just skip the making part and just convert hex to dec for easy undestanding and plist modd.
- unzip it to desktop and rename the folder to codecgraph(also rename your codec dump to just 1 name if it have more, like alcxxx.txt), put your codec dump in the same folder
- now in terminal cd to your codecgraph folder example:
cd /Users/theking/Desktop/codecgraph
- then type:
./codecgraph /Users/theking/Desktop/codecgraph/M50SV.txt *replace "theking" & "M50SV.txt" with your user and codec name file
That's what I get:
bash-3.2# ./codecgraph /Users/snooker/Desktop/codecgraph/dumpfile.txt error: dot executable not found (did you install graphviz?) bash-3.2#I definately did install graphwiz. Procedure ended as expected with ---> Cleaning graphviz.
I presume it depends on the location of the .profile file.
Is it correct that is has to be in my home directory? because a simple cd command is directing me to there.
0 user(s) are reading this topic
0 members, 0 guests, 0 anonymous users



Sign In
Create Account











