aboutsummaryrefslogtreecommitdiffstats
path: root/sound/soc/samsung/speyside.c
diff options
context:
space:
mode:
Diffstat (limited to 'sound/soc/samsung/speyside.c')
-rw-r--r--sound/soc/samsung/speyside.c10
1 files changed, 4 insertions, 6 deletions
diff --git a/sound/soc/samsung/speyside.c b/sound/soc/samsung/speyside.c
index 590e9274b06..b9e213f6cc0 100644
--- a/sound/soc/samsung/speyside.c
+++ b/sound/soc/samsung/speyside.c
@@ -125,10 +125,6 @@ static struct snd_soc_jack_pin speyside_headset_pins[] = {
125 .pin = "Headset Mic", 125 .pin = "Headset Mic",
126 .mask = SND_JACK_MICROPHONE, 126 .mask = SND_JACK_MICROPHONE,
127 }, 127 },
128 {
129 .pin = "Headphone",
130 .mask = SND_JACK_HEADPHONE,
131 },
132}; 128};
133 129
134/* Default the headphone selection to active high */ 130/* Default the headphone selection to active high */
@@ -171,7 +167,8 @@ static int speyside_wm8996_init(struct snd_soc_pcm_runtime *rtd)
171 gpio_direction_output(WM8996_HPSEL_GPIO, speyside_jack_polarity); 167 gpio_direction_output(WM8996_HPSEL_GPIO, speyside_jack_polarity);
172 168
173 ret = snd_soc_jack_new(codec, "Headset", 169 ret = snd_soc_jack_new(codec, "Headset",
174 SND_JACK_HEADSET | SND_JACK_BTN_0, 170 SND_JACK_LINEOUT | SND_JACK_HEADSET |
171 SND_JACK_BTN_0,
175 &speyside_headset); 172 &speyside_headset);
176 if (ret) 173 if (ret)
177 return ret; 174 return ret;
@@ -227,7 +224,7 @@ static int speyside_wm9081_init(struct snd_soc_dapm_context *dapm)
227 snd_soc_dapm_nc_pin(dapm, "LINEOUT"); 224 snd_soc_dapm_nc_pin(dapm, "LINEOUT");
228 225
229 /* At any time the WM9081 is active it will have this clock */ 226 /* At any time the WM9081 is active it will have this clock */
230 return snd_soc_codec_set_sysclk(dapm->codec, WM9081_SYSCLK_MCLK, 227 return snd_soc_codec_set_sysclk(dapm->codec, WM9081_SYSCLK_MCLK, 0,
231 48000 * 256, 0); 228 48000 * 256, 0);
232} 229}
233 230
@@ -252,6 +249,7 @@ static const struct snd_kcontrol_new controls[] = {
252 SOC_DAPM_PIN_SWITCH("Main AMIC"), 249 SOC_DAPM_PIN_SWITCH("Main AMIC"),
253 SOC_DAPM_PIN_SWITCH("WM1250 Input"), 250 SOC_DAPM_PIN_SWITCH("WM1250 Input"),
254 SOC_DAPM_PIN_SWITCH("WM1250 Output"), 251 SOC_DAPM_PIN_SWITCH("WM1250 Output"),
252 SOC_DAPM_PIN_SWITCH("Headphone"),
255}; 253};
256 254
257static struct snd_soc_dapm_widget widgets[] = { 255static struct snd_soc_dapm_widget widgets[] = {