Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 193317
b: refs/heads/master
c: 8d43d1b
h: refs/heads/master
i:
  193315: f8ce088
v: v3
  • Loading branch information
Chaithrika U S authored and Mark Brown committed Mar 10, 2010
1 parent 25f9376 commit 7b70842
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 2 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: 3a9d620278981f367a77a8888c0d59a70473b056
refs/heads/master: 8d43d1bc81190ee8e4e694d805afa586339b0afc
16 changes: 15 additions & 1 deletion trunk/sound/soc/davinci/davinci-evm.c
Original file line number Diff line number Diff line change
Expand Up @@ -81,10 +81,24 @@ static int evm_hw_params(struct snd_pcm_substream *substream,
return 0;
}

static int evm_spdif_hw_params(struct snd_pcm_substream *substream,
struct snd_pcm_hw_params *params)
{
struct snd_soc_pcm_runtime *rtd = substream->private_data;
struct snd_soc_dai *cpu_dai = rtd->dai->cpu_dai;

/* set cpu DAI configuration */
return snd_soc_dai_set_fmt(cpu_dai, AUDIO_FORMAT);
}

static struct snd_soc_ops evm_ops = {
.hw_params = evm_hw_params,
};

static struct snd_soc_ops evm_spdif_ops = {
.hw_params = evm_spdif_hw_params,
};

/* davinci-evm machine dapm widgets */
static const struct snd_soc_dapm_widget aic3x_dapm_widgets[] = {
SND_SOC_DAPM_HP("Headphone Jack", NULL),
Expand Down Expand Up @@ -165,7 +179,7 @@ static struct snd_soc_dai_link dm6467_evm_dai[] = {
.stream_name = "spdif",
.cpu_dai = &davinci_mcasp_dai[DAVINCI_MCASP_DIT_DAI],
.codec_dai = &dit_stub_dai,
.ops = &evm_ops,
.ops = &evm_spdif_ops,
},
};
static struct snd_soc_dai_link da8xx_evm_dai = {
Expand Down

0 comments on commit 7b70842

Please sign in to comment.