Moved AK Speaker Disable back to a title bar, and modified Mute Icon to differentiate (#1192)

* Added fn to indicate support for disabling speaker
* Support both mute & speaker disable icons
* Byte grouping for ui_config2_t bitmap
* Fix disabling AK speaker to take effect immediately
This commit is contained in:
Mark Thompson
2023-06-26 01:08:09 -05:00
committed by GitHub
parent b5ea81cf96
commit 3f8a4957af
13 changed files with 153 additions and 16 deletions

View File

@@ -184,6 +184,9 @@ void speaker_unmute() {
void update_audio_mute() {
cfg_speaker_disable = portapack::persistent_memory::config_speaker_disable();
if (cfg_speaker_disable) {
audio_codec->speaker_disable();
}
if (portapack::persistent_memory::config_audio_mute())
speaker_mute();
@@ -269,4 +272,8 @@ void set_rate(const Rate rate) {
clock_manager.set_base_audio_clock_divider(toUType(rate));
}
bool speaker_disable_supported() {
return audio_codec->speaker_disable_supported();
}
} /* namespace audio */