summaryrefslogtreecommitdiff
path: root/sound/soc
diff options
context:
space:
mode:
authorLiam Girdwood <lrg@slimlogic.co.uk>2011-04-07 08:40:05 +0100
committerAndy Green <andy.green@linaro.org>2011-04-07 08:40:05 +0100
commit7f56aa94a2156cb95d0093cb04ed5f4154e3ff58 (patch)
tree004814af0b23cb574c612aabe19c1c919c80047a /sound/soc
parentab984dd778f785d807b1e8f32c666e6a9195a897 (diff)
ASoC: twl6040: enable default sysclk constraints
If sysclk contrainst are not set by the machine driver then we will register NULL constraints at PCM startup. Fix this by making setting default constraints at probe() Change-Id: I5630dd5d72095cb8eef1fa3d1d3e275c6b87111d Signed-off-by: Liam Girdwood <lrg@slimlogic.co.uk>
Diffstat (limited to 'sound/soc')
-rw-r--r--sound/soc/codecs/twl6040.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/sound/soc/codecs/twl6040.c b/sound/soc/codecs/twl6040.c
index dc83189fa39..4ed2c1807bf 100644
--- a/sound/soc/codecs/twl6040.c
+++ b/sound/soc/codecs/twl6040.c
@@ -1569,6 +1569,7 @@ static int twl6040_probe(struct snd_soc_codec *codec)
/* default is high-performance mode */
priv->headset_mode = 1;
+ priv->sysclk_constraints = &lp_constraints;
priv->workqueue = create_singlethread_workqueue("twl6040-codec");
if (!priv->workqueue)
goto work_err;