The config.plist has the correct setting.
Devices/Audio/Inject=0 is the way you keep Clover from injecting anything for audio.
Also note: Because of this is not possible to inject layout-id=0 with Clover's Audio/Inject even though layout-id 0 is valid (it just means we generally use a different layout-id, and if can be injected with ACPI or /Devices/Arbitrary if really needed).
Another note: ACPI injections (via _DSM) always override any injections done via EFI properties.
If you remove Audio/Inject, clover will inject a "default" that is based on the codec id (which is usually wrong).
Here is the relevant code from Clover:
Code:
Prop2 = GetProperty (DictPointer, "Audio");
if (Prop2 != NULL) {
// HDA
// Prop = GetProperty (Prop2, "ResetHDA");
// gSettings.ResetHDA = IsPropertyTrue (Prop);
Prop = GetProperty (Prop2, "Inject");
if (Prop != NULL) {
// enabled by default
// syntax:
// [B]- HDAInjection=No or 0 - disables injection[/B]
// - HDAInjection=887 - injects layout-id 887 decimal (0x00000377)
// - HDAInjection=0x377 - injects layout-id 887 decimal (0x00000377)
// - HDAInjection=Detect - reads codec device id (eg. 0x0887)
// converts it to decimal 887 and injects this as layout-id.
// if hex device is cannot be converted to decimal, injects legacy value 12 decimal
// - all other values are equal to HDAInjection=Detect
[B] if (Prop->type == kTagTypeInteger) {
gSettings.HDALayoutId = (INT32)(UINTN)Prop->string; //must be signed
gSettings.HDAInjection = (gSettings.HDALayoutId > 0);
}[/B] else if (Prop->type == kTagTypeString){
if ((Prop->string[0] == 'n') || (Prop->string[0] == 'N')) {
// if starts with n or N, then no HDA injection
gSettings.HDAInjection = FALSE;
} else if ((Prop->string[0] == '0') &&
(Prop->string[1] == 'x' || Prop->string[1] == 'X')) {
// assume it's a hex layout id
gSettings.HDALayoutId = (INT32)AsciiStrHexToUintn (Prop->string);
} else {
// assume it's a decimal layout id
gSettings.HDALayoutId = (INT32)AsciiStrDecimalToUintn (Prop->string);
}
}
}
In the Probook setup, all property injection is done with ACPI.