Un-hardcode 44.1KHz settings from ALSA and iBasso PCM code

Change-Id: I69a69dabc799f360b73b1cf252645bd4cde13715
This commit is contained in:
Solomon Peachy 2020-08-09 14:46:41 -04:00
parent 0d4752e3f6
commit 92d66f761f
2 changed files with 12 additions and 14 deletions

View file

@ -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;