From 7e85fe5be1a157e8323bbc80da15f271da8eccac Mon Sep 17 00:00:00 2001 From: Dmitry Gamza Date: Tue, 9 Apr 2013 10:01:49 +0400 Subject: some optimization for iriver h100 and h300 series MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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 Reviewed-by: Björn Stenberg --- firmware/drivers/audio/uda1380.c | 4 ++-- 1 file 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, -- cgit v1.2.3