diff options
author | Solomon Peachy <pizza@shaftnet.org> | 2020-10-20 17:03:21 -0400 |
---|---|---|
committer | Solomon Peachy <pizza@shaftnet.org> | 2020-10-20 17:07:48 -0400 |
commit | 6834d1a02f1099c7dcd1428613a12f6eef0c6821 (patch) | |
tree | c45727cccdc192dd361e13c7476114390529eebf | |
parent | dfae5d881d81164232bfd488f2518bce714efef5 (diff) | |
download | rockbox-6834d1a02f1099c7dcd1428613a12f6eef0c6821.tar.gz rockbox-6834d1a02f1099c7dcd1428613a12f6eef0c6821.zip |
xduoox20: Start unmuted, as the least-worst option
Change-Id: Ie85d9df0f861315dfc9d767218d86115420aa9d7
-rw-r--r-- | firmware/drivers/audio/xduoolinux_codec.c | 6 | ||||
-rw-r--r-- | firmware/export/xduoolinux_codec.h | 4 |
2 files changed, 10 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) | |||
126 | logf("hw preinit"); | 126 | logf("hw preinit"); |
127 | alsa_controls_init(); | 127 | alsa_controls_init(); |
128 | hw_open(); | 128 | hw_open(); |
129 | |||
130 | #if defined(XDUOO_X3II) | ||
129 | audiohw_mute(true); /* Start muted to avoid the POP */ | 131 | audiohw_mute(true); /* Start muted to avoid the POP */ |
132 | #else | ||
133 | audiohw_mute(false); /* No need */ | ||
134 | #endif | ||
135 | |||
130 | // const char * const codec_pmdown = "/sys/devices/platform/ingenic-x3ii.0/x3ii-ak4490-i2s/pmdown_time"; // in ms, defaults 5000 | 136 | // const char * const codec_pmdown = "/sys/devices/platform/ingenic-x3ii.0/x3ii-ak4490-i2s/pmdown_time"; // in ms, defaults 5000 |
131 | } | 137 | } |
132 | 138 | ||
diff --git a/firmware/export/xduoolinux_codec.h b/firmware/export/xduoolinux_codec.h index 09609d477c..cc401555ef 100644 --- a/firmware/export/xduoolinux_codec.h +++ b/firmware/export/xduoolinux_codec.h | |||
@@ -14,6 +14,10 @@ AUDIOHW_SETTING(FILTER_ROLL_OFF, "", 0, 1, 0, 4, 0) | |||
14 | #define AUDIOHW_MUTE_ON_SRATE_CHANGE | 14 | #define AUDIOHW_MUTE_ON_SRATE_CHANGE |
15 | #endif | 15 | #endif |
16 | 16 | ||
17 | #if defined(XDUOO_X20) | ||
18 | //#define AUDIOHW_NEEDS_INITIAL_UNMUTE | ||
19 | #endif | ||
20 | |||
17 | void audiohw_mute(int mute); | 21 | void audiohw_mute(int mute); |
18 | void xduoo_set_output(int ps); | 22 | void xduoo_set_output(int ps); |
19 | int xduoo_get_outputs(void); | 23 | int xduoo_get_outputs(void); |