These changes are the raw update to linux-4.4.6-rt14. Kernel sources
[kvmfornfv.git] / kernel / sound / soc / codecs / tas571x.h
1 /*
2  * TAS571x amplifier audio driver
3  *
4  * Copyright (C) 2015 Google, Inc.
5  *
6  * This program is free software; you can redistribute it and/or modify
7  * it under the terms of the GNU General Public License as published by
8  * the Free Software Foundation; either version 2 of the License, or
9  * (at your option) any later version.
10  */
11
12 #ifndef _TAS571X_H
13 #define _TAS571X_H
14
15 /* device registers */
16 #define TAS571X_SDI_REG                 0x04
17 #define TAS571X_SDI_FMT_MASK            0x0f
18
19 #define TAS571X_SYS_CTRL_2_REG          0x05
20 #define TAS571X_SYS_CTRL_2_SDN_MASK     0x40
21
22 #define TAS571X_SOFT_MUTE_REG           0x06
23 #define TAS571X_SOFT_MUTE_CH1_SHIFT     0
24 #define TAS571X_SOFT_MUTE_CH2_SHIFT     1
25 #define TAS571X_SOFT_MUTE_CH3_SHIFT     2
26
27 #define TAS571X_MVOL_REG                0x07
28 #define TAS571X_CH1_VOL_REG             0x08
29 #define TAS571X_CH2_VOL_REG             0x09
30
31 #define TAS571X_OSC_TRIM_REG            0x1b
32
33 #endif /* _TAS571X_H */