11 Aug
2014
11 Aug
'14
12:48 p.m.
On Sun, Aug 10, 2014 at 02:42:23PM -0400, jonsmirl@gmail.com wrote:
This should fix it to use the output clocks, but does it break any of the other DTS using simple-audio?
diff --git a/sound/soc/generic/simple-card.c b/sound/soc/generic/simple-card.c index 03a7fdc..8c4b267 100644 --- a/sound/soc/generic/simple-card.c +++ b/sound/soc/generic/simple-card.c @@ -116,6 +116,7 @@ asoc_simple_card_sub_parse_of(struct device_node *np, { struct device_node *node; struct clk *clk;
const char *clk_name = NULL; int ret;
/*
@@ -156,11 +157,14 @@ asoc_simple_card_sub_parse_of(struct device_node *np, "system-clock-frequency", &dai->sysclk); } else {
- clk = of_clk_get(node, 0);
- if (!IS_ERR(clk))
- dai->sysclk = clk_get_rate(clk);
- of_property_read_string(node, "clock-output-names", &clk_name);
- if (clk_name) {
- clk = of_clk_get_by_name(node, clk_name);
- if (!IS_ERR(clk)) {
- dai->sysclk = clk_get_rate(clk);
- }
Jon, please use indentation when sending code via e-mail - this is far too hard to read.