Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 132799
b: refs/heads/master
c: a435869
h: refs/heads/master
i:
  132797: d2f6ce6
  132795: ed4716b
  132791: cf572dd
  132783: 7cf8a9f
  132767: ea74cd8
  132735: b30c5ff
v: v3
  • Loading branch information
Mark Brown committed Jan 23, 2009
1 parent e4acd42 commit fd7171e
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: f6fca2e93c9ad3c704f02aaabe4359a8af16fbbb
refs/heads/master: a435869cacbb581920df23411416bed533748bf1
8 changes: 8 additions & 0 deletions trunk/sound/soc/pxa/zylonite.c
Original file line number Diff line number Diff line change
Expand Up @@ -95,20 +95,24 @@ static int zylonite_voice_hw_params(struct snd_pcm_substream *substream,
struct snd_soc_pcm_runtime *rtd = substream->private_data;
struct snd_soc_dai *codec_dai = rtd->dai->codec_dai;
struct snd_soc_dai *cpu_dai = rtd->dai->cpu_dai;
unsigned int pll_out = 0;
unsigned int acds = 0;
unsigned int wm9713_div = 0;
int ret = 0;

switch (params_rate(params)) {
case 8000:
wm9713_div = 12;
pll_out = 2048000;
break;
case 16000:
wm9713_div = 6;
pll_out = 4096000;
break;
case 48000:
default:
wm9713_div = 2;
pll_out = 12288000;
acds = 1;
break;
}
Expand All @@ -129,6 +133,10 @@ static int zylonite_voice_hw_params(struct snd_pcm_substream *substream,
if (ret < 0)
return ret;

ret = snd_soc_dai_set_pll(cpu_dai, 0, 0, pll_out);
if (ret < 0)
return ret;

ret = snd_soc_dai_set_clkdiv(cpu_dai, PXA_SSP_AUDIO_DIV_ACDS, acds);
if (ret < 0)
return ret;
Expand Down

0 comments on commit fd7171e

Please sign in to comment.