aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--docs/feature_audio.md7
-rw-r--r--quantum/audio/audio_arm.c2
2 files changed, 9 insertions, 0 deletions
diff --git a/docs/feature_audio.md b/docs/feature_audio.md
index 82e0ed950..a39c45687 100644
--- a/docs/feature_audio.md
+++ b/docs/feature_audio.md
@@ -65,6 +65,13 @@ The available keycodes for audio are:
65* `AU_OFF` - Turn audio mode off 65* `AU_OFF` - Turn audio mode off
66* `AU_TOG` - Toggle audio mode 66* `AU_TOG` - Toggle audio mode
67 67
68## ARM Audio Volume
69
70For ARM devices, you can adjust the DAC sample values. If your board is too loud for you or your coworkers, you can set the max using `DAC_SAMPLE_MAX` in your `config.h`:
71
72```c
73#define DAC_SAMPLE_MAX 65535U
74```
68 75
69## Music Mode 76## Music Mode
70 77
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;
80static void gpt_cb8(GPTDriver *gptp); 80static void gpt_cb8(GPTDriver *gptp);
81 81
82#define DAC_BUFFER_SIZE 720 82#define DAC_BUFFER_SIZE 720
83#ifndef DAC_SAMPLE_MAX
83#define DAC_SAMPLE_MAX 65535U 84#define DAC_SAMPLE_MAX 65535U
85#endif
84 86
85#define START_CHANNEL_1() gptStart(&GPTD6, &gpt6cfg1); \ 87#define START_CHANNEL_1() gptStart(&GPTD6, &gpt6cfg1); \
86 gptStartContinuous(&GPTD6, 2U) 88 gptStartContinuous(&GPTD6, 2U)