From patchwork Sat Jun 25 04:58:09 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Alexander Shiyan X-Patchwork-Id: 9198405 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id E38BC60754 for ; Sat, 25 Jun 2016 04:58:45 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id BD67F284EA for ; Sat, 25 Jun 2016 04:58:45 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 9DD98284F0; Sat, 25 Jun 2016 04:58:45 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-1.8 required=2.0 tests=BAYES_00,DKIM_SIGNED, FREEMAIL_FROM, RCVD_IN_DNSWL_NONE, T_DKIM_INVALID autolearn=no version=3.3.1 Received: from alsa0.perex.cz (alsa0.perex.cz [77.48.224.243]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 65D92284EA for ; Sat, 25 Jun 2016 04:58:43 +0000 (UTC) Received: by alsa0.perex.cz (Postfix, from userid 1000) id 0D1CF26546D; Sat, 25 Jun 2016 06:58:42 +0200 (CEST) Received: from alsa0.perex.cz (localhost [127.0.0.1]) by alsa0.perex.cz (Postfix) with ESMTP id DA5A52650FA; Sat, 25 Jun 2016 06:58:33 +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 DE021265191; Sat, 25 Jun 2016 06:58:31 +0200 (CEST) Received: from smtp41.i.mail.ru (smtp41.i.mail.ru [94.100.177.101]) by alsa0.perex.cz (Postfix) with ESMTP id 6287B261B01 for ; Sat, 25 Jun 2016 06:58:24 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=mail.ru; s=mail2; h=Message-Id:Date:Subject:Cc:To:From; bh=KsadWR393JPPkpkwJ8zS5laPhULW1xLZQ+wzNcK3xsM=; b=m2PV6IA8lS0y/Rjnj5lSKggC4dNITIK8BskunQt2ONHiFaHG0evXAF43i9Cf7HBapMb9/cSeafK3M7aZ1s8SSL/uiXdvX1qmcKvpnptRyyBBjsjukCXvT/0wvQACUMujFIVlDQNCMRNrjs4+gqNwmMtt1h0zYM4zlDu6oEbMWbg=; Received: from [5.18.96.7] (port=43186 helo=shc.zet) by smtp41.i.mail.ru with esmtpa (envelope-from ) id 1bGffi-0000Lb-Uk; Sat, 25 Jun 2016 07:58:23 +0300 From: Alexander Shiyan To: alsa-devel@alsa-project.org Date: Sat, 25 Jun 2016 07:58:09 +0300 Message-Id: <1466830689-31587-1-git-send-email-shc_work@mail.ru> X-Mailer: git-send-email 2.4.9 X-Mras: OK Cc: Alexander Shiyan , patches@opensource.wolfsonmicro.com, Takashi Iwai , Liam Girdwood , Mark Brown Subject: [alsa-devel] [PATCH 1/2] ASoC: codecs: wm8753: Replace magic number 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 Use SND_SOC_NOPM constant, instead of -1. Signed-off-by: Alexander Shiyan --- sound/soc/codecs/wm8753.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sound/soc/codecs/wm8753.c b/sound/soc/codecs/wm8753.c index 6f1024f..9f851b8 100644 --- a/sound/soc/codecs/wm8753.c +++ b/sound/soc/codecs/wm8753.c @@ -486,7 +486,7 @@ SND_SOC_DAPM_DAC("Voice DAC", "Voice Playback", WM8753_PWR1, 4, 0), SND_SOC_DAPM_OUTPUT("MONO1"), SND_SOC_DAPM_MUX("Mono 2 Mux", SND_SOC_NOPM, 0, 0, &wm8753_mono2_controls), SND_SOC_DAPM_OUTPUT("MONO2"), -SND_SOC_DAPM_MIXER("Out3 Left + Right", -1, 0, 0, NULL, 0), +SND_SOC_DAPM_MIXER("Out3 Left + Right", SND_SOC_NOPM, 0, 0, NULL, 0), SND_SOC_DAPM_MUX("Out3 Mux", SND_SOC_NOPM, 0, 0, &wm8753_out3_controls), SND_SOC_DAPM_PGA("Out 3", WM8753_PWR3, 4, 0, NULL, 0), SND_SOC_DAPM_OUTPUT("OUT3"),