aboutsummaryrefslogtreecommitdiffstats
path: root/bsp/pandaboard/ASoC-twl6040-enable-default-sysclk-constraints.patch
blob: 7ea1b96b9c46d470657c713533968365dc8e4b5d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
From 7a7b8780e9c555580428560ab1f1670a6b83dbd0 Mon Sep 17 00:00:00 2001
From: Liam Girdwood <lrg@slimlogic.co.uk>
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 <lrg@slimlogic.co.uk>
Integrated-by: Jingdong Lu <jingdong.lu@windriver.com>
---
 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