aboutsummaryrefslogtreecommitdiffstats
path: root/sound
diff options
context:
space:
mode:
authorMark Brown <broonie@opensource.wolfsonmicro.com>2012-02-29 15:39:56 +0000
committerAndreas Blaesius <skate4life@gmx.de>2016-04-30 11:03:51 +0200
commitee3229ad3475d732cc989d64341cfac50db36d05 (patch)
tree599b98328efd2f6cf229d7d0e066e3f301909c34 /sound
parent1c981ddbe477fc6d895c9d002fcafef126b42297 (diff)
downloadkernel_samsung_espresso10-ee3229ad3475d732cc989d64341cfac50db36d05.zip
kernel_samsung_espresso10-ee3229ad3475d732cc989d64341cfac50db36d05.tar.gz
kernel_samsung_espresso10-ee3229ad3475d732cc989d64341cfac50db36d05.tar.bz2
ASoC: wm_hubs: Bomb out if we can't read back the DC servo result
Should have no practical impact but it's safer than trying to soldier on. Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
Diffstat (limited to 'sound')
-rw-r--r--sound/soc/codecs/wm_hubs.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sound/soc/codecs/wm_hubs.c b/sound/soc/codecs/wm_hubs.c
index d50884b..64c4d8d 100644
--- a/sound/soc/codecs/wm_hubs.c
+++ b/sound/soc/codecs/wm_hubs.c
@@ -173,7 +173,7 @@ static void calibrate_dc_servo(struct snd_soc_codec *codec)
break;
default:
WARN(1, "Unknown DCS readback method\n");
- break;
+ return;
}
dev_dbg(codec->dev, "DCS input: %x %x\n", reg_l, reg_r);