The audio should only be enabled when the sound
node is enabled. This fixes the following error:
an7581-audio
1fbe2200.afe: probe with driver an7581-audio failed with error -2
Fixes: 7b55651 ("airoha: enable I2S sound driver and add nodes for eMMC RFB board")
Signed-off-by: Chukun Pan <amadeus@jmu.edu.cn>
Link: https://github.com/openwrt/openwrt/pull/22660
Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
#include <dt-bindings/gpio/gpio.h>
#include "an7581.dtsi"
+&afe {
+ status = "okay";
+};
+
&sound {
audio-routing = "Headphone", "HP_L",
"Headphone", "HP_R",
reg = <0x0 0x1fbe2200 0x0 0x9000>;
interrupts = <GIC_SPI 48 IRQ_TYPE_LEVEL_HIGH>;
+ status = "disabled";
};
uart4: serial@1fbf0600 {