diff options
Diffstat (limited to 'firmware/drivers')
-rw-r--r-- | firmware/drivers/uda1380.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/firmware/drivers/uda1380.c b/firmware/drivers/uda1380.c index eb2b57e7f3..3281391c72 100644 --- a/firmware/drivers/uda1380.c +++ b/firmware/drivers/uda1380.c | |||
@@ -255,10 +255,10 @@ void uda1380_disable_recording(void) | |||
255 | /** | 255 | /** |
256 | * Set recording gain and volume | 256 | * Set recording gain and volume |
257 | * | 257 | * |
258 | * type: params: ranges: | 258 | * type: params: ranges: |
259 | * AUDIO_GAIN_MIC left 0 .. 15 -> 0 .. 30 dB gain | 259 | * AUDIO_GAIN_MIC left 0 .. 15 -> 0 .. 30 dB gain |
260 | * AUDIO_GAIN_LINEIN left & right 0 .. 8 -> 0 .. 24 dB gain | 260 | * AUDIO_GAIN_LINEIN left & right 0 .. 8 -> 0 .. 24 dB gain |
261 | * AUDIO_GAIN_ADC left & right -128 .. 48 -> -64 .. 24 dB gain | 261 | * AUDIO_GAIN_DECIMATOR left & right -128 .. 48 -> -64 .. 24 dB gain |
262 | * | 262 | * |
263 | * Note: For all types the value 0 gives 0 dB gain. | 263 | * Note: For all types the value 0 gives 0 dB gain. |
264 | */ | 264 | */ |
@@ -274,7 +274,7 @@ void uda1380_set_recvol(int left, int right, int type) | |||
274 | uda1380_write_reg(REG_PGA, (uda1380_regs[REG_PGA] & ~PGA_GAIN_MASK) | PGA_GAINL(left) | PGA_GAINR(right)); | 274 | uda1380_write_reg(REG_PGA, (uda1380_regs[REG_PGA] & ~PGA_GAIN_MASK) | PGA_GAINL(left) | PGA_GAINR(right)); |
275 | break; | 275 | break; |
276 | 276 | ||
277 | case AUDIO_GAIN_ADC: | 277 | case AUDIO_GAIN_DECIMATOR: |
278 | uda1380_write_reg(REG_DEC_VOL, DEC_VOLL(left) | DEC_VOLR(right)); | 278 | uda1380_write_reg(REG_DEC_VOL, DEC_VOLL(left) | DEC_VOLR(right)); |
279 | break; | 279 | break; |
280 | } | 280 | } |