diff options
author | Peter Ujfalusi <peter.ujfalusi@ti.com> | 2011-10-05 10:29:28 +0300 |
---|---|---|
committer | Mark Brown <broonie@opensource.wolfsonmicro.com> | 2011-10-05 17:10:10 +0100 |
commit | a0acf47f1b986a89026a26fc0365b4ed2f65cd85 (patch) | |
tree | 172fa747cd0180ff141b1be9a4acd296299b73f7 /sound/soc/codecs/twl6040.c | |
parent | 1576a5ff4929a4082307be0c69bb36826aafaad6 (diff) | |
download | blackbird-obmc-linux-a0acf47f1b986a89026a26fc0365b4ed2f65cd85.tar.gz blackbird-obmc-linux-a0acf47f1b986a89026a26fc0365b4ed2f65cd85.zip |
ASoC: twl6040: Warn user in twl6040_put_volsw for error case
Let the user know, that the callback has been called with unexpected
register parameter.
Signed-off-by: Peter Ujfalusi <peter.ujfalusi@ti.com>
Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
Diffstat (limited to 'sound/soc/codecs/twl6040.c')
-rw-r--r-- | sound/soc/codecs/twl6040.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/sound/soc/codecs/twl6040.c b/sound/soc/codecs/twl6040.c index 7450e1bb8164..62edded0b549 100644 --- a/sound/soc/codecs/twl6040.c +++ b/sound/soc/codecs/twl6040.c @@ -759,6 +759,8 @@ static int twl6040_put_volsw(struct snd_kcontrol *kcontrol, out = &twl6040_priv->handsfree; break; default: + dev_warn(codec->dev, "%s: Unexpected register: 0x%02x\n", + __func__, mc->reg); return -EINVAL; } |