Skip to content

Commit

Permalink
Misc fixes
Browse files Browse the repository at this point in the history
Signed-off-by: Visual Ehrmanntraut <[email protected]>
  • Loading branch information
VisualEhrmanntraut committed Mar 18, 2024
1 parent e0b3889 commit 42a13c7
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion NootedRed/NRed.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ static X6000 x6000;
static AppleGFXHDA agfxhda;

void NRed::init() {
SYSLOG("NRed", "Copyright 2022-2023 ChefKiss Inc. If you've paid for this, you've been scammed.");
SYSLOG("NRed", "Copyright 2022-2024 ChefKiss Inc. If you've paid for this, you've been scammed.");
callback = this;

lilu.onKextLoadForce(&kextAGDP);
Expand Down
12 changes: 6 additions & 6 deletions NootedRed/X6000FB.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -347,7 +347,7 @@ IOReturn X6000FB::wrapSetAttributeForConnection(IOService *framebuffer, IOIndex
if (success) {
return kIOReturnSuccess;
} else {
DBGLOG("X6000FB", "Failed to set backlight level");
SYSLOG("X6000FB", "Failed to set backlight level");
return kIOReturnDeviceError;
}
}
Expand Down Expand Up @@ -416,7 +416,7 @@ void *X6000FB::wrapLinkCreate(void *data) {
UInt32 signalType = getMember<UInt32>(ret, 0x38);
if (signalType == DC_SIGNAL_TYPE_LVDS || signalType == DC_SIGNAL_TYPE_EDP) {
callback->embeddedPanelLink = ret;
UInt32 fieldBase = 0;
UInt32 fieldBase;
switch (getKernelVersion()) {
case KernelVersion::Catalina:
fieldBase = 0x1EA;
Expand All @@ -440,14 +440,14 @@ void *X6000FB::wrapLinkCreate(void *data) {
} else if (getKernelVersion() == KernelVersion::Catalina &&
getMember<UInt8>(ret, fieldBase) & DC_DPCD_EXT_CAPS_HDR_SUPPORTS_AUX) {
DBGLOG("X6000FB", "Display supports AUX and we are on Catalina, enabling AUX control.");
callback->supportsAux =
true; //! dc_link_set_brightness_nits or somewhere along the chain will boot us out of setting it
//! dc_link_set_brightness_nits or somewhere along the chain will boot us out of setting it
callback->supportsAux = true;
callback->isHDR = true;
} else if (getKernelVersion() == KernelVersion::Catalina &&
getMember<UInt8>(ret, fieldBase) & DC_DPCD_EXT_CAPS_SDR_SUPPORTS_AUX) {
DBGLOG("X6000FB", "Display supports AUX and we are on Catalina, enabling AUX control.");
callback->supportsAux =
true; //! dc_link_set_brightness_nits or somewhere along the chain will boot us out of setting it
//! dc_link_set_brightness_nits or somewhere along the chain will boot us out of setting it
callback->supportsAux = true;
}
}
return ret;
Expand Down

0 comments on commit 42a13c7

Please sign in to comment.