[alsa-devel] [PATCH] ASoC: sgtl5000: Fix warning due to the lack of REGULATOR_CHANGE_VOLTAGE

Fabio Estevam festevam at gmail.com
Tue Apr 3 22:02:33 CEST 2012


Fix the following warning during kernel boot:

0-000a: 850 <--> 1600 mV at 1200 mV normal 
0-000a: Voltage range but no REGULATOR_CHANGE_VOLTAGE

Signed-off-by: Fabio Estevam <fabio.estevam at freescale.com>
---
 sound/soc/codecs/sgtl5000.c |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)

diff --git a/sound/soc/codecs/sgtl5000.c b/sound/soc/codecs/sgtl5000.c
index 8e92fb8..bad5ba5 100644
--- a/sound/soc/codecs/sgtl5000.c
+++ b/sound/soc/codecs/sgtl5000.c
@@ -87,7 +87,8 @@ static struct regulator_init_data ldo_init_data = {
 		.min_uV                 = 850000,
 		.max_uV                 = 1600000,
 		.valid_modes_mask       = REGULATOR_MODE_NORMAL,
-		.valid_ops_mask         = REGULATOR_CHANGE_STATUS,
+		.valid_ops_mask         = REGULATOR_CHANGE_VOLTAGE  |
+						REGULATOR_CHANGE_STATUS,
 	},
 	.num_consumer_supplies = 1,
 	.consumer_supplies = &ldo_consumer[0],
-- 
1.7.1



More information about the Alsa-devel mailing list