summaryrefslogtreecommitdiffstats
path: root/quantum/audio
diff options
context:
space:
mode:
authorDrashna Jaelre <drashna@live.com>2018-12-04 01:42:57 +0100
committerMechMerlin <30334081+mechmerlin@users.noreply.github.com>2018-12-04 01:42:57 +0100
commit3a0f3a5bd0aff18934431ad471b1db390c3b33d1 (patch)
tree6ee8385d3f0b95b1448d043801ff612e012856bc /quantum/audio
parentda1afe152af5a6dfb5c0bb28d86d34940162f960 (diff)
downloadqmk_firmware-3a0f3a5bd0aff18934431ad471b1db390c3b33d1.tar.gz
qmk_firmware-3a0f3a5bd0aff18934431ad471b1db390c3b33d1.tar.xz
Make ARM Audio max volume configurable (#4540)
* Make ARM Audio max volume configurable * Update docs/feature_audio.md Co-Authored-By: drashna <drashna@live.com> * Update docs/feature_audio.md Co-Authored-By: drashna <drashna@live.com>
Diffstat (limited to 'quantum/audio')
-rw-r--r--quantum/audio/audio_arm.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/quantum/audio/audio_arm.c b/quantum/audio/audio_arm.c
index 18e8a8c66..989f7a64b 100644
--- a/quantum/audio/audio_arm.c
+++ b/quantum/audio/audio_arm.c
@@ -80,7 +80,9 @@ float startup_song[][2] = STARTUP_SONG;
static void gpt_cb8(GPTDriver *gptp);
#define DAC_BUFFER_SIZE 720
+#ifndef DAC_SAMPLE_MAX
#define DAC_SAMPLE_MAX 65535U
+#endif
#define START_CHANNEL_1() gptStart(&GPTD6, &gpt6cfg1); \
gptStartContinuous(&GPTD6, 2U)