[alsa-devel] [PATCH 5/6] ASoC: alc5632: Added support of two undocumented registers

Leon Romanovsky leon at leon.nu
Wed Nov 16 11:07:02 CET 2011


There are two undocumented registers in use in alc5632_i2c_probe
function. It must be added to regmap defaults, in order to support
future rewrite of this function to use regmap API completely.

Signed-off-by: Leon Romanovsky <leon at leon.nu>
---
 sound/soc/codecs/alc5632.c |    4 ++++
 1 files changed, 4 insertions(+), 0 deletions(-)

diff --git a/sound/soc/codecs/alc5632.c b/sound/soc/codecs/alc5632.c
index ea40f02..5a672a9 100644
--- a/sound/soc/codecs/alc5632.c
+++ b/sound/soc/codecs/alc5632.c
@@ -85,6 +85,8 @@ static struct reg_default  alc5632_reg_defaults[] = {
 	{ 108, 0x0000 },	/* R108 - Private Register Data */
 	{ 110, 0x0000 },	/* R110 - EQ Control and Status/ADC
 							HPF Control */
+	{ 124, 0x0000 },	/* R124 - Vendor ID1 (Undocumented) */
+	{ 125, 0x0000 },	/* R124 - Vendor ID2 (Undocumented) */
 };
 
 /* codec private data */
@@ -104,6 +106,8 @@ static bool alc5632_volatile_register(struct device *dev,
 	case ALC5632_OVER_CURR_STATUS:
 	case ALC5632_HID_CTRL_DATA:
 	case ALC5632_EQ_CTRL:
+	case ALC5632_VENDOR_ID1:
+	case ALC5632_VENDOR_ID2:
 		return true;
 
 	default:
-- 
1.7.3.4



More information about the Alsa-devel mailing list