diff options
-rw-r--r-- | sound/soc/s3c24xx/smartq_wm8987.c | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/sound/soc/s3c24xx/smartq_wm8987.c b/sound/soc/s3c24xx/smartq_wm8987.c index dd20ca7f4681..aef94c7821a9 100644 --- a/sound/soc/s3c24xx/smartq_wm8987.c +++ b/sound/soc/s3c24xx/smartq_wm8987.c | |||
@@ -39,8 +39,8 @@ static int smartq_hifi_hw_params(struct snd_pcm_substream *substream, | |||
39 | struct snd_pcm_hw_params *params) | 39 | struct snd_pcm_hw_params *params) |
40 | { | 40 | { |
41 | struct snd_soc_pcm_runtime *rtd = substream->private_data; | 41 | struct snd_soc_pcm_runtime *rtd = substream->private_data; |
42 | struct snd_soc_dai *codec_dai = rtd->dai->codec_dai; | 42 | struct snd_soc_dai *codec_dai = rtd->codec_dai; |
43 | struct snd_soc_dai *cpu_dai = rtd->dai->cpu_dai; | 43 | struct snd_soc_dai *cpu_dai = rtd->cpu_dai; |
44 | struct s3c_i2sv2_rate_calc div; | 44 | struct s3c_i2sv2_rate_calc div; |
45 | unsigned int clk = 0; | 45 | unsigned int clk = 0; |
46 | int ret; | 46 | int ret; |
@@ -156,8 +156,9 @@ static const struct snd_soc_dapm_route audio_map[] = { | |||
156 | {"LINPUT2", NULL, "Mic Bias"}, | 156 | {"LINPUT2", NULL, "Mic Bias"}, |
157 | }; | 157 | }; |
158 | 158 | ||
159 | static int smartq_wm8987_init(struct snd_soc_codec *codec) | 159 | static int smartq_wm8987_init(struct snd_soc_pcm_runtime *rtd) |
160 | { | 160 | { |
161 | struct snd_soc_codec *codec = rtd->codec; | ||
161 | int err = 0; | 162 | int err = 0; |
162 | 163 | ||
163 | /* Add SmartQ specific widgets */ | 164 | /* Add SmartQ specific widgets */ |
@@ -190,8 +191,8 @@ static int smartq_wm8987_init(struct snd_soc_codec *codec) | |||
190 | return err; | 191 | return err; |
191 | 192 | ||
192 | /* Headphone jack detection */ | 193 | /* Headphone jack detection */ |
193 | err = snd_soc_jack_new(&snd_soc_smartq, "Headphone Jack", | 194 | err = snd_soc_jack_new(codec, "Headphone Jack", SND_JACK_HEADPHONE, |
194 | SND_JACK_HEADPHONE, &smartq_jack); | 195 | &smartq_jack); |
195 | if (err) | 196 | if (err) |
196 | return err; | 197 | return err; |
197 | 198 | ||