summaryrefslogtreecommitdiff
path: root/firmware/export/pcm.h
diff options
context:
space:
mode:
Diffstat (limited to 'firmware/export/pcm.h')
-rw-r--r--firmware/export/pcm.h13
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);
55typedef void (*pcm_rec_callback_type)(int status, void **start, size_t *size); 55typedef 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
63unsigned int pcm_sampr_type_rec_to_play(unsigned int samplerate);
64#endif
65#endif /* CONFIG_SAMPR_TYPES */
66
60void pcm_set_frequency(unsigned int samplerate); 67void pcm_set_frequency(unsigned int samplerate);
61/* apply settings to hardware immediately */ 68/* apply settings to hardware immediately */
62void pcm_apply_settings(void); 69void pcm_apply_settings(void);