Update preset.
[bertos.git] / bertos / drv / wm8731.h
index 34d1a00844b88547807a8e3e8c63bff41d7bc9a6..3404d0286bfa1e8fb52ba6ff8ab60a010a7d7236 100644 (file)
 #define WM8731_SR_BITS_MASK                       0x3C // Sample rate control
 #define WM8731_CLKIDIV2_BIT                          6 // Core clock divider select
 #define WM8731_CLKODIV2_BIT                          7 // CLKOUT divider select
+/**
+ * Sampling rate control
+ * $WIZ$ wm8731_sample_rate = "WM8731_NORMAL_256FS_48KHZ", "WM8731_NORMAL_256FS_44_1KHZ", "WM8731_NORMAL_384FS_44_1KHZ"
+ */
+#define WM8731_NORMAL_256FS_48KHZ      0
+#define WM8731_NORMAL_256FS_44_1KHZ    0x20
+#define WM8731_NORMAL_384FS_44_1KHZ    0x22
+#define WM8731_NORMAL_128FS_44_1KHZ    0x3E
 
 /* Active control register*/
 #define WM8731_REG_ACTIVE_CTRL                     0x9