1
0
Fork 0
forked from len0rd/rockbox

Commit FS#12111 by Stephan Grossklass. Disables output mixer auto gain control on AMSv2. Should fix occasional distortion reported when running the player at very high output levels (e.g. at or above 0dB).

git-svn-id: svn://svn.rockbox.org/rockbox/trunk@30208 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
Michael Giacomelli 2011-07-24 21:56:24 +00:00
parent 855e3c6f0f
commit c27ea297a3
2 changed files with 5 additions and 1 deletions

View file

@ -151,7 +151,7 @@ void audiohw_preinit(void)
#ifdef HAVE_AS3543
as3514_write(AS3514_AUDIOSET1, AUDIOSET1_DAC_on | AUDIOSET1_DAC_GAIN_on);
as3514_write(AS3514_AUDIOSET2, AUDIOSET2_HPH_QUALITY_LOW_POWER);
as3514_write(AS3514_AUDIOSET2, AUDIOSET2_AGC_off | AUDIOSET2_HPH_QUALITY_LOW_POWER);
/* common ground on, delay playback unmuting when inserting headphones */
as3514_write(AS3514_AUDIOSET3, AUDIOSET3_HPCM_on | AUDIOSET3_HP_LONGSTART);

View file

@ -300,6 +300,10 @@ extern void audiohw_set_sampr_dividers(int fsel);
/* AUDIOSET2 (15h) */
#ifdef HAVE_AS3543
#define AUDIOSET2_BIAS_on (0x0 << 7)
#define AUDIOSET2_BIAS_off (0x1 << 7)
#define AUDIOSET2_SUM_off (0x1 << 6)
#define AUDIOSET2_AGC_off (0x1 << 5)
#define AUDIOSET2_HPH_QUALITY_LOW_POWER (0x0 << 4)
#define AUDIOSET2_HPH_QUALITY_HIGH (0x1 << 4)
#else