diff options
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 | ||