diff options
author | Michael Sevakis <jethead71@rockbox.org> | 2010-06-26 10:07:17 +0000 |
---|---|---|
committer | Michael Sevakis <jethead71@rockbox.org> | 2010-06-26 10:07:17 +0000 |
commit | b15a523870d6aa45b38b92547053beb986b92d9a (patch) | |
tree | 8b75fe5f13a3418186cb11c01062ad415490036b /firmware/export/pcm.h | |
parent | ac622c6d673c708d48527db8a189401422a5d03c (diff) | |
download | rockbox-b15a523870d6aa45b38b92547053beb986b92d9a.tar.gz rockbox-b15a523870d6aa45b38b92547053beb986b92d9a.zip |
e200v1/c200v1: Implement limited samplerate switching. Rates 24kHz and below are being a bear as far as minor crackling at higher amplitude-- leave them out for the time being since no solution is currently evident. 48, 44, 32 (rec rates 24, 22, 16) seem perfectly fine. I'm betting c200 is ok to include because it uses the same setup as e200.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@27139 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'firmware/export/pcm.h')
-rw-r--r-- | firmware/export/pcm.h | 13 |
1 files changed, 10 insertions, 3 deletions
diff --git a/firmware/export/pcm.h b/firmware/export/pcm.h index 02fa04cb7e..e388e29f0c 100644 --- a/firmware/export/pcm.h +++ b/firmware/export/pcm.h | |||
@@ -54,9 +54,16 @@ typedef void (*pcm_play_callback_type)(unsigned char **start, | |||
54 | size_t *size); | 54 | size_t *size); |
55 | typedef void (*pcm_rec_callback_type)(int status, void **start, size_t *size); | 55 | typedef void (*pcm_rec_callback_type)(int status, void **start, size_t *size); |
56 | 56 | ||
57 | /* set the pcm frequency - use values in hw_sampr_list | 57 | /* set the pcm frequency - use values in hw_sampr_list |
58 | * use -1 for the default frequency | 58 | * when CONFIG_SAMPR_TYPES is #defined, or-in SAMPR_TYPE_* fields with |
59 | */ | 59 | * frequency value. SAMPR_TYPE_PLAY is 0 and the default if none is |
60 | * specified. */ | ||
61 | #ifdef CONFIG_SAMPR_TYPES | ||
62 | #ifdef SAMPR_TYPE_REC | ||
63 | unsigned int pcm_sampr_type_rec_to_play(unsigned int samplerate); | ||
64 | #endif | ||
65 | #endif /* CONFIG_SAMPR_TYPES */ | ||
66 | |||
60 | void pcm_set_frequency(unsigned int samplerate); | 67 | void pcm_set_frequency(unsigned int samplerate); |
61 | /* apply settings to hardware immediately */ | 68 | /* apply settings to hardware immediately */ |
62 | void pcm_apply_settings(void); | 69 | void pcm_apply_settings(void); |