diff options
author | Solomon Peachy <pizza@shaftnet.org> | 2020-09-30 22:12:35 -0400 |
---|---|---|
committer | Solomon Peachy <pizza@shaftnet.org> | 2020-10-01 11:56:57 -0400 |
commit | e43726df2cd1cb8275234d60b818d417cfe730b5 (patch) | |
tree | 6f1fb0659dccaafd47394c7de860d4dc3e46b0a4 /apps | |
parent | 6459fa0765745e951a6731974164bbcdc9551dfe (diff) | |
download | rockbox-e43726df2cd1cb8275234d60b818d417cfe730b5.tar.gz rockbox-e43726df2cd1cb8275234d60b818d417cfe730b5.zip |
hosted pcm-alsa improvements
* xduoo x3ii/x20: Better line out support
* less granular volume settings (too many steps before)
* Better handling of swiching sample rates
* Log actual sample rate in debug menu
Most credit goes to Roman Stolyarov
Additional integration [re]work by myself
Change-Id: I63af3740678cf2ed3170f61534e1029c81826bb6
Diffstat (limited to 'apps')
-rw-r--r-- | apps/debug_menu.c | 2 | ||||
-rw-r--r-- | apps/playback.c | 5 |
2 files changed, 6 insertions, 1 deletions
diff --git a/apps/debug_menu.c b/apps/debug_menu.c index 3df7e97bce..0d2e125185 100644 --- a/apps/debug_menu.c +++ b/apps/debug_menu.c | |||
@@ -2525,7 +2525,7 @@ static const struct { | |||
2525 | { "Screendump", dbg_screendump }, | 2525 | { "Screendump", dbg_screendump }, |
2526 | #endif | 2526 | #endif |
2527 | { "Skin Engine RAM usage", dbg_skin_engine }, | 2527 | { "Skin Engine RAM usage", dbg_skin_engine }, |
2528 | #if (CONFIG_PLATFORM & PLATFORM_NATIVE) || (defined(SONY_NWZ_LINUX) && !defined(SIMULATOR)) | 2528 | #if (CONFIG_PLATFORM & PLATFORM_NATIVE) || defined(SONY_NWZ_LINUX) || defined(AGPTEK_ROCKER) || defined(XDUOO_X3II) || defined(XDUOO_X20) && !defined(SIMULATOR) |
2529 | { "View HW info", dbg_hw_info }, | 2529 | { "View HW info", dbg_hw_info }, |
2530 | #endif | 2530 | #endif |
2531 | #if (CONFIG_PLATFORM & PLATFORM_NATIVE) | 2531 | #if (CONFIG_PLATFORM & PLATFORM_NATIVE) |
diff --git a/apps/playback.c b/apps/playback.c index 922837af18..c7cfef018a 100644 --- a/apps/playback.c +++ b/apps/playback.c | |||
@@ -44,6 +44,7 @@ | |||
44 | #include "storage.h" | 44 | #include "storage.h" |
45 | #include "misc.h" | 45 | #include "misc.h" |
46 | #include "settings.h" | 46 | #include "settings.h" |
47 | #include "audiohw.h" | ||
47 | 48 | ||
48 | #ifdef HAVE_TAGCACHE | 49 | #ifdef HAVE_TAGCACHE |
49 | #include "tagcache.h" | 50 | #include "tagcache.h" |
@@ -3850,6 +3851,10 @@ static void audio_change_frequency_callback(unsigned short id, void *data) | |||
3850 | static bool starting_playback = false; | 3851 | static bool starting_playback = false; |
3851 | struct mp3entry *id3; | 3852 | struct mp3entry *id3; |
3852 | 3853 | ||
3854 | #ifdef AUDIOHW_HAVE_SET_OUTPUT | ||
3855 | audiohw_set_output(); | ||
3856 | #endif | ||
3857 | |||
3853 | switch (id) | 3858 | switch (id) |
3854 | { | 3859 | { |
3855 | case PLAYBACK_EVENT_START_PLAYBACK: | 3860 | case PLAYBACK_EVENT_START_PLAYBACK: |