summaryrefslogtreecommitdiff
path: root/firmware/export/tlv320.h
diff options
context:
space:
mode:
authorMarcoen Hirschberg <marcoen@gmail.com>2006-12-06 10:24:59 +0000
committerMarcoen Hirschberg <marcoen@gmail.com>2006-12-06 10:24:59 +0000
commit77d039bab8591e991001bf8680f9915854483809 (patch)
treecf45a738b7c68e2fac18513965027901a4240787 /firmware/export/tlv320.h
parent46a608bf07ec9d40bdd151e3283646682bb9e9bd (diff)
downloadrockbox-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.h22
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
25extern void tlv320_init(void); 25extern void audiohw_init(void);
26extern void tlv320_reset(void); 26extern 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 */
36extern void tlv320_set_frequency(unsigned fsel); 36extern void audiohw_set_frequency(unsigned fsel);
37extern void tlv320_enable_output(bool enable); 37extern void audiohw_enable_output(bool enable);
38extern void tlv320_set_headphone_vol(int vol_l, int vol_r); 38extern void audiohw_set_headphone_vol(int vol_l, int vol_r);
39extern void tlv320_set_recvol(int left, int right, int type); 39extern void audiohw_set_recvol(int left, int right, int type);
40extern void tlv320_mute(bool mute); 40extern void audiohw_mute(bool mute);
41extern void tlv320_close(void); 41extern void audiohw_close(void);
42extern void tlv320_enable_recording(bool source_mic); 42extern void audiohw_enable_recording(bool source_mic);
43extern void tlv320_disable_recording(void); 43extern void audiohw_disable_recording(void);
44extern void tlv320_set_monitor(bool enable); 44extern void audiohw_set_monitor(bool enable);
45 45
46#define HEADPHONE_MUTE 0x30 /* 0110000 = -73db */ 46#define HEADPHONE_MUTE 0x30 /* 0110000 = -73db */
47 47