/*
* wm9081.c -- WM9081 ALSA SoC Audio driver
*
* Author: Mark Brown
*
* Copyright 2009 Wolfson Microelectronics plc
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License version 2 as
* published by the Free Software Foundation.
*
*/
#include <linux/module.h>
#include <linux/moduleparam.h>
#include <linux/init.h>
#include <linux/delay.h>
#include <linux/device.h>
#include <linux/pm.h>
#include <linux/i2c.h>
#include <linux/platform_device.h>
#include <linux/slab.h>
#include <sound/core.h>
#include <sound/pcm.h>
#include <sound/pcm_params.h>
#include <sound/soc.h>
#include <sound/initval.h>
#include <sound/tlv.h>
#include <sound/wm9081.h>
#include "wm9081.h"
static u16 wm9081_reg_defaults[] = {
0x0000, /* R0 - Software Reset */
0x0000, /* R1 */
0x00B9, /* R2 - Analogue Lineout */
0x00B9, /* R3 - Analogue Speaker PGA */
0x0001, /* R4 - VMID Control */
0x0068, /* R5 - Bias Control 1 */
0x0000, /* R6 */
0x0000, /* R7 - Analogue Mixer */
0x0000, /* R8 - Anti Pop Control */
0x01DB, /* R9 - Analogue Speaker 1 */
0x0018, /* R10 - Analogue Speaker 2 */
0x0180, /* R11 - Power Management */
0x0000, /* R12 - Clock Control 1 */
0x0038, /* R13 - Clock Control 2 */
0x4000, /* R14 - Clock Control 3 */
0x0000, /* R15 */
0x0000, /* R16 - FLL Control 1 */
0x0200, /* R17 - FLL Control 2 */
0x0000, /* R18 - FLL Control 3 */
0x0204, /* R19 - FLL Control 4 */
0x0000, /* R20 - FLL Control 5 */
0x0000, /* R21 */
0x0000, /* R22 - Audio Interface 1 */
0x0002, /* R23 - Audio Interface 2 */
0x0008, /* R24 - Audio Interface 3 */
0x0022, /* R25 - Audio Interface 4 */
0x0000, /* R26 - Interrupt Status */
0x0006, /* R27 - Interrupt Status Mask */
0x0000, /* R28 - Interrupt Polarity */
0x0000, /* R29 - Interrupt Control */
0x00C0, /* R30 - DAC Digital 1 */
0x0008, /* R31 - DAC Digital 2 */
0x09AF, /* R32 - DRC 1 */
0x4201, /* R33 - DRC 2 */
0x0000, /* R34 - DRC 3 */
0x0000, /* R35 - DRC 4 */
0x0000, /* R36 */
0x0000, /* R37 */