diff options
Diffstat (limited to 'firmware/export/tlv320.h')
-rw-r--r-- | firmware/export/tlv320.h | 13 |
1 files changed, 0 insertions, 13 deletions
diff --git a/firmware/export/tlv320.h b/firmware/export/tlv320.h index 99359f72ce..ea7ccfceb2 100644 --- a/firmware/export/tlv320.h +++ b/firmware/export/tlv320.h | |||
@@ -36,19 +36,6 @@ AUDIOHW_SETTING(RIGHT_GAIN, "dB", 1, 1, 0, 31, 23, (val - 23) * 15) | |||
36 | AUDIOHW_SETTING(MIC_GAIN, "dB", 1, 1, 0, 1, 1, val * 200) | 36 | AUDIOHW_SETTING(MIC_GAIN, "dB", 1, 1, 0, 1, 1, val * 200) |
37 | #endif /* HAVE_RECORDING */ | 37 | #endif /* HAVE_RECORDING */ |
38 | 38 | ||
39 | static inline int _param_2_phys(int setting, int value) | ||
40 | { | ||
41 | switch(setting) | ||
42 | { | ||
43 | default: return value; | ||
44 | #ifdef HAVE_RECORDING | ||
45 | case SOUND_LEFT_GAIN: | ||
46 | case SOUND_RIGHT_GAIN: return (value - 23) * 15; | ||
47 | case SOUND_MIC_GAIN: return value * 200; /* 0 or 20 dB */ | ||
48 | #endif | ||
49 | } | ||
50 | } | ||
51 | |||
52 | /*** definitions ***/ | 39 | /*** definitions ***/ |
53 | #define HEADPHONE_MUTE 0x30 /* 0110000 = -73db */ | 40 | #define HEADPHONE_MUTE 0x30 /* 0110000 = -73db */ |
54 | 41 | ||