Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 230286
b: refs/heads/master
c: 74bd21e
h: refs/heads/master
v: v3
  • Loading branch information
Axel Lin authored and Mark Brown committed Nov 25, 2010
1 parent eb19402 commit cc74ee7
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 5 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: 8ce28bfcf25527b228b8dff1d38480e3643a94d1
refs/heads/master: 74bd21e9b301445b57bdcccdd7b5063ad3fbad0f
9 changes: 5 additions & 4 deletions trunk/sound/soc/samsung/smartq_wm8987.c
Original file line number Diff line number Diff line change
Expand Up @@ -39,8 +39,8 @@ static int smartq_hifi_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 *codec_dai = rtd->dai->codec_dai;
struct snd_soc_dai *cpu_dai = rtd->dai->cpu_dai;
struct snd_soc_dai *codec_dai = rtd->codec_dai;
struct snd_soc_dai *cpu_dai = rtd->cpu_dai;
unsigned int clk = 0;
int ret;

Expand Down Expand Up @@ -153,8 +153,9 @@ static const struct snd_soc_dapm_route audio_map[] = {
{"LINPUT2", NULL, "Mic Bias"},
};

static int smartq_wm8987_init(struct snd_soc_codec *codec)
static int smartq_wm8987_init(struct snd_soc_pcm_runtime *rtd)
{
struct snd_soc_codec *codec = rtd->codec;
struct snd_soc_dapm_context *dapm = &codec->dapm;
int err = 0;

Expand Down Expand Up @@ -188,7 +189,7 @@ static int smartq_wm8987_init(struct snd_soc_codec *codec)
return err;

/* Headphone jack detection */
err = snd_soc_jack_new(&snd_soc_smartq, "Headphone Jack",
err = snd_soc_jack_new(codec, "Headphone Jack",
SND_JACK_HEADPHONE, &smartq_jack);
if (err)
return err;
Expand Down

0 comments on commit cc74ee7

Please sign in to comment.