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

Untitled

By: a guest on Jun 23rd, 2011  |  syntax: Diff  |  size: 0.93 KB  |  views: 87  |  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. Index: firmware/export/wm8975.h
  2. ===================================================================
  3. --- firmware/export/wm8975.h    (revision 30056)
  4. +++ firmware/export/wm8975.h    (working copy)
  5. @@ -303,6 +303,7 @@
  6.  #define WM8975_24000HZ     0x79
  7.  #define WM8975_32000HZ     0x59
  8.  #define WM8975_44100HZ     0x63
  9. +#define WM8975_44100Hz_    0x20
  10.  #define WM8975_48000HZ     0x41
  11.  #define WM8975_88200HZ     0x7f
  12.  #define WM8975_96000HZ     0x5d
  13. Index: firmware/drivers/audio/wm8975.c
  14. ===================================================================
  15. --- firmware/drivers/audio/wm8975.c     (revision 30056)
  16. +++ firmware/drivers/audio/wm8975.c     (working copy)
  17. @@ -153,6 +153,9 @@
  18.  
  19.      wm8975_write(PWRMGMT1, wm8975_regs[PWRMGMT1]);
  20.      wm8975_write(PWRMGMT2, wm8975_regs[PWRMGMT2]);
  21. +
  22. +    wm8975_write(ADDCTRL2, ADDCTRL2_LRCM);
  23. +    wm8975_write(SAMPCTRL, SAMPCTRL_BCM_MCLK_4 | WM8975_44100HZ_);
  24.  }
  25.  
  26.  void audiohw_postinit(void)
clone this paste RAW Paste Data