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.c11
1 files changed, 5 insertions, 6 deletions
diff --git a/sound/soc/samsung/speyside.c b/sound/soc/samsung/speyside.c
index 590e9274b062..85bf541a771d 100644
--- a/sound/soc/samsung/speyside.c
+++ b/sound/soc/samsung/speyside.c
@@ -13,6 +13,7 @@
13#include <sound/soc-dapm.h> 13#include <sound/soc-dapm.h>
14#include <sound/jack.h> 14#include <sound/jack.h>
15#include <linux/gpio.h> 15#include <linux/gpio.h>
16#include <linux/module.h>
16 17
17#include "../codecs/wm8996.h" 18#include "../codecs/wm8996.h"
18#include "../codecs/wm9081.h" 19#include "../codecs/wm9081.h"
@@ -125,10 +126,6 @@ static struct snd_soc_jack_pin speyside_headset_pins[] = {
125 .pin = "Headset Mic", 126 .pin = "Headset Mic",
126 .mask = SND_JACK_MICROPHONE, 127 .mask = SND_JACK_MICROPHONE,
127 }, 128 },
128 {
129 .pin = "Headphone",
130 .mask = SND_JACK_HEADPHONE,
131 },
132}; 129};
133 130
134/* Default the headphone selection to active high */ 131/* Default the headphone selection to active high */
@@ -171,7 +168,8 @@ static int speyside_wm8996_init(struct snd_soc_pcm_runtime *rtd)
171 gpio_direction_output(WM8996_HPSEL_GPIO, speyside_jack_polarity); 168 gpio_direction_output(WM8996_HPSEL_GPIO, speyside_jack_polarity);
172 169
173 ret = snd_soc_jack_new(codec, "Headset", 170 ret = snd_soc_jack_new(codec, "Headset",
174 SND_JACK_HEADSET | SND_JACK_BTN_0, 171 SND_JACK_LINEOUT | SND_JACK_HEADSET |
172 SND_JACK_BTN_0,
175 &speyside_headset); 173 &speyside_headset);
176 if (ret) 174 if (ret)
177 return ret; 175 return ret;
@@ -227,7 +225,7 @@ static int speyside_wm9081_init(struct snd_soc_dapm_context *dapm)
227 snd_soc_dapm_nc_pin(dapm, "LINEOUT"); 225 snd_soc_dapm_nc_pin(dapm, "LINEOUT");
228 226
229 /* At any time the WM9081 is active it will have this clock */ 227 /* At any time the WM9081 is active it will have this clock */
230 return snd_soc_codec_set_sysclk(dapm->codec, WM9081_SYSCLK_MCLK, 228 return snd_soc_codec_set_sysclk(dapm->codec, WM9081_SYSCLK_MCLK, 0,
231 48000 * 256, 0); 229 48000 * 256, 0);
232} 230}
233 231
@@ -252,6 +250,7 @@ static const struct snd_kcontrol_new controls[] = {
252 SOC_DAPM_PIN_SWITCH("Main AMIC"), 250 SOC_DAPM_PIN_SWITCH("Main AMIC"),
253 SOC_DAPM_PIN_SWITCH("WM1250 Input"), 251 SOC_DAPM_PIN_SWITCH("WM1250 Input"),
254 SOC_DAPM_PIN_SWITCH("WM1250 Output"), 252 SOC_DAPM_PIN_SWITCH("WM1250 Output"),
253 SOC_DAPM_PIN_SWITCH("Headphone"),
255}; 254};
256 255
257static struct snd_soc_dapm_widget widgets[] = { 256static struct snd_soc_dapm_widget widgets[] = {