summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 36dbb17)
raw | patch | inline | side by side (parent: 36dbb17)
author | Tracy Yi <tracy-yi@ti.com> | |
Tue, 23 Apr 2019 06:34:50 +0000 (14:34 +0800) | ||
committer | Tracy Yi <tracy-yi@ti.com> | |
Tue, 23 Apr 2019 06:34:50 +0000 (14:34 +0800) |
Signed-off-by: Tracy Yi <tracy-yi@ti.com>
tas2562-regmap.c | patch | blob | history | |
tas2562.h | patch | blob | history |
diff --git a/tas2562-regmap.c b/tas2562-regmap.c
index 747f80b4aec8a3d52357c1b2a868789b0aaf6d60..94ee256d9fb295c4e22e0b604218212b0712d6a5 100644 (file)
--- a/tas2562-regmap.c
+++ b/tas2562-regmap.c
struct tas2562_priv *pTAS2562;
int nResult;
- //struct pinctrl *pinctrl;
- //struct pinctrl_state *pin_state;
+ dev_err(&pClient->dev, "Driver ID: %s\n", TAS2562_DRIVER_ID);
dev_info(&pClient->dev, "%s enter\n", __func__);
pTAS2562 = devm_kzalloc(&pClient->dev,
diff --git a/tas2562.h b/tas2562.h
index c4730c25a4b26dea455e6f54f13797979edc3814..e96f830add9192176a9351138b65b2ac10c4549c 100644 (file)
--- a/tas2562.h
+++ b/tas2562.h
#ifndef __TAS2562_
#define __TAS2562_
+#define TAS2562_DRIVER_ID "2.0.0"
+
/* Page Control Register */
-#define TAS2560_PAGECTL_REG 0
+#define TAS2562_PAGECTL_REG 0
/* Book Control Register (available in page0 of each book) */
#define TAS2562_BOOKCTL_PAGE 0
/* TDM Configuration Reg2 */
#define TAS2562_TDMConfigurationReg2 TAS2562_REG(0x0, 0x0, 0x08)
#define TAS2562_TDMConfigurationReg2_RXSCFG54_Mask (0x3 << 4)
-#define TAS2562_TDMConfigurationReg2_RXSCFG54_Mono_I2C (0x0 << 4),
-#define TAS2562_TDMConfigurationReg2_RXSCFG54_Mono_Left (0x1 << 4),
+#define TAS2562_TDMConfigurationReg2_RXSCFG54_Mono_I2C (0x0 << 4)
+#define TAS2562_TDMConfigurationReg2_RXSCFG54_Mono_Left (0x1 << 4)
#define TAS2562_TDMConfigurationReg2_RXSCFG54_Mono_Right (0x2 << 4)
#define TAS2562_TDMConfigurationReg2_RXSCFG54_Stereo_DownMix (0x3 << 4)
#define TAS2562_TDMConfigurationReg2_RXWLEN32_Mask (0x3 << 2)