miliuco Posted 19 hours ago Author Share Posted 19 hours ago 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 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 17 hours ago Share Posted 17 hours ago (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 17 hours ago 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 9 hours ago Author Share Posted 9 hours ago @jlrycm Anotado. I’ll check this issue. 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 3 hours ago Share Posted 3 hours ago @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. 1 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 3 hours ago Author Share Posted 3 hours ago (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 2 hours ago by miliuco Typo 2 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 3 hours ago Author Share Posted 3 hours ago @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 1 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 1 hour ago Share Posted 1 hour ago (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 1 hour ago by jlrycm 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 49 minutes ago Share Posted 49 minutes ago 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 41 minutes ago Author Share Posted 41 minutes ago @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. 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 35 minutes ago Share Posted 35 minutes ago (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 30 minutes ago 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-2851524 Share on other sites More sharing options...
miliuco Posted 27 minutes ago Author Share Posted 27 minutes ago 21 minutes ago, surenmunoo said: Looks amazing, thanks You are very welcome. 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...
Recommended Posts