From patchwork Wed Feb 11 14:49:52 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Tomeu Vizoso X-Patchwork-Id: 438802 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by ozlabs.org (Postfix) with ESMTP id 108C914028E for ; Thu, 12 Feb 2015 01:52:06 +1100 (AEDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752973AbbBKOvC (ORCPT ); Wed, 11 Feb 2015 09:51:02 -0500 Received: from mail-we0-f182.google.com ([74.125.82.182]:52791 "EHLO mail-we0-f182.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751157AbbBKOvA (ORCPT ); Wed, 11 Feb 2015 09:51:00 -0500 Received: by mail-we0-f182.google.com with SMTP id l61so3882158wev.13; Wed, 11 Feb 2015 06:50:58 -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=sUXWyCEXF50KdSW0Zch48hwByLOMcv4Oq02oI/ZOD4M=; b=r7ck4HQeWwuzP9vb4dX9XL7BolTeeSFWlcc1lxgEA7LTIosXkxNiof3gc89DnuHFch K6EdKjRRb4k1pQVUBT3Fl6MvicwkAo19ZBkzdYkCGEEWjhDre574E/bIif1Izll74TZK /Qul5eFYMFo/OYIb4rNnAKP8+stX61Bs16OLyI/DuEQ6TRPKlda77ScqpIFY2bOLvk3w eELTl91gXzOjLYDBnUAK8aaX+7+xXdb4dvJqAog3TIlgEBsb2FaY40RVyU5HKglR51/0 ka11sFJCJnwWvr0qqeZivCKH+U9RToMuYt4yCwbmpI5EAdDfSb0pZdAZxavm9cGKrgJr MRbw== X-Received: by 10.194.109.9 with SMTP id ho9mr62544394wjb.29.1423666258790; Wed, 11 Feb 2015 06:50:58 -0800 (PST) Received: from cizrna.lan (37-48-32-149.tmcz.cz. [37.48.32.149]) by mx.google.com with ESMTPSA id ch6sm1614075wjc.3.2015.02.11.06.50.56 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 11 Feb 2015 06:50:57 -0800 (PST) From: Tomeu Vizoso To: linux-kernel@vger.kernel.org Cc: Javier Martinez Canillas , Tomeu Vizoso , Liam Girdwood , Mark Brown , Jaroslav Kysela , Takashi Iwai , Stephen Warren , Thierry Reding , Alexandre Courbot , Wolfram Sang , Dylan Reid , Lars-Peter Clausen , alsa-devel@alsa-project.org, linux-tegra@vger.kernel.org Subject: [PATCH 1/3] ASoC: tegra: Expose Headphones pin to userspace Date: Wed, 11 Feb 2015 15:49:52 +0100 Message-Id: <1423666200-32365-2-git-send-email-tomeu.vizoso@collabora.com> X-Mailer: git-send-email 1.9.3 In-Reply-To: <1423666200-32365-1-git-send-email-tomeu.vizoso@collabora.com> References: <1423666200-32365-1-git-send-email-tomeu.vizoso@collabora.com> Sender: linux-tegra-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-tegra@vger.kernel.org So userspace can enable or disable it based on the current policy. 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"), };