[edk2-devel] [edk2-platforms][PATCH v1 2/2] Platform/RaspberryPi: Add analog audio device in ACPI
Mario Bălănică
mariobalanica02 at gmail.com
Fri Nov 5 20:34:36 UTC 2021
The Windows audio driver now binds to this device.
Signed-off-by: Mario Bălănică <mariobalanica02 at gmail.com>
---
Platform/RaspberryPi/AcpiTables/GpuDevs.asl | 28 ++++++++++++++++++++
1 file changed, 28 insertions(+)
diff --git a/Platform/RaspberryPi/AcpiTables/GpuDevs.asl b/Platform/RaspberryPi/AcpiTables/GpuDevs.asl
index b499620e089a..734547e5a806 100644
--- a/Platform/RaspberryPi/AcpiTables/GpuDevs.asl
+++ b/Platform/RaspberryPi/AcpiTables/GpuDevs.asl
@@ -440,6 +440,34 @@ Device (PWM1)
}
#endif
+// Analog Audio (PWM-driven)
+Device (AAUD)
+{
+ Name (_HID, "RPI73EA")
+#if (RPI_MODEL == 3)
+ Name (_DEP, Package() { \_SB.GDV0.PWM0 })
+#elif (RPI_MODEL == 4)
+ Name (_DEP, Package() { \_SB.GDV0.PWM1 })
+#endif
+ Method (_STA)
+ {
+ Return (0xf)
+ }
+ Name (_DSD, Package () {
+ ToUUID("daffd814-6eba-4d8c-8a91-bc9bbf4aa301"),
+ Package () {
+ Package () { "pwm-clock-source", "plld" },
+#if (RPI_MODEL == 3)
+ Package () { "pwm-clock-source-frequency", 500000000 },
+ Package () { "pwm-clock-max-frequency", 125000000 }, // higher may work, but it's untested
+#elif (RPI_MODEL == 4)
+ Package () { "pwm-clock-source-frequency", 750000000 },
+ Package () { "pwm-clock-max-frequency", 375000000 },
+#endif
+ }
+ })
+}
+
include ("Uart.asl")
include ("Rhpx.asl")
include ("Sdhc.asl")
--
2.29.2.windows.2
-=-=-=-=-=-=-=-=-=-=-=-
Groups.io Links: You receive all messages sent to this group.
View/Reply Online (#83410): https://edk2.groups.io/g/devel/message/83410
Mute This Topic: https://groups.io/mt/86850798/1813853
Group Owner: devel+owner at edk2.groups.io
Unsubscribe: https://edk2.groups.io/g/devel/unsub [edk2-devel-archive at redhat.com]
-=-=-=-=-=-=-=-=-=-=-=-
More information about the edk2-devel-archive
mailing list