From 21af3f2e4ddde192089954860491e70574af6748 Mon Sep 17 00:00:00 2001 From: Andres ZeroCross Date: Sun, 16 Jun 2024 16:01:15 +0700 Subject: [PATCH] Add Layout 22 for Asus VivoBook 15 OLED M513UA (#904) --- Resources/ALC897/Info.plist | 16 ++ Resources/ALC897/Platforms22.xml | 237 ++++++++++++++++++ Resources/ALC897/layout22.xml | 45 ++++ Resources/PinConfigs.kext/Contents/Info.plist | 18 ++ 4 files changed, 316 insertions(+) create mode 100644 Resources/ALC897/Platforms22.xml create mode 100644 Resources/ALC897/layout22.xml diff --git a/Resources/ALC897/Info.plist b/Resources/ALC897/Info.plist index f5f73e1bd3..6a87a6d8bf 100644 --- a/Resources/ALC897/Info.plist +++ b/Resources/ALC897/Info.plist @@ -36,6 +36,14 @@ Path layout21.xml.zlib + + Comment + Asus VivoBook 15 OLED M513UA by Andres ZeroCross + Id + 22 + Path + layout22.xml.zlib + Comment Asus_PRIME_B460M-K_ALC897 @@ -119,6 +127,14 @@ Path Platforms21.xml.zlib + + Comment + Asus VivoBook 15 OLED M513UA by Andres ZeroCross + Id + 22 + Path + Platforms22.xml.zlib + Comment Asus_PRIME_B460M-K_ALC897 diff --git a/Resources/ALC897/Platforms22.xml b/Resources/ALC897/Platforms22.xml new file mode 100644 index 0000000000..30d296ba2f --- /dev/null +++ b/Resources/ALC897/Platforms22.xml @@ -0,0 +1,237 @@ + + CommonPeripheralDSP + + + DeviceID + 0 + DeviceType + Headphone + + + DeviceID + 0 + DeviceType + Microphone + + + PathMaps + + + PathMap + + + + + + Amp + + Channels + + + Bind + 1 + Channel + 1 + + + Bind + 2 + Channel + 2 + + + MuteInputAmp + + PublishMute + + PublishVolume + + VolumeInputAmp + + + NodeID + 8 + + + Amp + + Channels + + + Bind + 1 + Channel + 1 + + + Bind + 2 + Channel + 2 + + + MuteInputAmp + + PublishMute + + PublishVolume + + VolumeInputAmp + + + NodeID + 35 + + + Boost + 3 + NodeID + 26 + + + + + + + + + NodeID + 20 + + + Amp + + Channels + + + Bind + 1 + Channel + 1 + + + Bind + 2 + Channel + 2 + + + MuteInputAmp + + PublishMute + + PublishVolume + + VolumeInputAmp + + + NodeID + 12 + + + Amp + + Channels + + + Bind + 1 + Channel + 1 + + + Bind + 2 + Channel + 2 + + + MuteInputAmp + + PublishMute + + PublishVolume + + VolumeInputAmp + + + NodeID + 2 + + + + + + + NodeID + 27 + + + Amp + + Channels + + + Bind + 1 + Channel + 1 + + + Bind + 2 + Channel + 2 + + + MuteInputAmp + + PublishMute + + PublishVolume + + VolumeInputAmp + + + NodeID + 13 + + + Amp + + Channels + + + Bind + 1 + Channel + 1 + + + Bind + 2 + Channel + 2 + + + MuteInputAmp + + PublishMute + + PublishVolume + + VolumeInputAmp + + + NodeID + 3 + + + + + + PathMapID + 22 + + + diff --git a/Resources/ALC897/layout22.xml b/Resources/ALC897/layout22.xml new file mode 100644 index 0000000000..a469d4c050 --- /dev/null +++ b/Resources/ALC897/layout22.xml @@ -0,0 +1,45 @@ + + LayoutID + 22 + PathMapRef + + + CodecID + + 283904151 + + Headphone + + Inputs + + Mic + LineIn + + IntSpeaker + + LineIn + + MuteGPIO + 1342242841 + + LineOut + + Mic + + MuteGPIO + 1342242842 + + Outputs + + Headphone + IntSpeaker + LineOut + SPDIFOut + + PathMapID + 22 + SPDIFOut + + + + diff --git a/Resources/PinConfigs.kext/Contents/Info.plist b/Resources/PinConfigs.kext/Contents/Info.plist index 0782246c98..9f88c8f4f6 100755 --- a/Resources/PinConfigs.kext/Contents/Info.plist +++ b/Resources/PinConfigs.kext/Contents/Info.plist @@ -7570,6 +7570,24 @@ WakeVerbReinit + + AFGLowPowerState + AwAAAA== + Codec + Asus VivoBook 15 OLED M513UA by Andres ZeroCross + CodecID + 283904151 + ConfigData + AUccEAFHHQEBRx4XAUcfkAFHDAIBtxwgAbcdEAG3HiEBtx8DAbcMAgGnHDABpx0BAaceoAGnH5A= + FuncGroup + 1 + LayoutID + 22 + WakeConfigData + AUcMAgG3DAI= + WakeVerbReinit + + AFGLowPowerState AwAAAA==