Back to home page

OSCL-LXR

 
 

    


0001 /* SPDX-License-Identifier: GPL-2.0-only */
0002 /*
0003  * wm8776.h  --  WM8776 ASoC driver
0004  *
0005  * Copyright 2009 Wolfson Microelectronics plc
0006  *
0007  * Author: Mark Brown <broonie@opensource.wolfsonmicro.com>
0008  */
0009 
0010 #ifndef _WM8776_H
0011 #define _WM8776_H
0012 
0013 /* Registers */
0014 
0015 #define WM8776_HPLVOL    0x00
0016 #define WM8776_HPRVOL    0x01
0017 #define WM8776_HPMASTER  0x02
0018 #define WM8776_DACLVOL   0x03
0019 #define WM8776_DACRVOL   0x04
0020 #define WM8776_DACMASTER 0x05
0021 #define WM8776_PHASESWAP 0x06
0022 #define WM8776_DACCTRL1  0x07
0023 #define WM8776_DACMUTE   0x08
0024 #define WM8776_DACCTRL2  0x09
0025 #define WM8776_DACIFCTRL 0x0a
0026 #define WM8776_ADCIFCTRL 0x0b
0027 #define WM8776_MSTRCTRL  0x0c
0028 #define WM8776_PWRDOWN   0x0d
0029 #define WM8776_ADCLVOL   0x0e
0030 #define WM8776_ADCRVOL   0x0f
0031 #define WM8776_ALCCTRL1  0x10
0032 #define WM8776_ALCCTRL2  0x11
0033 #define WM8776_ALCCTRL3  0x12
0034 #define WM8776_NOISEGATE 0x13
0035 #define WM8776_LIMITER   0x14
0036 #define WM8776_ADCMUX    0x15
0037 #define WM8776_OUTMUX    0x16
0038 #define WM8776_RESET     0x17
0039 
0040 #define WM8776_CACHEREGNUM 0x17
0041 
0042 #define WM8776_DAI_DAC 0
0043 #define WM8776_DAI_ADC 1
0044 
0045 #endif