summaryrefslogtreecommitdiffstats
path: root/firmware/drivers/audio/xduoolinux_codec.c
diff options
context:
space:
mode:
Diffstat (limited to 'firmware/drivers/audio/xduoolinux_codec.c')
-rw-r--r--firmware/drivers/audio/xduoolinux_codec.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/firmware/drivers/audio/xduoolinux_codec.c b/firmware/drivers/audio/xduoolinux_codec.c
index 31224abd96..5b83f0fa8c 100644
--- a/firmware/drivers/audio/xduoolinux_codec.c
+++ b/firmware/drivers/audio/xduoolinux_codec.c
@@ -126,7 +126,13 @@ void audiohw_preinit(void)
logf("hw preinit");
alsa_controls_init();
hw_open();
+
+#if defined(XDUOO_X3II)
audiohw_mute(true); /* Start muted to avoid the POP */
+#else
+ audiohw_mute(false); /* No need */
+#endif
+
// const char * const codec_pmdown = "/sys/devices/platform/ingenic-x3ii.0/x3ii-ak4490-i2s/pmdown_time"; // in ms, defaults 5000
}