summaryrefslogtreecommitdiffstats
path: root/firmware/target/hosted/ibasso/pcm-ibasso.c
diff options
context:
space:
mode:
authorSolomon Peachy <pizza@shaftnet.org>2020-08-09 14:46:41 -0400
committerSolomon Peachy <pizza@shaftnet.org>2020-08-09 19:53:13 +0000
commit92d66f761f030bd6ec022e2f969d044e3bfd8c00 (patch)
treee7798731f9750a493b5f1860bfe609e9b293cda1 /firmware/target/hosted/ibasso/pcm-ibasso.c
parent0d4752e3f6b7558ce260fff04c70af643d222172 (diff)
downloadrockbox-92d66f761f.tar.gz
rockbox-92d66f761f.zip
Un-hardcode 44.1KHz settings from ALSA and iBasso PCM code
Change-Id: I69a69dabc799f360b73b1cf252645bd4cde13715
Diffstat (limited to 'firmware/target/hosted/ibasso/pcm-ibasso.c')
-rw-r--r--firmware/target/hosted/ibasso/pcm-ibasso.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/firmware/target/hosted/ibasso/pcm-ibasso.c b/firmware/target/hosted/ibasso/pcm-ibasso.c
index 14ef298af0..4721501d25 100644
--- a/firmware/target/hosted/ibasso/pcm-ibasso.c
+++ b/firmware/target/hosted/ibasso/pcm-ibasso.c
@@ -310,7 +310,7 @@ void pcm_play_dma_init(void)
pcm_thread_run relies on this size match. See pcm_mixer.h.
*/
_config.channels = 2;
- _config.rate = 44100;
+ _config.rate = pcm_sampr;
_config.period_size = 256;
_config.period_count = 4;
_config.format = PCM_FORMAT_S16_LE;