aboutsummaryrefslogtreecommitdiffstats
path: root/sound/soc/codecs/wm8904.c
diff options
context:
space:
mode:
authorTakashi Iwai <tiwai@suse.de>2019-12-17 14:18:32 +0100
committerTakashi Iwai <tiwai@suse.de>2019-12-17 14:18:32 +0100
commit7c497d799267134786afdf719d9230b7d6f77d84 (patch)
tree184180258d8a61e014d0da33d3b6bad3691ab116 /sound/soc/codecs/wm8904.c
parentALSA: hda - Downgrade error message for single-cmd fallback (diff)
parentASoC: wm8962: fix lambda value (diff)
downloadlinux-dev-7c497d799267134786afdf719d9230b7d6f77d84.tar.xz
linux-dev-7c497d799267134786afdf719d9230b7d6f77d84.zip
Merge tag 'asoc-fix-v5.5-rc2' of https://git.kernel.org/pub/scm/linux/kernel/git/broonie/sound into for-linus
ASoC: Fixes for v5.5 A collection of fixes since the merge window, mostly driver specific but there's a few in the core that clean up fallout from the refactorings done in the last cycle.
Diffstat (limited to 'sound/soc/codecs/wm8904.c')
-rw-r--r--sound/soc/codecs/wm8904.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/sound/soc/codecs/wm8904.c b/sound/soc/codecs/wm8904.c
index 7d7ea15d73e0..5ffbaddd6e49 100644
--- a/sound/soc/codecs/wm8904.c
+++ b/sound/soc/codecs/wm8904.c
@@ -1806,6 +1806,12 @@ static int wm8904_set_sysclk(struct snd_soc_dai *dai, int clk_id,
switch (clk_id) {
case WM8904_CLK_AUTO:
+ /* We don't have any rate constraints, so just ignore the
+ * request to disable constraining.
+ */
+ if (!freq)
+ return 0;
+
mclk_freq = clk_get_rate(priv->mclk);
/* enable FLL if a different sysclk is desired */
if (mclk_freq != freq) {