summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSolomon Peachy <pizza@shaftnet.org>2024-12-07 14:04:28 -0500
committerSolomon Peachy <pizza@shaftnet.org>2024-12-07 14:05:23 -0500
commita76ecf172557f307dc8a47e3a8ee4553b6935d6c (patch)
tree0dffc39c1653e9c4ff68594f743d0e643a36071a
parente6851a55ed4824e601bc655734a896a9cf6df888 (diff)
downloadrockbox-a76ecf1725.tar.gz
rockbox-a76ecf1725.zip
erosqnative: Fix operation in a simulator environment
Real hardware needs 24-bit PCM data supplied, but simulator is still 16bit only. Change-Id: I20b88a7cb27105829fe5c9e9c434f559a6dbbb60
-rw-r--r--apps/debug_menu.c4
-rw-r--r--firmware/export/config/erosqnative.h2
2 files changed, 4 insertions, 2 deletions
diff --git a/apps/debug_menu.c b/apps/debug_menu.c
index c44be3ad1b..50b8d2fe71 100644
--- a/apps/debug_menu.c
+++ b/apps/debug_menu.c
@@ -2471,7 +2471,7 @@ static bool dbg_talk(void)
simplelist_reset_lines();
- simplelist_setline("Current voice file:");
+ simplelist_setline("Current voice file:");
if (data.status != TALK_STATUS_ERR_NOFILE)
simplelist_addline(" %s", data.voicefile);
else
@@ -2631,7 +2631,7 @@ static bool dbg_device_data(void)
simplelist_setline("Device data RAW:");
for (size_t i = 0; i < device_data.length; i += 4)
{
- simplelist_addline("%02x: %02x %02x %02x %02x", i,
+ simplelist_addline("%02zx: %02x %02x %02x %02x", i,
device_data.payload[i + 0], device_data.payload[i + 1],
device_data.payload[i + 2], device_data.payload[i + 3]);
}
diff --git a/firmware/export/config/erosqnative.h b/firmware/export/config/erosqnative.h
index 344f3ab726..648c5859ab 100644
--- a/firmware/export/config/erosqnative.h
+++ b/firmware/export/config/erosqnative.h
@@ -77,8 +77,10 @@
#define AUDIOHW_CAPS (FILTER_ROLL_OFF_CAP)
#define AUDIOHW_HAVE_SHORT_ROLL_OFF
+#ifndef SIMULATOR
/* use high-bitdepth volume scaling */
#define PCM_NATIVE_BITDEPTH 24
+#endif
/* Button defines */
#define CONFIG_KEYPAD EROSQ_PAD