Jump to content

getcodecid - Command line tool to detect codec id


Andy Vandijck
 Share

124 posts in this topic

Recommended Posts

THX calibre!

Can you build with DEBUG_MODE 1 an post file generate in your desktop and the output in the debug area in Xcode for both?


yes, you're right   ;)

Because the revision does not show up. VoodooHDA does not publish it. ;)

Link to comment
Share on other sites

Nice work Micky1979!

 

Output here on my iMac with AppleHDA.
Cirrus Logic CS4206 (1013:4206) Rev.(00100301)
Controller 8086:3b56 (sub-ven:8086:7270)
ATI R6xx HDMI (1002:aa01) Rev.(00100200)
Controller 1002:aa58 (sub-ven:106b:aa58)
For DarwinDumper, I cross reference the output with the pci database.
----------------------------------------
Codec: Cirrus Logic CS4206 [1013:4206] Rev.[00100301]
Controller: Intel Corporation 5 Series/3400 Series Chipset High Definition Audio
----------------------------------------
Codec: ATI R6xx HDMI [1002:aa01] Rev.[00100200]
Controller: Advanced Micro Devices, Inc. [AMD/ATI] Juniper HDMI Audio [Radeon HD 5700 Series]
Makes it like a mini LSPCI print.
  • Like 1
Link to comment
Share on other sites

This way is much better!.... You need to modify the width height of the view in DarwinDumper :hysterical:

The final touch will be add in the final print witch kext is used...

Can be added easily in the new created HDA class...

Again this will provide more info when someone read the DD report...

 

ErmaC

Link to comment
Share on other sites

easy :D, will be done!

Done. ;)

 

- Better parse condition for revisionID:

Because in the case the kext used was Voodoo the matched case was incorrect, now if the codec name in the list is not found (VoodooHDA) the first codecid will be associated with codec name.

 

- Reordered codec in the list:

For the fix described above this change was needed.

 

- Now in the final print will be showed the kext currently used.

InsanelyMac:Debug ermac$ ./getcodecid
(AppleHDA)	NVIDIA GT440 (10de:0014) Rev.(00100100)
		Controller 10de:0bea (sub-ven:1458:3544)
(AppleHDA)	Analog Devices AD2000b (11d4:989b) Rev.(00100300)
		Controller 8086:3a3e (sub-ven:106b:00a0)
InsanelyMac:Debug ermac$ 

getcodecid-refactored_better_revID_parser_plus_kext_used.zip

 

ErmaC

  • Like 2
Link to comment
Share on other sites

here is mine output, only wrong or not,  is the REV of my ATI 5000 Series, not ATI R6xx, but not a problem :)  Thanks!!


 


(AppleHDA) Realtek ALC889A (10ec:0885) Rev.(00100101)


Controller 8086:3b56 (sub-ven:1458:a102)


(AppleHDA) ATI R6xx HDMI (1002:aa01) Rev.(00100200)


Controller 1002:aa58 (sub-ven:1682:aa58)

Link to comment
Share on other sites

here is mine output, only wrong or not, is the REV of my ATI 5000 Series, not ATI R6xx, but not a problem :) Thanks!!

 

(AppleHDA) Realtek ALC889A (10ec:0885) Rev.(00100101)

Controller 8086:3b56 (sub-ven:1458:a102)

(AppleHDA) ATI R6xx HDMI (1002:aa01) Rev.(00100200)

Controller 1002:aa58 (sub-ven:1682:aa58)

You mean the codec name? Because the rev is 00100200 (from your output) and with out an IOReg or hardware dump is hard to compare...

 

So... If is the name, we are in the case where a codec name with his corresponding revid need to be added...

ATI Rxx HDMi is the generic one...

But this is the audio controller name of your gfx card not the gfx card name!

 

ErmaC

  • Like 1
Link to comment
Share on other sites

the codec is ok, I talk about HDMI from mine Graphic Card, but not a problem to me, only a comment

 

(AppleHDA) ATI R6xx HDMI (1002:aa01) Rev.(00100200)

I try to explain better...

 

What you see "ATI R6xx HDMI" is the name of your ati gfx codec

your gfx have on it an audio controller and codec similar and in most case identical with a lot of ATI gfx card model...

 

Mine too

InsanelyMac:Debug ermac$ ./getcodecid
(AppleHDA)	NVIDIA GT440 (10de:0014) Rev.(00100100)
		Controller 10de:0bea (sub-ven:1458:3544)
My gfx card is a nvidia gt640 but mount on it a gt440 audio controller/codec

 

ErmaC

  • Like 1
Link to comment
Share on other sites

Thanks for your work guys.

I've revised DarwinDumper to use the latest version posted by ErmaC.

 

And this is what I now see.

post-331032-0-69791200-1439407930_thumb.png

 

Note: I did change the output of getcodecid slightly for my use and that was to print *APPLEHDA* and *VOODOOHDA*, instead of (APPLEHDA) and (VOODOOHDA). This just to make parsing the output simpler.

Edited by blackosx
  • Like 2
Link to comment
Share on other sites

  • 4 weeks later...

Thanks for your work guys.

I've revised DarwinDumper to use the latest version posted by ErmaC.

 

And this is what I now see.

attachicon.gifScreen Shot 2015-08-12 at 20.30.57.png

 

Note: I did change the output of getcodecid slightly for my use and that was to print *APPLEHDA* and *VOOHOOHDA*, instead of (APPLEHDA) and (VOODOOHDA). This just to make parsing the output simpler.

Not VOOHOOHDA but VOODOOHDA  :)

Link to comment
Share on other sites

 

here is mine output, only wrong or not,  is the REV of my ATI 5000 Series, not ATI R6xx, but not a problem :)  Thanks!!

 

(AppleHDA) Realtek ALC889A (10ec:0885) Rev.(00100101)

Controller 8086:3b56 (sub-ven:1458:a102)

(AppleHDA) ATI R6xx HDMI (1002:aa01) Rev.(00100200)

Controller 1002:aa58 (sub-ven:1682:aa58)

 

I confirm the mistake.

In my case it is not 1002:aa01 but must be 1002:aa90

Link to comment
Share on other sites

Can you check with the one there? ..should be "Unknown" and show the real device id since is not defined..

Strange mixture

Realtek ALC887 (10ec:0887)
	Controller 8086:1c20 (sub-ven:1458:a002)
ATI R6xx HDMI (1002:aa01)
	Controller 1002:aa90 (sub-ven:1458:aa90)

Is it as should be?

 

PS. My ATI is HD6670 so it is not R6xx, it is RV930 according to db of FreeBSD.

Link to comment
Share on other sites

 Share

×
×
  • Create New...