Speaker icon sync with headphones
Speaker icon now behaves naturally: When the speaker amp is off (muted speaker), the headphones amp is on, and viceversa. Fom now on, whenever a future app needs to turn audio output ON, it will depend on the speaker mode. For example: Before, you just did audio::output::unmute(); to activate audio output. Now, you do: portapack::set_speaker_mode(portapack::speaker_mode); Which will take into account (if present) the speaker mode, and either unmute the headphones, or the speaker. If the user has no Speaker Icon active on the Status-bar (as may be the case with H2 users), it will always unmute the headphones. This new approach has the added benefit of not turning on two amps at the same time (the headphones AND speaker) inside the AK4951 audio codec IC.
Showing
- firmware/application/apps/analog_audio_app.cpp 2 additions, 1 deletionfirmware/application/apps/analog_audio_app.cpp
- firmware/application/apps/ui_scanner.cpp 2 additions, 2 deletionsfirmware/application/apps/ui_scanner.cpp
- firmware/application/audio.cpp 2 additions, 1 deletionfirmware/application/audio.cpp
- firmware/application/portapack.cpp 6 additions, 0 deletionsfirmware/application/portapack.cpp
Loading
Please register or sign in to comment