aboutsummaryrefslogtreecommitdiff
path: root/drivers/sound/sound-i2s.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/sound/sound-i2s.c')
-rw-r--r--drivers/sound/sound-i2s.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/sound/sound-i2s.c b/drivers/sound/sound-i2s.c
index 9f09e3bf930..f0f0b79bc52 100644
--- a/drivers/sound/sound-i2s.c
+++ b/drivers/sound/sound-i2s.c
@@ -185,7 +185,8 @@ int sound_play(uint32_t msec, uint32_t frequency)
return -1;
}
- sound_create_square_wave((unsigned short *)data,
+ sound_create_square_wave(g_i2stx_pri.samplingrate,
+ (unsigned short *)data,
data_size / sizeof(unsigned short),
frequency);