From 7a7b8780e9c555580428560ab1f1670a6b83dbd0 Mon Sep 17 00:00:00 2001 From: Liam Girdwood Date: Tue, 1 Mar 2011 11:02:05 -0600 Subject: [PATCH 26/60] ASoC: twl6040: enable default sysclk constraints commit 3321e13d655380a55ab340069474bf5626a8e7d9 upstream 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 Integrated-by: Jingdong Lu --- sound/soc/codecs/twl6040.c | 1 + 1 files changed, 1 insertions(+), 0 deletions(-) diff --git a/sound/soc/codecs/twl6040.c b/sound/soc/codecs/twl6040.c index a92521f..c8ba1a5 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) { ret = -ENOMEM; -- 1.7.4.1