Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- commit a67cc22bf5d87f46c11bd53771554f2e851e24b2
- Author: Bertrik Sikken <[email protected]>
- Date: Sun Jan 15 14:45:33 2012 +0100
- autofade restored from patch
- diff --git a/firmware/drivers/audio/as3514.c b/firmware/drivers/audio/as3514.c
- index 2260962..8289d8f 100644
- --- a/firmware/drivers/audio/as3514.c
- +++ b/firmware/drivers/audio/as3514.c
- @@ -151,7 +151,10 @@ void audiohw_preinit(void)
- #ifdef HAVE_AS3543
- as3514_write(AS3514_AUDIOSET1, AUDIOSET1_DAC_on | AUDIOSET1_DAC_GAIN_on);
- - as3514_write(AS3514_AUDIOSET2, AUDIOSET2_AGC_off | AUDIOSET2_HPH_QUALITY_LOW_POWER);
- + as3514_write(AS3514_AUDIOSET2,
- + AUDIOSET2_AGC_off |
- + AUDIOSET2_HPH_QUALITY_LOW_POWER |
- + AUDIOSET2_GAIN_STEP_OFF);
- /* common ground on, delay playback unmuting when inserting headphones */
- as3514_write(AS3514_AUDIOSET3, AUDIOSET3_HPCM_on | AUDIOSET3_HP_LONGSTART);
- diff --git a/firmware/export/as3514.h b/firmware/export/as3514.h
- index acf1344..7a9fe37 100644
- --- a/firmware/export/as3514.h
- +++ b/firmware/export/as3514.h
- @@ -306,6 +306,11 @@ extern void audiohw_set_sampr_dividers(int fsel);
- #define AUDIOSET2_AGC_off (0x1 << 5)
- #define AUDIOSET2_HPH_QUALITY_LOW_POWER (0x0 << 4)
- #define AUDIOSET2_HPH_QUALITY_HIGH (0x1 << 4)
- +#define AUDIOSET2_GAIN_STEP (0x3 << 2)
- + #define AUDIOSET2_GAIN_STEP_2MS (0x0 << 2)
- + #define AUDIOSET2_GAIN_STEP_4MS (0x1 << 2)
- + #define AUDIOSET2_GAIN_STEP_8MS (0x2 << 2)
- + #define AUDIOSET2_GAIN_STEP_OFF (0x3 << 2)
- #else
- #define AUDIOSET2_BIAS_off (0x1 << 7)
- #define AUDIOSET2_DITH_off (0x1 << 6)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement