Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp3319003imu; Sun, 11 Nov 2018 12:16:05 -0800 (PST) X-Google-Smtp-Source: AJdET5euuAcf4LkIVMUlOLTTl2Vrg0MNwN9klHdPMDq6scxWu/q7Y2J7k4+GFg4BzZ0NNjwXMtLE X-Received: by 2002:a62:250:: with SMTP id 77-v6mr17911787pfc.16.1541967365298; Sun, 11 Nov 2018 12:16:05 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1541967365; cv=none; d=google.com; s=arc-20160816; b=ZG8EMxMJsC+QYbX5HzA34rZpNyPKOIlcjU4Tcfk5RSSHec1PbIFFoBn1A9Wy4MH51y Arbj0goCNaRYtJXbVmPzUvl1hvRcK8jFC4M0crSSBxNez7QklQIUBGukn1f2pEtZ/lsI DQ034xmS1nbudvYWAphyGTFygVeVqRfdBy7JdSFf186URd/ola3S7P4+CVKEZPYJVz7f TaTD3hQWikwn6mlT9DEtRgU8Tv/SWeaksNuDkvNluIo/PZRKFeuayyiw/rc0dDiQs8to eZCqwEF613fDxiZU5Y1KSpXGylzHkTsV9IafxPPDoJ2xqRzFHwv0RBl/0GThDWefAnZm 4BvA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:in-reply-to:subject:message-id:date:cc:to :from:mime-version:content-transfer-encoding:content-disposition; bh=6kG7nGCnwBMIZ5uT4HzB6aXp2u5oTF2watgdD/om1uY=; b=y/v5Fhvt82JyAsTrj/DJ1EGyEjIcB0P60ogHPQ9xVON05CoM5WWU5Hd+i/J4bih47O 1qL0n9ffC58ulggoNA1sv58TVPqxjGmBQyjxebjjYQ1vUXC91meFfq3IUglL+vhiYqaR vtSkAd3L68QfMWOj4+jOfcbaCDBUrkezI82C9cGyqj8Cj+nQzgSskUkkj2cEC+7zOYlI PkJCezi5nxgV8Oiw6H2lOCwbymIea7wf5xP1ikU6WLhaGDZEE+KEW0mI/jicrg2D4yxO exME4dqOPgfdPPBPXeHsADF3C29JN7EMGIfubM0I+MA4PF6SGjPHHOEzHlim8wng2p+O o3yw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id v19-v6si15716469pfn.26.2018.11.11.12.15.50; Sun, 11 Nov 2018 12:16:05 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1730910AbeKLGDq (ORCPT + 99 others); Mon, 12 Nov 2018 01:03:46 -0500 Received: from shadbolt.e.decadent.org.uk ([88.96.1.126]:52822 "EHLO shadbolt.e.decadent.org.uk" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726816AbeKLGDq (ORCPT ); Mon, 12 Nov 2018 01:03:46 -0500 Received: from [192.168.4.242] (helo=deadeye) by shadbolt.decadent.org.uk with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.89) (envelope-from ) id 1gLvtD-0000l8-Ks; Sun, 11 Nov 2018 19:59:23 +0000 Received: from ben by deadeye with local (Exim 4.91) (envelope-from ) id 1gLvsO-0001OW-9Q; Sun, 11 Nov 2018 19:58:32 +0000 Content-Type: text/plain; charset="UTF-8" Content-Disposition: inline Content-Transfer-Encoding: 8bit MIME-Version: 1.0 From: Ben Hutchings To: linux-kernel@vger.kernel.org, stable@vger.kernel.org CC: akpm@linux-foundation.org, "Takashi Iwai" , "Takashi Sakamoto" , "Connor McAdams" Date: Sun, 11 Nov 2018 19:49:05 +0000 Message-ID: X-Mailer: LinuxStableQueue (scripts by bwh) Subject: [PATCH 3.16 031/366] ALSA: hda/ca0132: fix build failure when a local macro is defined In-Reply-To: X-SA-Exim-Connect-IP: 192.168.4.242 X-SA-Exim-Mail-From: ben@decadent.org.uk X-SA-Exim-Scanned: No (on shadbolt.decadent.org.uk); SAEximRunCond expanded to false Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 3.16.61-rc1 review patch. If anyone has any objections, please let me know. ------------------ From: Takashi Sakamoto commit 8e142e9e628975b0dddd05cf1b095331dff6e2de upstream. DECLARE_TLV_DB_SCALE (alias of SNDRV_CTL_TLVD_DECLARE_DB_SCALE) is used but tlv.h is not included. This causes build failure when local macro is defined by comment-out. This commit fixes the bug. At the same time, the alias macro is replaced with a destination macro added at a commit 46e860f76804 ("ALSA: rename TLV-related macros so that they're friendly to user applications") Reported-by: Connor McAdams Fixes: 44f0c9782cc6 ('ALSA: hda/ca0132: Add tuning controls') Signed-off-by: Takashi Sakamoto Signed-off-by: Takashi Iwai Signed-off-by: Ben Hutchings --- sound/pci/hda/patch_ca0132.c | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) --- a/sound/pci/hda/patch_ca0132.c +++ b/sound/pci/hda/patch_ca0132.c @@ -38,6 +38,10 @@ /* Enable this to see controls for tuning purpose. */ /*#define ENABLE_TUNING_CONTROLS*/ +#ifdef ENABLE_TUNING_CONTROLS +#include +#endif + #define FLOAT_ZERO 0x00000000 #define FLOAT_ONE 0x3f800000 #define FLOAT_TWO 0x40000000 @@ -3037,8 +3041,8 @@ static int equalizer_ctl_put(struct snd_ return 1; } -static const DECLARE_TLV_DB_SCALE(voice_focus_db_scale, 2000, 100, 0); -static const DECLARE_TLV_DB_SCALE(eq_db_scale, -2400, 100, 0); +static const SNDRV_CTL_TLVD_DECLARE_DB_SCALE(voice_focus_db_scale, 2000, 100, 0); +static const SNDRV_CTL_TLVD_DECLARE_DB_SCALE(eq_db_scale, -2400, 100, 0); static int add_tuning_control(struct hda_codec *codec, hda_nid_t pnid, hda_nid_t nid,