forked from len0rd/rockbox
xduoox20: Start unmuted, as the least-worst option
Change-Id: Ie85d9df0f861315dfc9d767218d86115420aa9d7
This commit is contained in:
parent
dfae5d881d
commit
6834d1a02f
2 changed files with 10 additions and 0 deletions
|
@ -126,7 +126,13 @@ void audiohw_preinit(void)
|
||||||
logf("hw preinit");
|
logf("hw preinit");
|
||||||
alsa_controls_init();
|
alsa_controls_init();
|
||||||
hw_open();
|
hw_open();
|
||||||
|
|
||||||
|
#if defined(XDUOO_X3II)
|
||||||
audiohw_mute(true); /* Start muted to avoid the POP */
|
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
|
// const char * const codec_pmdown = "/sys/devices/platform/ingenic-x3ii.0/x3ii-ak4490-i2s/pmdown_time"; // in ms, defaults 5000
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -14,6 +14,10 @@ AUDIOHW_SETTING(FILTER_ROLL_OFF, "", 0, 1, 0, 4, 0)
|
||||||
#define AUDIOHW_MUTE_ON_SRATE_CHANGE
|
#define AUDIOHW_MUTE_ON_SRATE_CHANGE
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
#if defined(XDUOO_X20)
|
||||||
|
//#define AUDIOHW_NEEDS_INITIAL_UNMUTE
|
||||||
|
#endif
|
||||||
|
|
||||||
void audiohw_mute(int mute);
|
void audiohw_mute(int mute);
|
||||||
void xduoo_set_output(int ps);
|
void xduoo_set_output(int ps);
|
||||||
int xduoo_get_outputs(void);
|
int xduoo_get_outputs(void);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue