From patchwork Thu Feb 12 08:41:57 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Tomeu Vizoso X-Patchwork-Id: 5818171 Return-Path: X-Original-To: patchwork-alsa-devel@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork2.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.136]) by patchwork2.web.kernel.org (Postfix) with ESMTP id 64681BF440 for ; Thu, 12 Feb 2015 08:45:03 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id A437B2021B for ; Thu, 12 Feb 2015 08:45:02 +0000 (UTC) Received: from alsa0.perex.cz (alsa0.perex.cz [77.48.224.243]) by mail.kernel.org (Postfix) with ESMTP id 8E011201FA for ; Thu, 12 Feb 2015 08:45:01 +0000 (UTC) Received: by alsa0.perex.cz (Postfix, from userid 1000) id 86DC12651B2; Thu, 12 Feb 2015 09:45:00 +0100 (CET) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Spam-Status: No, score=-1.8 required=5.0 tests=BAYES_00,DKIM_SIGNED, T_DKIM_INVALID,UNPARSEABLE_RELAY autolearn=no version=3.3.1 Received: from alsa0.perex.cz (localhost [IPv6:::1]) by alsa0.perex.cz (Postfix) with ESMTP id 94EC926516E; Thu, 12 Feb 2015 09:43:51 +0100 (CET) X-Original-To: alsa-devel@alsa-project.org Delivered-To: alsa-devel@alsa-project.org Received: by alsa0.perex.cz (Postfix, from userid 1000) id 0FF2A2651D1; Thu, 12 Feb 2015 09:43:50 +0100 (CET) Received: from mail-wg0-f54.google.com (mail-wg0-f54.google.com [74.125.82.54]) by alsa0.perex.cz (Postfix) with ESMTP id 25D4E26517E for ; Thu, 12 Feb 2015 09:42:39 +0100 (CET) Received: by mail-wg0-f54.google.com with SMTP id y19so8463178wgg.13 for ; Thu, 12 Feb 2015 00:42:38 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=sender:from:to:cc:subject:date:message-id:in-reply-to:references; bh=whA+iSMTYz9w7xGal37/xauAFYOExcmHptqPzLPAtk4=; b=vw0DGgbaAqm/nj1mYeiiWXH4VPPm1Q20/RFk2RGUYsgkNNv7mdCoxk/LbqIVVUzwJw XJLJ6jIyntGNwp9rwoP1Ib96kxqVQCu8/iTHOIw7zRi9ia4y1cl/DaF50U17prLeKP0i CiB08T0wg2jQ8BG1lI5SvxSrXV7ck+Er6Md3odaq98HuilcTD1k7HRUuIpy33aGXASII Bf/QQ0tg7r0vLAmikXADNWqk0ig+KNk/c2mAdSLrvst5k5HURBHmwFVhQDrz8wxlqZ+B xsWwlZHBWxKqeC5MTwTXMYx5KrXSYXN9MqwpX4HZGEqvxfMwq/lYu8pjzJ8QDTtE+rmW PmyA== X-Received: by 10.194.24.103 with SMTP id t7mr5283749wjf.15.1423730558878; Thu, 12 Feb 2015 00:42:38 -0800 (PST) Received: from cizrna.lan (37-48-47-45.tmcz.cz. [37.48.47.45]) by mx.google.com with ESMTPSA id jg3sm1580612wid.0.2015.02.12.00.42.36 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 12 Feb 2015 00:42:38 -0800 (PST) From: Tomeu Vizoso To: linux-kernel@vger.kernel.org Date: Thu, 12 Feb 2015 09:41:57 +0100 Message-Id: <1423730523-26266-4-git-send-email-tomeu.vizoso@collabora.com> X-Mailer: git-send-email 1.9.3 In-Reply-To: <1423730523-26266-1-git-send-email-tomeu.vizoso@collabora.com> References: <1423730523-26266-1-git-send-email-tomeu.vizoso@collabora.com> Cc: Alexandre Courbot , alsa-devel@alsa-project.org, Lars-Peter Clausen , Tomeu Vizoso , Stephen Warren , Takashi Iwai , Wolfram Sang , Liam Girdwood , Mark Brown , Thierry Reding , linux-tegra@vger.kernel.org, Dylan Reid , Javier Martinez Canillas Subject: [alsa-devel] [PATCH v2 3/3] ASoC: tegra: Add control for the Mic Jack pin X-BeenThere: alsa-devel@alsa-project.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: "Alsa-devel mailing list for ALSA developers - http://www.alsa-project.org" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Errors-To: alsa-devel-bounces@alsa-project.org Sender: alsa-devel-bounces@alsa-project.org X-Virus-Scanned: ClamAV using ClamSMTP So userspace can enable and disable the external microphone. Signed-off-by: Tomeu Vizoso Acked-by: Stephen Warren --- sound/soc/tegra/tegra_max98090.c | 1 + 1 file changed, 1 insertion(+) diff --git a/sound/soc/tegra/tegra_max98090.c b/sound/soc/tegra/tegra_max98090.c index 29ea87c..1f20c2c 100644 --- a/sound/soc/tegra/tegra_max98090.c +++ b/sound/soc/tegra/tegra_max98090.c @@ -139,6 +139,7 @@ static const struct snd_soc_dapm_widget tegra_max98090_dapm_widgets[] = { static const struct snd_kcontrol_new tegra_max98090_controls[] = { SOC_DAPM_PIN_SWITCH("Headphones"), SOC_DAPM_PIN_SWITCH("Speakers"), + SOC_DAPM_PIN_SWITCH("Mic Jack"), SOC_DAPM_PIN_SWITCH("Int Mic"), };