diff options
-rw-r--r-- | firmware/drivers/audio/rocker_codec.c | 4 | ||||
-rw-r--r-- | firmware/export/rocker_codec.h | 7 |
2 files changed, 9 insertions, 2 deletions
diff --git a/firmware/drivers/audio/rocker_codec.c b/firmware/drivers/audio/rocker_codec.c index abe13be285..4beda4b572 100644 --- a/firmware/drivers/audio/rocker_codec.c +++ b/firmware/drivers/audio/rocker_codec.c | |||
@@ -71,7 +71,11 @@ void audiohw_preinit(void) | |||
71 | { | 71 | { |
72 | alsa_controls_init(); | 72 | alsa_controls_init(); |
73 | hw_open(); | 73 | hw_open(); |
74 | #if defined(AUDIOHW_MUTE_ON_PAUSE) || defined (AUDIOHW_NEEDS_INITIAL_UNMUTE) | ||
74 | audiohw_mute(true); /* Start muted to avoid the POP */ | 75 | audiohw_mute(true); /* Start muted to avoid the POP */ |
76 | #else | ||
77 | audiohw_mute(false); | ||
78 | #endif | ||
75 | } | 79 | } |
76 | 80 | ||
77 | void audiohw_postinit(void) | 81 | void audiohw_postinit(void) |
diff --git a/firmware/export/rocker_codec.h b/firmware/export/rocker_codec.h index 48e280a4e4..c1ee7b87bc 100644 --- a/firmware/export/rocker_codec.h +++ b/firmware/export/rocker_codec.h | |||
@@ -2,9 +2,12 @@ | |||
2 | #define __ROCKER_CODEC__ | 2 | #define __ROCKER_CODEC__ |
3 | 3 | ||
4 | #define AUDIOHW_CAPS 0 | 4 | #define AUDIOHW_CAPS 0 |
5 | AUDIOHW_SETTING(VOLUME, "dB", 1, 5, -102*10, 0, -30*10) | 5 | AUDIOHW_SETTING(VOLUME, "dB", 1, 5, -115*10, 0, -30*10) |
6 | #endif | 6 | #endif |
7 | 7 | ||
8 | #define AUDIOHW_MUTE_ON_PAUSE | 8 | //#define AUDIOHW_MUTE_ON_PAUSE |
9 | //#define AUDIOHW_NEEDS_INITIAL_UNMUTE | ||
10 | |||
11 | /* Note: Due to Kernel bug, we can't use MUTE_ON_PAUSE with backlight fading */ | ||
9 | 12 | ||
10 | void audiohw_mute(int mute); | 13 | void audiohw_mute(int mute); |