From: Mark Brown Date: Thu, 4 Aug 2011 09:13:45 +0000 (+0900) Subject: ASoC: Allow userspace control of Speyside headphone output X-Git-Url: http://git.cdn.openwrt.org/?a=commitdiff_plain;h=68d5a59e0ceb69fe8e4123666d9398c3c1331d8a;p=openwrt%2Fstaging%2Fblogic.git ASoC: Allow userspace control of Speyside headphone output In order to facilitate the widest range of use cases (especially things like speakerphone) allow the headphone output to be enabled and disabled by the application layer. Signed-off-by: Mark Brown Acked-by: Liam Girdwood --- diff --git a/sound/soc/samsung/speyside.c b/sound/soc/samsung/speyside.c index 590e9274b062..bfed1ff7093f 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[] = { .pin = "Headset Mic", .mask = SND_JACK_MICROPHONE, }, - { - .pin = "Headphone", - .mask = SND_JACK_HEADPHONE, - }, }; /* Default the headphone selection to active high */ @@ -252,6 +248,7 @@ static const struct snd_kcontrol_new controls[] = { SOC_DAPM_PIN_SWITCH("Main AMIC"), SOC_DAPM_PIN_SWITCH("WM1250 Input"), SOC_DAPM_PIN_SWITCH("WM1250 Output"), + SOC_DAPM_PIN_SWITCH("Headphone"), }; static struct snd_soc_dapm_widget widgets[] = {