From patchwork Wed Jan 28 10:51:04 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Tomeu Vizoso X-Patchwork-Id: 5727811 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 E4676BF440 for ; Wed, 28 Jan 2015 10:52:49 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 2AF7720107 for ; Wed, 28 Jan 2015 10:52:49 +0000 (UTC) Received: from alsa0.perex.cz (alsa0.perex.cz [77.48.224.243]) by mail.kernel.org (Postfix) with ESMTP id 07C6A20259 for ; Wed, 28 Jan 2015 10:52:48 +0000 (UTC) Received: by alsa0.perex.cz (Postfix, from userid 1000) id 1DC66261A0E; Wed, 28 Jan 2015 11:52:47 +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 201B9261A3B; Wed, 28 Jan 2015 11:52:33 +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 4DAC0261A64; Wed, 28 Jan 2015 11:52:31 +0100 (CET) Received: from mail-wi0-f182.google.com (mail-wi0-f182.google.com [209.85.212.182]) by alsa0.perex.cz (Postfix) with ESMTP id A83C92619FF for ; Wed, 28 Jan 2015 11:52:17 +0100 (CET) Received: by mail-wi0-f182.google.com with SMTP id n3so10902867wiv.3 for ; Wed, 28 Jan 2015 02:52:17 -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=z+HeBFXVE2JNM8VPvAevLvDw9n3Yl90qs8JBK6JDhRo=; b=k99dUc7vYJZ8V7o+G5KD3kLDq9NUXijMA1fJ3wTsWuDSr/JUsXPxT0RzAbqkyJB5Pz RQarycc8+6yVt85oI2oG5Pq9P39d1gYWyEBnrhiwJy2twUyF4FqreLT/Ahiz76Nhyh7r G7ANrsQG45+adEptjaXcSm5dY35d9pezXl31sPGfUXEzK38Sj5P5pZY1gOMaiBusXeni PMs5scVP7ze+a2hiD/ImVRt77fueUU25vizn896KDaYWrkWIhFni4itMHo7XT4PFdj2A MeS2wU5O6ovJusY/78Ihf1uRLI+EyAwcAuCzbuIHqSxrEpn1+INbwewYGScmBRc9GJtW e0xg== X-Received: by 10.180.211.169 with SMTP id nd9mr5822783wic.4.1422442337252; Wed, 28 Jan 2015 02:52:17 -0800 (PST) Received: from cizrna.lan (37-48-33-238.tmcz.cz. [37.48.33.238]) by mx.google.com with ESMTPSA id cy8sm2257004wib.9.2015.01.28.02.52.14 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 28 Jan 2015 02:52:16 -0800 (PST) From: Tomeu Vizoso To: linux-kernel@vger.kernel.org Date: Wed, 28 Jan 2015 11:51:04 +0100 Message-Id: <1422442278-10405-7-git-send-email-tomeu.vizoso@collabora.com> X-Mailer: git-send-email 1.9.3 In-Reply-To: <1422442278-10405-1-git-send-email-tomeu.vizoso@collabora.com> References: <1422442278-10405-1-git-send-email-tomeu.vizoso@collabora.com> Cc: Alexandre Courbot , alsa-devel@alsa-project.org, Lars-Peter Clausen , Tomeu Vizoso , Stephen Warren , Andrew Bresticker , Simon Glass , Wolfram Sang , Liam Girdwood , Takashi Iwai , Mark Brown , Thierry Reding , linux-tegra@vger.kernel.org, Dylan Reid , Javier Martinez Canillas Subject: [alsa-devel] [PATCH v3 06/10] ASoC: tegra: Add a control for the headphone switch 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 To be used by userspace when the headphones jack is plugged in. Signed-off-by: Tomeu Vizoso --- 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 af3fb99..8df71a4 100644 --- a/sound/soc/tegra/tegra_max98090.c +++ b/sound/soc/tegra/tegra_max98090.c @@ -136,6 +136,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"), };