EMU-driver
EMU-driver copied to clipboard
remove syncer?
The mSyncer is deprecated by Apple. Maybe we can find a different way to do this
I removed the syncer entirely. It all seems to work fine.
But IOSyncer.h is still there? The function that being used might just have been removed from the .h but still somewhere in IOSyncer (the system).
There is some code related to IOService.addNotification and a call in audioDevicePublished when a device is found. I will just try what happens if I throw it all out.
After removing the mSyncer and related code I got a kernel panic when turning off the device. This is the message
panic(cpu 6 caller 0xffffff800f64e7fa): "A kext releasing a(n) EMUUSBAudioDevice has corrupted the registry."@/SourceCache/xnu/xnu-2422.115.4/libkern/c++/OSObject.cpp:218
Backtrace (CPU 6), Frame : Return Address
0xffffff81fd2d3b20 : 0xffffff800f222f79
0xffffff81fd2d3ba0 : 0xffffff800f64e7fa
0xffffff81fd2d3bf0 : 0xffffff7f90e7f92b
0xffffff81fd2d3c10 : 0xffffff800f69456d
0xffffff81fd2d3c40 : 0xffffff800f6af94e
0xffffff81fd2d3c80 : 0xffffff800f693c60
0xffffff81fd2d3d00 : 0xffffff800f693417
0xffffff81fd2d3d40 : 0xffffff800f6931aa
0xffffff81fd2d3da0 : 0xffffff800f69477c
0xffffff81fd2d3db0 : 0xffffff7f900c11d6
0xffffff81fd2d3de0 : 0xffffff7f903fbc20
0xffffff81fd2d3e20 : 0xffffff7f904035ff
0xffffff81fd2d3e80 : 0xffffff7f9040439d
0xffffff81fd2d3f00 : 0xffffff7f903fa6a1
0xffffff81fd2d3f20 : 0xffffff800f24a20a
0xffffff81fd2d3fb0 : 0xffffff800f2d7607
Kernel Extensions in backtrace:
com.apple.iokit.IOUSBFamily(683.4)[1AC80E0B-01A4-3944-A258-87011B9A1DFF]@0xffffff7f900a3000->0xffffff7f9013dfff
dependency: com.apple.iokit.IOPCIFamily(2.9)[2852ACFE-FD28-3C37-9B39-885201BB8D25]@0xffffff7f8f8bf000
com.apple.driver.AppleUSBHub(683.4)[E1B5B16E-F398-346C-81A6-8C65F068882F]@0xffffff7f903e8000->0xffffff7f90421fff
dependency: com.apple.iokit.IOUSBFamily(683.4.0)[1AC80E0B-01A4-3944-A258-87011B9A1DFF]@0xffffff7f900a3000
com.apple.iokit.IOAudioFamily(1.9.7f2)[092DA230-DD20-3369-A32B-E162A496C638]@0xffffff7f90e7e000->0xffffff7f90eacfff
dependency: com.apple.kext.OSvKernDSPLib(1.14)[7C60EDB3-7527-3412-B424-C9A667A65B92]@0xffffff7f90e6c000
...
last loaded kext at 1200948715427: com.apple.driver.AppleUSBCDC 4.2.1b5 (addr 0xffffff7f919ea000, size 20480)
last unloaded kext at 1106158809745: com.emu.driver.EMUUSBAudio 1 (addr 0xffffff7f919ad000, size 266240)
I found in #79 that the syncer must be somewhere still in the system. Maybe it's not public anymore or so?