Linux Kernel
3.7.1
|
Go to the source code of this file.
Macros | |
#define | TPA6130A2_REG_CONTROL 0x01 |
#define | TPA6130A2_REG_VOL_MUTE 0x02 |
#define | TPA6130A2_REG_OUT_IMPEDANCE 0x03 |
#define | TPA6130A2_REG_VERSION 0x04 |
#define | TPA6130A2_CACHEREGNUM (TPA6130A2_REG_VERSION + 1) |
#define | TPA6130A2_SWS (0x01 << 0) |
#define | TPA6130A2_TERMAL (0x01 << 1) |
#define | TPA6130A2_MODE(x) (x << 4) |
#define | TPA6130A2_MODE_STEREO (0x00) |
#define | TPA6130A2_MODE_DUAL_MONO (0x01) |
#define | TPA6130A2_MODE_BRIDGE (0x02) |
#define | TPA6130A2_MODE_MASK (0x03) |
#define | TPA6130A2_HP_EN_R (0x01 << 6) |
#define | TPA6130A2_HP_EN_L (0x01 << 7) |
#define | TPA6130A2_VOLUME(x) ((x & 0x3f) << 0) |
#define | TPA6130A2_MUTE_R (0x01 << 6) |
#define | TPA6130A2_MUTE_L (0x01 << 7) |
#define | TPA6130A2_HIZ_R (0x01 << 0) |
#define | TPA6130A2_HIZ_L (0x01 << 1) |
#define | TPA6130A2_VERSION_MASK (0x0f) |
Functions | |
int | tpa6130a2_add_controls (struct snd_soc_codec *codec) |
int | tpa6130a2_stereo_enable (struct snd_soc_codec *codec, int enable) |
#define TPA6130A2_CACHEREGNUM (TPA6130A2_REG_VERSION + 1) |
Definition at line 33 of file tpa6130a2.h.
#define TPA6130A2_HIZ_L (0x01 << 1) |
Definition at line 54 of file tpa6130a2.h.
#define TPA6130A2_HIZ_R (0x01 << 0) |
Definition at line 53 of file tpa6130a2.h.
#define TPA6130A2_HP_EN_L (0x01 << 7) |
Definition at line 45 of file tpa6130a2.h.
#define TPA6130A2_HP_EN_R (0x01 << 6) |
Definition at line 44 of file tpa6130a2.h.
Definition at line 39 of file tpa6130a2.h.
#define TPA6130A2_MODE_BRIDGE (0x02) |
Definition at line 42 of file tpa6130a2.h.
#define TPA6130A2_MODE_DUAL_MONO (0x01) |
Definition at line 41 of file tpa6130a2.h.
#define TPA6130A2_MODE_MASK (0x03) |
Definition at line 43 of file tpa6130a2.h.
#define TPA6130A2_MODE_STEREO (0x00) |
Definition at line 40 of file tpa6130a2.h.
#define TPA6130A2_MUTE_L (0x01 << 7) |
Definition at line 50 of file tpa6130a2.h.
#define TPA6130A2_MUTE_R (0x01 << 6) |
Definition at line 49 of file tpa6130a2.h.
#define TPA6130A2_REG_CONTROL 0x01 |
Definition at line 28 of file tpa6130a2.h.
#define TPA6130A2_REG_OUT_IMPEDANCE 0x03 |
Definition at line 30 of file tpa6130a2.h.
#define TPA6130A2_REG_VERSION 0x04 |
Definition at line 31 of file tpa6130a2.h.
#define TPA6130A2_REG_VOL_MUTE 0x02 |
Definition at line 29 of file tpa6130a2.h.
#define TPA6130A2_SWS (0x01 << 0) |
Definition at line 37 of file tpa6130a2.h.
#define TPA6130A2_TERMAL (0x01 << 1) |
Definition at line 38 of file tpa6130a2.h.
#define TPA6130A2_VERSION_MASK (0x0f) |
Definition at line 57 of file tpa6130a2.h.
Definition at line 48 of file tpa6130a2.h.
int tpa6130a2_add_controls | ( | struct snd_soc_codec * | codec | ) |
Definition at line 344 of file tpa6130a2.c.
int tpa6130a2_stereo_enable | ( | struct snd_soc_codec * | codec, |
int | enable | ||
) |
Definition at line 325 of file tpa6130a2.c.