[alsa-devel] [PATCH 2/3] ASoC: sgtl5000: guide user when regulator support is needed
Wolfram Sang
w.sang at pengutronix.de
Mon Jul 18 17:53:04 CEST 2011
Print a hint when the user has a setup where CONFIG_REGULATOR is really
needed to make the driver work.
Signed-off-by: Wolfram Sang <w.sang at pengutronix.de>
Cc: Dong Aisheng <b29396 at freescale.com>
Cc: Zeng Zhaoming <b32542 at freescale.com>
Cc: Mark Brown <broonie at opensource.wolfsonmicro.com>
---
sound/soc/codecs/sgtl5000.c | 1 +
1 files changed, 1 insertions(+), 0 deletions(-)
diff --git a/sound/soc/codecs/sgtl5000.c b/sound/soc/codecs/sgtl5000.c
index 17af336..76258f2 100644
--- a/sound/soc/codecs/sgtl5000.c
+++ b/sound/soc/codecs/sgtl5000.c
@@ -907,6 +907,7 @@ static int ldo_regulator_register(struct snd_soc_codec *codec,
struct regulator_init_data *init_data,
int voltage)
{
+ dev_err(codec->dev, "this setup needs regulator support in the kernel\n");
return -EINVAL;
}
--
1.7.5.4
More information about the Alsa-devel
mailing list