miliuco Posted Monday at 11:15 PM Author Share Posted Monday at 11:15 PM Version 4.3.8: add HDAUniversal audio support. Any feedback is very welcome. https://github.com/perez987/About-This-Hack/releases/tag/4.3.8 2 Link to comment https://www.insanelymac.com/forum/topic/362585-about-this-hack-2009-nissan-cube-version-migrated-to-swiftui/page/9/#findComment-2851487 Share on other sites More sharing options...
jlrycm Posted yesterday at 01:16 AM Share Posted yesterday at 01:16 AM (edited) 2 hours ago, miliuco said: Version 4.3.8: add HDAUniversal audio support. Any feedback is very welcome. https://github.com/perez987/About-This-Hack/releases/tag/4.3.8 @miliuco I tested the new release and it worked for me. The audio tab shows up displaying the expected information, except for the layout ID which is defined as 69 in my config.plist but displayed as layout id 11. Need to investigate that further. Edited yesterday at 01:18 AM by jlrycm 2 Link to comment https://www.insanelymac.com/forum/topic/362585-about-this-hack-2009-nissan-cube-version-migrated-to-swiftui/page/9/#findComment-2851491 Share on other sites More sharing options...
miliuco Posted yesterday at 08:32 AM Author Share Posted yesterday at 08:32 AM @jlrycm Anotado. I’ll check this issue. 1 Link to comment https://www.insanelymac.com/forum/topic/362585-about-this-hack-2009-nissan-cube-version-migrated-to-swiftui/page/9/#findComment-2851507 Share on other sites More sharing options...
MaLd0n Posted yesterday at 02:43 PM Share Posted yesterday at 02:43 PM @miliucofor easy thing i created one full database audio codec audio-codecs-Release.zip Make the app always check against that database and filter the way you want. I create this for tool GlassFetch. A good idea is create one for lan too and check these databases everytime. Linux is always a good resource to consult. 2 Link to comment https://www.insanelymac.com/forum/topic/362585-about-this-hack-2009-nissan-cube-version-migrated-to-swiftui/page/9/#findComment-2851514 Share on other sites More sharing options...
miliuco Posted yesterday at 02:53 PM Author Share Posted yesterday at 02:53 PM (edited) @MaLd0n Thanks. I'll review the database. I've found where is the manufacturer in the output of the command ioreg -p IOService -r -w 0 -l -n HDAUniversalDevice It's the property "HDAUniversalEffectiveCodecID" = 283906592 283906592 is a decimal number for the hexadecimal 0x10EC1220, where 10EC corresponds to Realtek, as defined in the HCAudio.swift file of the project. So, I can extract the codec manufacturer from there. @jlrycm Please tell me the values you have in these 4 places in IOReg: /AppleACPIPlatformExpert/PCI0@0/AppleACPIPCI/HDEF@1F,3/HDAUniversalDevice IOAudioDeviceCanBeDefaults HDAUniversalEffectiveLayoutID IOService:/AppleACPIPlatformExpert/PCI0@0/AppleACPIPCI/HDEF@1F,3 layout-id alc-layout-id To see if all keys have the same value or, if they are different, the keys that have your right layout-id. Edited yesterday at 03:32 PM by miliuco Typo 3 Link to comment https://www.insanelymac.com/forum/topic/362585-about-this-hack-2009-nissan-cube-version-migrated-to-swiftui/page/9/#findComment-2851516 Share on other sites More sharing options...
miliuco Posted yesterday at 03:03 PM Author Share Posted yesterday at 03:03 PM @MaLd0n Manufacturer seems to be well identified. Feedback is very welcome. Now it's time to fix the layout-id, since it doesn't work for @jlrycm Spoiler 2 Link to comment https://www.insanelymac.com/forum/topic/362585-about-this-hack-2009-nissan-cube-version-migrated-to-swiftui/page/9/#findComment-2851517 Share on other sites More sharing options...
jlrycm Posted yesterday at 05:27 PM Share Posted yesterday at 05:27 PM (edited) 2 hours ago, miliuco said: @MaLd0n Spoiler Thanks. I'll review the database. I've found where is the manufacturer in the output of the command ioreg -p IOService -r -w 0 -l -n HDAUniversalDevice It's the property "HDAUniversalEffectiveCodecID" = 283906592 283906592 is a decimal number for the hexadecimal 0x10EC1220, where 10EC corresponds to Realtek, as defined in the HCAudio.swift file of the project. So, I can extract the codec manufacturer from there. @jlrycm Please tell me the values you have in these 4 places in IOReg: /AppleACPIPlatformExpert/PCI0@0/AppleACPIPCI/HDEF@1F,3/HDAUniversalDevice IOAudioDeviceCanBeDefaults HDAUniversalEffectiveLayoutID IOService:/AppleACPIPlatformExpert/PCI0@0/AppleACPIPCI/HDEF@1F,3 layout-id alc-layout-id To see if all keys have the same value or, if they are different, the keys that have your right layout-id. @miliuco please see in the screenshots the requested information Spoiler Spoiler Edited yesterday at 05:28 PM by jlrycm 1 Link to comment https://www.insanelymac.com/forum/topic/362585-about-this-hack-2009-nissan-cube-version-migrated-to-swiftui/page/9/#findComment-2851521 Share on other sites More sharing options...
surenmunoo Posted yesterday at 05:41 PM Share Posted yesterday at 05:41 PM Looks amazing, thanks 1 Link to comment https://www.insanelymac.com/forum/topic/362585-about-this-hack-2009-nissan-cube-version-migrated-to-swiftui/page/9/#findComment-2851522 Share on other sites More sharing options...
miliuco Posted yesterday at 05:49 PM Author Share Posted yesterday at 05:49 PM @jlrycm Thanks. How do you inject the layout-id? alcid=69 in boot args or layout-id=45 in DeviceProperties? Your codec admits layouts 11, 12, 13, 21, 22, 23, 31, 66, 69, 77, 98 and 99, so 69 is okay. In the pics that you uploaded, I see the possible issue. You have this key: HDAUniversalEffectiveLayoutID = 0x45 0x45 hexadecimal is 69 in decimal, it's as it should, but it must be converted from hex to decimal. The app was looking for the layout-id in the places where AppleALC usually looks for them: layout-id and alc-layout-id. But HDAUniversalEffectiveLayoutID is the key included in the HDAUniversal block, so I'll change the layout-id source to this. And I'll add the conversion. I'll send it to you when done, to test it. 1 Link to comment https://www.insanelymac.com/forum/topic/362585-about-this-hack-2009-nissan-cube-version-migrated-to-swiftui/page/9/#findComment-2851523 Share on other sites More sharing options...
jlrycm Posted yesterday at 05:54 PM Share Posted yesterday at 05:54 PM (edited) 10 minutes ago, miliuco said: Thanks. How do you inject the layout-id? alcid=69 in boot args or layout-id=45 in DeviceProperties? Your codec admits layouts 11, 12, 13, 21, 22, 23, 31, 66, 69, 77, 98 and 99, so 69 is okay. @miliuco I was injecting the layout id in Device Properties in hexadecimal format. Spoiler Edited yesterday at 06:00 PM by jlrycm 2 Link to comment https://www.insanelymac.com/forum/topic/362585-about-this-hack-2009-nissan-cube-version-migrated-to-swiftui/page/9/#findComment-2851524 Share on other sites More sharing options...
miliuco Posted yesterday at 06:03 PM Author Share Posted yesterday at 06:03 PM 21 minutes ago, surenmunoo said: Looks amazing, thanks You are very welcome. 2 Link to comment https://www.insanelymac.com/forum/topic/362585-about-this-hack-2009-nissan-cube-version-migrated-to-swiftui/page/9/#findComment-2851525 Share on other sites More sharing options...
Alpha22 Posted yesterday at 06:57 PM Share Posted yesterday at 06:57 PM @miliuco perfect 2 Link to comment https://www.insanelymac.com/forum/topic/362585-about-this-hack-2009-nissan-cube-version-migrated-to-swiftui/page/9/#findComment-2851527 Share on other sites More sharing options...
miliuco Posted yesterday at 07:14 PM Author Share Posted yesterday at 07:14 PM (edited) @Alpha22 Please test this version and comment, it has fixed the Produttore field, Realtek in ALC1220. Thanks. @jlrycm Asking to you too, test this version and tell me if the layout-id is well displayed. https://github.com/perez987/About-This-Hack/blob/main/Audio-tab-WIP/About This Hack.zip EDIT: still can't upload files to the forum, sorry. Edited yesterday at 07:28 PM by miliuco Upload dail 1 Link to comment https://www.insanelymac.com/forum/topic/362585-about-this-hack-2009-nissan-cube-version-migrated-to-swiftui/page/9/#findComment-2851529 Share on other sites More sharing options...
Alpha22 Posted yesterday at 07:24 PM Share Posted yesterday at 07:24 PM 8 minutes ago, miliuco said: @Alpha22 Please test this version and comment, it has fixed the Produttore field, Realtek in ALC1220. Thanks. https://github.com/perez987/About-This-Hack/blob/main/Audio-tab-WIP/About This Hack.zip 2 Link to comment https://www.insanelymac.com/forum/topic/362585-about-this-hack-2009-nissan-cube-version-migrated-to-swiftui/page/9/#findComment-2851530 Share on other sites More sharing options...
jlrycm Posted yesterday at 07:41 PM Share Posted yesterday at 07:41 PM (edited) 30 minutes ago, miliuco said: @jlrycm Asking to you too, test this version and tell me if the layout-id is well displayed. https://github.com/perez987/About-This-Hack/blob/main/Audio-tab-WIP/About This Hack.zip EDIT: still can't upload files to the forum, sorry. @miliuco Here is the screenshot showing what I see in the audio tab. The layout id displayed is now 105, still no 69. I believe the app is reading 69 as hexadecimal which in decimal is 105. The hexadecimal for 69 is 0x45, right? Spoiler Edited yesterday at 07:46 PM by jlrycm 2 Link to comment https://www.insanelymac.com/forum/topic/362585-about-this-hack-2009-nissan-cube-version-migrated-to-swiftui/page/9/#findComment-2851532 Share on other sites More sharing options...
miliuco Posted 12 hours ago Author Share Posted 12 hours ago @jlr213 Thanks, the hex to decimal conversion is not working fine. I’ll check this. 1 Link to comment https://www.insanelymac.com/forum/topic/362585-about-this-hack-2009-nissan-cube-version-migrated-to-swiftui/page/9/#findComment-2851541 Share on other sites More sharing options...
miliuco Posted 8 hours ago Author Share Posted 8 hours ago (edited) @jlrycm The layout-id seems to be fixed but my test is not enough, try new version and comment. It's already in the releases page and as separate download too: https://github.com/perez987/About-This-Hack/blob/main/Audio-tab-WIP/About.This.Hack-4.3.8-glass.zip I set the layout-id to 0x45000000 in config.plist to mimic your settings. IOReg displays the layout as hexadecimal (this is what disoriented me, assuming that this value has to be converted to decimal). Spoiler But the command used by the app (ioreg -p IOService -r -w 0 -l -n HDAUniversalDevice) outputs the value as decimal. Spoiler So, no conversion is needed. Now the app has the right value in Audio tab. Spoiler Important! Remember that AppleALC (or VoodoHDA) must be deactivated when using HDAUniversal, if enabled, the layout id value is wrong since is got by AppleALC. Edited 8 hours ago by miliuco Typo Link to comment https://www.insanelymac.com/forum/topic/362585-about-this-hack-2009-nissan-cube-version-migrated-to-swiftui/page/9/#findComment-2851545 Share on other sites More sharing options...
jlrycm Posted 7 hours ago Share Posted 7 hours ago 1 hour ago, miliuco said: @jlrycm The layout-id seems to be fixed but my test is not enough, try new version and comment. It's already in the releases page and as separate download too: https://github.com/perez987/About-This-Hack/blob/main/Audio-tab-WIP/About.This.Hack-4.3.8-glass.zip I set the layout-id to 0x45000000 in config.plist to mimic your settings. IOReg displays the layout as hexadecimal (this is what disoriented me, assuming that this value has to be converted to decimal). Reveal hidden contents But the command used by the app (ioreg -p IOService -r -w 0 -l -n HDAUniversalDevice) outputs the value as decimal. Reveal hidden contents So, no conversion is needed. Now the app has the right value in Audio tab. Reveal hidden contents Important! Remember that AppleALC (or VoodoHDA) must be deactivated when using HDAUniversal, if enabled, the layout id value is wrong since is got by AppleALC. @miliuco thank you. I tested the app and it worked as you can see in the screenshot. Win! Spoiler 1 Link to comment https://www.insanelymac.com/forum/topic/362585-about-this-hack-2009-nissan-cube-version-migrated-to-swiftui/page/9/#findComment-2851549 Share on other sites More sharing options...
miliuco Posted 6 hours ago Author Share Posted 6 hours ago (edited) @jlrycm Thanks for your help to debugging this. But I see another possible issue. Device is displayed as hex. It must have a name. Intel 0xf0c8 is the PCI device ID for the Intel 500 Series PCH High Definition (HD) Audio Controller. I’ll review if is in the devices list. Edited 6 hours ago by miliuco Typo Link to comment https://www.insanelymac.com/forum/topic/362585-about-this-hack-2009-nissan-cube-version-migrated-to-swiftui/page/9/#findComment-2851552 Share on other sites More sharing options...
miliuco Posted 4 hours ago Author Share Posted 4 hours ago @jlrycm Can you test this and tell me if the device is well detected? Gracias! https://github.com/perez987/About-This-Hack/blob/main/Audio-tab-WIP/About This Hack-glass.zip Link to comment https://www.insanelymac.com/forum/topic/362585-about-this-hack-2009-nissan-cube-version-migrated-to-swiftui/page/9/#findComment-2851561 Share on other sites More sharing options...
jlrycm Posted 2 hours ago Share Posted 2 hours ago 1 hour ago, miliuco said: @jlrycm Can you test this and tell me if the device is well detected? Gracias! https://github.com/perez987/About-This-Hack/blob/main/Audio-tab-WIP/About This Hack-glass.zip @miliuco This is a new screenshot testing your new version Spoiler 1 Link to comment https://www.insanelymac.com/forum/topic/362585-about-this-hack-2009-nissan-cube-version-migrated-to-swiftui/page/9/#findComment-2851566 Share on other sites More sharing options...
miliuco Posted 2 hours ago Author Share Posted 2 hours ago @jlrycm Sorry, duplicated Intel label, fixed. https://github.com/perez987/About-This-Hack/releases/tag/4.3.8 Link to comment https://www.insanelymac.com/forum/topic/362585-about-this-hack-2009-nissan-cube-version-migrated-to-swiftui/page/9/#findComment-2851569 Share on other sites More sharing options...
jlrycm Posted 1 hour ago Share Posted 1 hour ago 48 minutes ago, miliuco said: @jlrycm Sorry, duplicated Intel label, fixed. https://github.com/perez987/About-This-Hack/releases/tag/4.3.8 @miliuco tested and looks good to me. 1 Link to comment https://www.insanelymac.com/forum/topic/362585-about-this-hack-2009-nissan-cube-version-migrated-to-swiftui/page/9/#findComment-2851570 Share on other sites More sharing options...
jlrycm Posted 54 minutes ago Share Posted 54 minutes ago Kudos to @miliuco for updating so quickly the About My Hack app to integrate the audio stack specifics under the HDAUniversal kext. 1 Link to comment https://www.insanelymac.com/forum/topic/362585-about-this-hack-2009-nissan-cube-version-migrated-to-swiftui/page/9/#findComment-2851572 Share on other sites More sharing options...
miliuco Posted 17 minutes ago Author Share Posted 17 minutes ago @jlrycm Thanks to you for collaborate in the improvement of the app. 1 Link to comment https://www.insanelymac.com/forum/topic/362585-about-this-hack-2009-nissan-cube-version-migrated-to-swiftui/page/9/#findComment-2851573 Share on other sites More sharing options...
Recommended Posts