diff options
| author | Michael Sevakis <jethead71@rockbox.org> | 2006-11-06 18:07:30 +0000 |
|---|---|---|
| committer | Michael Sevakis <jethead71@rockbox.org> | 2006-11-06 18:07:30 +0000 |
| commit | 0f5cb94aa4a334366a746fcbb22f3335ca413265 (patch) | |
| tree | 8f89a96628c1810d51ee9816daf78edb8c76fcd4 /firmware/export/uda1380.h | |
| parent | 0b22795e26ee09de14f6ac23219adeda12f2fd5b (diff) | |
| download | rockbox-0f5cb94aa4a334366a746fcbb22f3335ca413265.zip rockbox-0f5cb94aa4a334366a746fcbb22f3335ca413265.tar.gz rockbox-0f5cb94aa4a334366a746fcbb22f3335ca413265.tar.bz2 rockbox-0f5cb94aa4a334366a746fcbb22f3335ca413265.tar.xz | |
Big Patch adds primarily: Samplerate and format selection to recording for SWCODEC. Supprort for samplerates changing in playback (just goes with the recording part inseparably). Samplerates to all encoders. Encoders can be configured individually on a menu specific to the encoder in the recording menu. File creation is delayed until flush time to reduce spinups when splitting. Misc: statusbar icons for numbers are individual digits to display any number. Audio buffer was rearranged to maximize memory available to recording and properly reinitialized when trashed. ColdFire PCM stuff moved to target tree to avoid a complicated mess when adding samplerate switching. Some needed API changes and to neaten up growing gap between hardware and software codecs.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@11452 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'firmware/export/uda1380.h')
| -rw-r--r-- | firmware/export/uda1380.h | 13 |
1 files changed, 11 insertions, 2 deletions
diff --git a/firmware/export/uda1380.h b/firmware/export/uda1380.h index 9c761c6..639ca8a 100644 --- a/firmware/export/uda1380.h +++ b/firmware/export/uda1380.h @@ -28,8 +28,17 @@ extern void uda1380_set_bass(int value); extern void uda1380_set_treble(int value); extern int uda1380_mute(int mute); extern void uda1380_close(void); -extern void uda1380_set_nsorder(int order); - +/** + * Sets frequency settings for DAC and ADC relative to MCLK + * + * Selection for frequency ranges: + * Fs: range: with: + * 11025: 0 = 6.25 to 12.5 SCLK, LRCK: Audio Clk / 16 + * 22050: 1 = 12.5 to 25 SCLK, LRCK: Audio Clk / 8 + * 44100: 2 = 25 to 50 SCLK, LRCK: Audio Clk / 4 (default) + * 88200: 3 = 50 to 100 SCLK, LRCK: Audio Clk / 2 + */ +extern void uda1380_set_frequency(unsigned fsel); extern void uda1380_enable_recording(bool source_mic); extern void uda1380_disable_recording(void); extern void uda1380_set_recvol(int left, int right, int type); |