From patchwork Thu Feb 12 08:41:55 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Tomeu Vizoso X-Patchwork-Id: 439120 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 AA1B2140079 for ; Thu, 12 Feb 2015 19:43:17 +1100 (AEDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755321AbbBLImc (ORCPT ); Thu, 12 Feb 2015 03:42:32 -0500 Received: from mail-wg0-f51.google.com ([74.125.82.51]:55666 "EHLO mail-wg0-f51.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753026AbbBLIm3 (ORCPT ); Thu, 12 Feb 2015 03:42:29 -0500 Received: by mail-wg0-f51.google.com with SMTP id y19so8487321wgg.10; Thu, 12 Feb 2015 00:42:28 -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=ZfE4cpUHMH9AnEg6HXTE0QpO8WORJia3vn7UzMi1KV0=; b=HHoIyvQTWAMmBzGcd8Gftd6+TrthTRPA7rjL76EOGQ6Z6vMaCI32s+3CgsENLqmhbd vBlw9tkFrKvpAhfShILiksgjewggdOblCethGoHu6n+xIkXc1/2iQQAAB3+/9ut1zw3q flt0PrqfU0zca9QChk9qsn4CtJ6wM459VhCzzaIn2lwxXxrlktPxV/NLY6q1npisJJ2/ Dfld2m3LH1nqffjpZYHptucbD1aFXMcoy4Mky4cSizVExcnRWwUceiFHWP//uJGIWfua qAh0ZbgFh3eG0xmDJmQ8yTjZA59pPHO23JAM4/p8nMxOye1xA8avy3nGsQQwe9L5CNdM SRHQ== X-Received: by 10.194.84.176 with SMTP id a16mr5013405wjz.113.1423730548414; Thu, 12 Feb 2015 00:42:28 -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.25 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 12 Feb 2015 00:42:27 -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 , Lars-Peter Clausen , Dylan Reid , Wolfram Sang , alsa-devel@alsa-project.org, linux-tegra@vger.kernel.org Subject: [PATCH v2 1/3] ASoC: tegra: Expose Headphones pin to userspace Date: Thu, 12 Feb 2015 09:41:55 +0100 Message-Id: <1423730523-26266-2-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> 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 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 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"), };