diff options
author | Marcoen Hirschberg <marcoen@gmail.com> | 2006-12-06 10:24:59 +0000 |
---|---|---|
committer | Marcoen Hirschberg <marcoen@gmail.com> | 2006-12-06 10:24:59 +0000 |
commit | 77d039bab8591e991001bf8680f9915854483809 (patch) | |
tree | cf45a738b7c68e2fac18513965027901a4240787 /firmware/export/tlv320.h | |
parent | 46a608bf07ec9d40bdd151e3283646682bb9e9bd (diff) | |
download | rockbox-77d039bab8591e991001bf8680f9915854483809.tar.gz rockbox-77d039bab8591e991001bf8680f9915854483809.zip |
first step in audio driver unification: renaming the functions to audio_*
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@11670 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'firmware/export/tlv320.h')
-rw-r--r-- | firmware/export/tlv320.h | 22 |
1 files changed, 11 insertions, 11 deletions
diff --git a/firmware/export/tlv320.h b/firmware/export/tlv320.h index 023ec9d874..dbb17e35bc 100644 --- a/firmware/export/tlv320.h +++ b/firmware/export/tlv320.h | |||
@@ -22,8 +22,8 @@ | |||
22 | 22 | ||
23 | /*** definitions ***/ | 23 | /*** definitions ***/ |
24 | 24 | ||
25 | extern void tlv320_init(void); | 25 | extern void audiohw_init(void); |
26 | extern void tlv320_reset(void); | 26 | extern void audiohw_reset(void); |
27 | /** | 27 | /** |
28 | * Sets internal sample rate for DAC and ADC relative to MCLK | 28 | * Sets internal sample rate for DAC and ADC relative to MCLK |
29 | * Selection for frequency: | 29 | * Selection for frequency: |
@@ -33,15 +33,15 @@ extern void tlv320_reset(void); | |||
33 | * 44100: 1 = MCLK MCLK SCLK, LRCK: Audio Clk / 4 (default) | 33 | * 44100: 1 = MCLK MCLK SCLK, LRCK: Audio Clk / 4 (default) |
34 | * 88200: 2 = MCLK*2 MCLK SCLK, LRCK: Audio Clk / 2 | 34 | * 88200: 2 = MCLK*2 MCLK SCLK, LRCK: Audio Clk / 2 |
35 | */ | 35 | */ |
36 | extern void tlv320_set_frequency(unsigned fsel); | 36 | extern void audiohw_set_frequency(unsigned fsel); |
37 | extern void tlv320_enable_output(bool enable); | 37 | extern void audiohw_enable_output(bool enable); |
38 | extern void tlv320_set_headphone_vol(int vol_l, int vol_r); | 38 | extern void audiohw_set_headphone_vol(int vol_l, int vol_r); |
39 | extern void tlv320_set_recvol(int left, int right, int type); | 39 | extern void audiohw_set_recvol(int left, int right, int type); |
40 | extern void tlv320_mute(bool mute); | 40 | extern void audiohw_mute(bool mute); |
41 | extern void tlv320_close(void); | 41 | extern void audiohw_close(void); |
42 | extern void tlv320_enable_recording(bool source_mic); | 42 | extern void audiohw_enable_recording(bool source_mic); |
43 | extern void tlv320_disable_recording(void); | 43 | extern void audiohw_disable_recording(void); |
44 | extern void tlv320_set_monitor(bool enable); | 44 | extern void audiohw_set_monitor(bool enable); |
45 | 45 | ||
46 | #define HEADPHONE_MUTE 0x30 /* 0110000 = -73db */ | 46 | #define HEADPHONE_MUTE 0x30 /* 0110000 = -73db */ |
47 | 47 | ||