Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 284026
b: refs/heads/master
c: 7e0d6ac
h: refs/heads/master
v: v3
  • Loading branch information
Axel Lin authored and Mark Brown committed Dec 28, 2011
1 parent 914385c commit f9d736f
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 13 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 077a2ba4c8e40e6256948c3b4cc60608a284f555
refs/heads/master: 7e0d6ac0d894ebae2ff85ea6108dd065a274dfb9
14 changes: 2 additions & 12 deletions trunk/sound/soc/kirkwood/kirkwood-t5325.c
Original file line number Diff line number Diff line change
Expand Up @@ -25,18 +25,7 @@ static int t5325_hw_params(struct snd_pcm_substream *substream,
{
struct snd_soc_pcm_runtime *rtd = substream->private_data;
struct snd_soc_dai *codec_dai = rtd->codec_dai;
struct snd_soc_dai *cpu_dai = rtd->cpu_dai;
int ret;
unsigned int freq, fmt;

fmt = SND_SOC_DAIFMT_I2S | SND_SOC_DAIFMT_CBS_CFS;
ret = snd_soc_dai_set_fmt(cpu_dai, fmt);
if (ret < 0)
return ret;

ret = snd_soc_dai_set_fmt(codec_dai, fmt);
if (ret < 0)
return ret;
unsigned int freq;

freq = params_rate(params) * 256;

Expand Down Expand Up @@ -90,6 +79,7 @@ static struct snd_soc_dai_link t5325_dai[] = {
.platform_name = "kirkwood-pcm-audio",
.codec_dai_name = "alc5621-hifi",
.codec_name = "alc562x-codec.0-001a",
.dai_fmt = SND_SOC_DAIFMT_I2S | SND_SOC_DAIFMT_CBS_CFS,
.ops = &t5325_ops,
.init = t5325_dai_init,
},
Expand Down

0 comments on commit f9d736f

Please sign in to comment.