From patchwork Mon Jul 28 12:26:49 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Michael Nazzareno Trimarchi X-Patchwork-Id: 4634041 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.19.201]) by patchwork2.web.kernel.org (Postfix) with ESMTP id 5C348C0338 for ; Mon, 28 Jul 2014 12:27:19 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 93098201B9 for ; Mon, 28 Jul 2014 12:27:18 +0000 (UTC) Received: from alsa0.perex.cz (alsa0.perex.cz [77.48.224.243]) by mail.kernel.org (Postfix) with ESMTP id D03282017E for ; Mon, 28 Jul 2014 12:27:15 +0000 (UTC) Received: by alsa0.perex.cz (Postfix, from userid 1000) id F2AE926511F; Mon, 28 Jul 2014 14:27:14 +0200 (CEST) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,NO_DNS_FOR_FROM, UNPARSEABLE_RELAY autolearn=no version=3.3.1 Received: from alsa0.perex.cz (localhost [IPv6:::1]) by alsa0.perex.cz (Postfix) with ESMTP id C946D26501B; Mon, 28 Jul 2014 14:27:03 +0200 (CEST) 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 19185265080; Mon, 28 Jul 2014 14:27:02 +0200 (CEST) Received: from mail-wi0-f177.google.com (mail-wi0-f177.google.com [209.85.212.177]) by alsa0.perex.cz (Postfix) with ESMTP id 27F89261740 for ; Mon, 28 Jul 2014 14:26:54 +0200 (CEST) Received: by mail-wi0-f177.google.com with SMTP id ho1so4251906wib.4 for ; Mon, 28 Jul 2014 05:26:53 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=qZcfC0saYSUutImbj65aIV2U8g0hhmvx9vgY4RPaCwk=; b=UcTgv1BL9UE9Av2U7g0gkLQRsUdPsRP8HNVq0OB5JXEjMoHsY1GaG+Oynl7IzFu/Zw L6UClQiLtanBgCCWbUsULAPQSH1Hees5Q/oDPkkOhCUQKtI32qPLv0wUrkCnFpotvHtR SY4/wCyNJlChH8H9siVcJnXanREeok0hJf/aIRx5iBWRI3uHBG4OIQ+AoDMFIWEkeyuA 3ulAS22zY++cX1L8S19nXNcssbWMlbEicxm1qPexOxJpDoPR6f2/SDReKl4LYfJsf5Jh S/fxypGlYlsLL5OmDrZFYJ5yNRGTTIlgr3Ls2qPl+lqxj7qNdUd47HxIqhYkWeuNxLy1 c9GQ== X-Gm-Message-State: ALoCoQntfVDYedSn5yFUylid+GJhJ0p2CRlAGnzbgSjqmdYayDn3f8sBVWSfFNdOnkEFGrvOOCVn X-Received: by 10.194.62.140 with SMTP id y12mr49622431wjr.27.1406550413762; Mon, 28 Jul 2014 05:26:53 -0700 (PDT) Received: from localhost.localdomain (nat-cataldo.sssup.it. [193.205.81.5]) by mx.google.com with ESMTPSA id g8sm30856263wib.18.2014.07.28.05.26.52 for (version=TLSv1.1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Mon, 28 Jul 2014 05:26:53 -0700 (PDT) From: Michael Trimarchi To: Mark Brown Date: Mon, 28 Jul 2014 14:26:49 +0200 Message-Id: <1406550409-13798-2-git-send-email-michael@amarulasolutions.com> X-Mailer: git-send-email 1.8.1.2 In-Reply-To: <1406550409-13798-1-git-send-email-michael@amarulasolutions.com> References: <1406550409-13798-1-git-send-email-michael@amarulasolutions.com> Cc: alsa-devel@alsa-project.org, Liam Girdwood Subject: [alsa-devel] [PATCH 2/2] ASoC: pcm1792a: Add controls for output invert and rolloff 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 Signed-off-by: Michael Trimarchi --- sound/soc/codecs/pcm1792a.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/sound/soc/codecs/pcm1792a.c b/sound/soc/codecs/pcm1792a.c index 3a80ba4..8f6a602 100644 --- a/sound/soc/codecs/pcm1792a.c +++ b/sound/soc/codecs/pcm1792a.c @@ -36,6 +36,7 @@ #define PCM1792A_DAC_VOL_LEFT 0x10 #define PCM1792A_DAC_VOL_RIGHT 0x11 #define PCM1792A_FMT_CONTROL 0x12 +#define PCM1792A_MODE_CONTROL 0x13 #define PCM1792A_SOFT_MUTE PCM1792A_FMT_CONTROL #define PCM1792A_FMT_MASK 0x70 @@ -164,6 +165,8 @@ static const struct snd_kcontrol_new pcm1792a_controls[] = { SOC_DOUBLE_R_RANGE_TLV("DAC Playback Volume", PCM1792A_DAC_VOL_LEFT, PCM1792A_DAC_VOL_RIGHT, 0, 0xf, 0xff, 0, pcm1792a_dac_tlv), + SOC_SINGLE("DAC Invert output Switch", PCM1792A_MODE_CONTROL, 7, 1, 0), + SOC_SINGLE("DAC Rolloff Filter Switch", PCM1792A_MODE_CONTROL, 1, 1, 0), }; static const struct snd_soc_dapm_widget pcm1792a_dapm_widgets[] = {