Go to the documentation of this file.
24 #ifndef __TPA6130A2_H__
25 #define __TPA6130A2_H__
28 #define TPA6130A2_REG_CONTROL 0x01
29 #define TPA6130A2_REG_VOL_MUTE 0x02
30 #define TPA6130A2_REG_OUT_IMPEDANCE 0x03
31 #define TPA6130A2_REG_VERSION 0x04
33 #define TPA6130A2_CACHEREGNUM (TPA6130A2_REG_VERSION + 1)
37 #define TPA6130A2_SWS (0x01 << 0)
38 #define TPA6130A2_TERMAL (0x01 << 1)
39 #define TPA6130A2_MODE(x) (x << 4)
40 #define TPA6130A2_MODE_STEREO (0x00)
41 #define TPA6130A2_MODE_DUAL_MONO (0x01)
42 #define TPA6130A2_MODE_BRIDGE (0x02)
43 #define TPA6130A2_MODE_MASK (0x03)
44 #define TPA6130A2_HP_EN_R (0x01 << 6)
45 #define TPA6130A2_HP_EN_L (0x01 << 7)
48 #define TPA6130A2_VOLUME(x) ((x & 0x3f) << 0)
49 #define TPA6130A2_MUTE_R (0x01 << 6)
50 #define TPA6130A2_MUTE_L (0x01 << 7)
53 #define TPA6130A2_HIZ_R (0x01 << 0)
54 #define TPA6130A2_HIZ_L (0x01 << 1)
57 #define TPA6130A2_VERSION_MASK (0x0f)