summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDmitry Gamza <gamzad@yahoo.com>2013-04-09 10:01:49 +0400
committerBjörn Stenberg <bjorn@haxx.se>2014-03-18 14:12:06 +0100
commit7e85fe5be1a157e8323bbc80da15f271da8eccac (patch)
tree9ad0098d773cbe2d9c185b344a9c46f63ce422b0
parentea9621c0183cb66ae8869e41762b2de113b49b56 (diff)
downloadrockbox-7e85fe5.tar.gz
rockbox-7e85fe5.zip
some optimization for iriver h100 and h300 series
Turn on 4x oversampling inside UDA1380 codec. This allow will move the quantization noise to the higher frequencies, that slightly improve the final sound quality. Change-Id: Idf79cd877c526d8937a47c34e9c180d837a15db1 Reviewed-on: http://gerrit.rockbox.org/435 Reviewed-by: Michael Giacomelli <giac2000@hotmail.com> Reviewed-by: Björn Stenberg <bjorn@haxx.se>
-rw-r--r--firmware/drivers/audio/uda1380.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/firmware/drivers/audio/uda1380.c b/firmware/drivers/audio/uda1380.c
index debe299322..2fe562f865 100644
--- a/firmware/drivers/audio/uda1380.c
+++ b/firmware/drivers/audio/uda1380.c
@@ -99,8 +99,8 @@ static const unsigned short uda1380_defaults[2*NUM_DEFAULT_REGS] =
/* Bass and treble = 0 dB */
REG_MUTE, MUTE_MASTER | MUTE_CH2,
/* Mute everything to start with */
- REG_MIX_CTL, MIX_CTL_MIX,
- /* Enable mixer */
+ REG_MIX_CTL, MIX_CTL_MIX | OVERSAMPLE_MODE(3),
+ /* Enable mixer and 4x oversampling */
REG_DEC_VOL, 0,
REG_PGA, MUTE_ADC,
REG_ADC, SKIP_DCFIL,