mirror of
https://github.com/outbackdingo/OpCore-Simplify.git
synced 2026-01-27 18:19:49 +00:00
Refactor sound hardware check
This commit is contained in:
@@ -125,8 +125,8 @@ class KextMaestro:
|
||||
self.utils.parse_darwin_version(macos_version) >= self.utils.parse_darwin_version("23.0.0"):
|
||||
selected_kexts.append("RestrictEvents")
|
||||
|
||||
if hardware_report.get("Sound"):
|
||||
if list(hardware_report.get("Sound").items())[0][-1].get("Device ID") in codec_layouts.data:
|
||||
for codec_properties in hardware_report.get("Sound", {}).values():
|
||||
if codec_properties.get("Device ID") in codec_layouts.data:
|
||||
selected_kexts.append("AppleALC")
|
||||
|
||||
if "AMD" in hardware_report.get("CPU").get("Manufacturer") and self.utils.parse_darwin_version(macos_version) >= self.utils.parse_darwin_version("21.4.0") or \
|
||||
|
||||
Reference in New Issue
Block a user