A modern, network-enabled music player platform built on Rockbox technology. rockboxd.tsiry-sandratraina.com
rust deno navidrome airplay libadwaita zig mpris snapcast mpd rockbox audio subsonic
2

Configure Feed

Select the types of activity you want to include in your feed.

rockboxd / firmware / target / arm / s5l8702 / pcm-target.h
1.7 kB 40 lines
1/*************************************************************************** 2 * __________ __ ___. 3 * Open \______ \ ____ ____ | | _\_ |__ _______ ___ 4 * Source | _// _ \_/ ___\| |/ /| __ \ / _ \ \/ / 5 * Jukebox | | ( <_> ) \___| < | \_\ ( <_> > < < 6 * Firmware |____|_ /\____/ \___ >__|_ \|___ /\____/__/\_ \ 7 * \/ \/ \/ \/ \/ 8 * $Id: system-target.h 28791 2010-12-11 09:39:33Z Buschel $ 9 * 10 * Copyright (C) 2010 by Michael Sparmann 11 * 12 * This program is free software; you can redistribute it and/or 13 * modify it under the terms of the GNU General Public License 14 * as published by the Free Software Foundation; either version 2 15 * of the License, or (at your option) any later version. 16 * 17 * This software is distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY 18 * KIND, either express or implied. 19 * 20 ****************************************************************************/ 21#ifndef __PCM_TARGET_H__ 22#define __PCM_TARGET_H__ 23 24 25/* S5L8702 PCM driver tunables: */ 26#define PCM_LLIMAX (2047) /* Maximum number of samples per LLI */ 27#define PCM_CHUNKSIZE (10747) /* Maximum number of samples to handle with one IRQ */ 28 /* (bigger chunks will be segmented internally) */ 29#define PCM_WATERMARK (512) /* Number of remaining samples to schedule IRQ at */ 30 31 32#define PCM_LLICOUNT ((PCM_CHUNKSIZE - PCM_WATERMARK + PCM_LLIMAX - 1) / PCM_LLIMAX + 1) 33 34 35extern struct dma_lli pcm_lli[PCM_LLICOUNT]; 36extern size_t pcm_remaining; 37extern size_t pcm_chunksize; 38 39 40#endif /* __PCM_TARGET_H__ */