Want more features on Pastebin? Sign Up, it's FREE!
Guest

Untitled

By: a guest on Mar 2nd, 2012  |  syntax: None  |  size: 1.63 KB  |  views: 40  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. commit a67cc22bf5d87f46c11bd53771554f2e851e24b2
  2. Author: Bertrik Sikken <bertrik@sikken.nl>
  3. Date:   Sun Jan 15 14:45:33 2012 +0100
  4.  
  5.     autofade restored from patch
  6.  
  7. diff --git a/firmware/drivers/audio/as3514.c b/firmware/drivers/audio/as3514.c
  8. index 2260962..8289d8f 100644
  9. --- a/firmware/drivers/audio/as3514.c
  10. +++ b/firmware/drivers/audio/as3514.c
  11. @@ -151,7 +151,10 @@ void audiohw_preinit(void)
  12.  #ifdef HAVE_AS3543
  13.  
  14.      as3514_write(AS3514_AUDIOSET1, AUDIOSET1_DAC_on | AUDIOSET1_DAC_GAIN_on);
  15. -    as3514_write(AS3514_AUDIOSET2, AUDIOSET2_AGC_off | AUDIOSET2_HPH_QUALITY_LOW_POWER);
  16. +    as3514_write(AS3514_AUDIOSET2,
  17. +                 AUDIOSET2_AGC_off |
  18. +                 AUDIOSET2_HPH_QUALITY_LOW_POWER |
  19. +                 AUDIOSET2_GAIN_STEP_OFF);
  20.      /* common ground on, delay playback unmuting when inserting headphones */
  21.      as3514_write(AS3514_AUDIOSET3, AUDIOSET3_HPCM_on | AUDIOSET3_HP_LONGSTART);
  22.  
  23. diff --git a/firmware/export/as3514.h b/firmware/export/as3514.h
  24. index acf1344..7a9fe37 100644
  25. --- a/firmware/export/as3514.h
  26. +++ b/firmware/export/as3514.h
  27. @@ -306,6 +306,11 @@ extern void audiohw_set_sampr_dividers(int fsel);
  28.  #define AUDIOSET2_AGC_off       (0x1 << 5)
  29.  #define AUDIOSET2_HPH_QUALITY_LOW_POWER (0x0 << 4)
  30.  #define AUDIOSET2_HPH_QUALITY_HIGH      (0x1 << 4)
  31. +#define AUDIOSET2_GAIN_STEP     (0x3 << 2)
  32. +    #define AUDIOSET2_GAIN_STEP_2MS (0x0 << 2)
  33. +    #define AUDIOSET2_GAIN_STEP_4MS (0x1 << 2)
  34. +    #define AUDIOSET2_GAIN_STEP_8MS (0x2 << 2)
  35. +    #define AUDIOSET2_GAIN_STEP_OFF (0x3 << 2)
  36.  #else
  37.  #define AUDIOSET2_BIAS_off      (0x1 << 7)
  38.  #define AUDIOSET2_DITH_off      (0x1 << 6)
clone this paste RAW Paste Data