X-Git-Url: https://codewiz.org/gitweb?a=blobdiff_plain;f=bertos%2Fcfg%2Fcfg_wm8731.h;h=76280b6541b2aa9c7e92494d86ad33f7ffd8fc36;hb=8a38c90967d213502db928d94aeb484426621c05;hp=59651315eb3a40dad4e01ce781d205848a0a39c7;hpb=a3c8fd5c3fca6e0bad57e6b554442e6efb88fcdf;p=bertos.git diff --git a/bertos/cfg/cfg_wm8731.h b/bertos/cfg/cfg_wm8731.h index 59651315..76280b65 100644 --- a/bertos/cfg/cfg_wm8731.h +++ b/bertos/cfg/cfg_wm8731.h @@ -93,7 +93,7 @@ * $WIZ$ type = "enum" * $WIZ$ value_list = "wm8731_bypass" */ -#define CONFIG_WM8731_BYPASS WM8731_BYPASS +#define CONFIG_WM8731_BYPASS WM8731_DACSEL /** * Analog control: Side tone attenuation @@ -102,4 +102,32 @@ */ #define CONFIG_WM8731_SIDEATT WM8731_SIDEATT_6dB + +/** + * Digital Audio interface format. + * $WIZ$ type = "enum" + * $WIZ$ value_list = "wm8731_fmt" + */ +#define CONFIG_WM8731_INTERFACE_FORMAT WM8731_FORMAT_I2S + +/** + * Digital Audio data bit length. + * $WIZ$ type = "enum" + * $WIZ$ value_list = "wm8731_databit" + */ +#define CONFIG_WM8731_IWL_BITS WM8731_IWL_16_BIT + +/** + * Enable Master mode. + * $WIZ$ type = "boolean" + */ +#define CONFIG_WM8731_MS 0 + + +/** + * Data sampling rate, refer to datasheet for this value. + * $WIZ$ type = "hex" + */ +#define CONFIG_WM8731_SAMPLING_RATES 0x6 + #endif /* CFG_WM8731_H */