Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 157575
b: refs/heads/master
c: 4b75e94
h: refs/heads/master
i:
  157573: 74863ec
  157571: 70cdbb2
  157567: 913456e
v: v3
  • Loading branch information
Mark Brown committed Jul 15, 2009
1 parent 8345fbd commit ee10816
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: e465d544fab81aa122f86a50418f4be7f1fcf066
refs/heads/master: 4b75e9476737dffef44a66818a4a481edd2512a1
8 changes: 8 additions & 0 deletions trunk/sound/soc/codecs/wm9081.c
Original file line number Diff line number Diff line change
Expand Up @@ -707,13 +707,21 @@ static int configure_clock(struct snd_soc_codec *codec)
target > 3000000)
break;
}

if (i == ARRAY_SIZE(clk_sys_rates))
return -EINVAL;

} else if (wm9081->fs) {
for (i = 0; i < ARRAY_SIZE(clk_sys_rates); i++) {
new_sysclk = clk_sys_rates[i].ratio
* wm9081->fs;
if (new_sysclk > 3000000)
break;
}

if (i == ARRAY_SIZE(clk_sys_rates))
return -EINVAL;

} else {
new_sysclk = 12288000;
}
Expand Down

0 comments on commit ee10816

Please sign in to comment.