summaryrefslogtreecommitdiff
path: root/sound
diff options
context:
space:
mode:
authorLiam Girdwood <lrg@slimlogic.co.uk>2011-05-31 09:23:20 +0100
committerAndy Green <andy.green@linaro.org>2011-05-31 11:04:48 +0100
commitff4025fce84ade2739eb49770d1d89cdf03bc6d5 (patch)
tree852883608146b7529a971922e6ec882a66cfb1ab /sound
parentffeda37fa657a9da08d431b571bfd9e0adfc435b (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')
-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;