Received: by 2002:ac0:a5a7:0:0:0:0:0 with SMTP id m36-v6csp1112474imm; Wed, 1 Aug 2018 10:22:57 -0700 (PDT) X-Google-Smtp-Source: AAOMgpfw6sqhaC13Kab8tXJj1aM3HOEZm24Vr+uzw44u/zY227+axx4oH/T0ARUMIkl/7PcfoTon X-Received: by 2002:a63:d20e:: with SMTP id a14-v6mr25411815pgg.226.1533144177319; Wed, 01 Aug 2018 10:22:57 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1533144177; cv=none; d=google.com; s=arc-20160816; b=XsCQR8ZodiVRhqrw+GbePRZXSR+s56xX/DkB2O6c2X4VBpgi20yqKlcGCi7gMih+cm l04m4lSY7RZDsTkJooXD18SVxHAuagY4d8yDh8KdtEAl8mIpsqNT3kTZYgYhe3mAuV+V uCbZjJtCyVqYKij5SNO6hBkPU3ZcLZdTKFIoaR5SloYtNkyEpxGQ3GnbqRnOl76pYvLn t7JHAp6CoX/f+byMvlH3JEyxcPbO2xg0ofcMlmwsJNgKcm83Pof/X/ytQD/1iTrYnAw2 0qH7IcXBFianiQ978tjXPnccqMEiMQdMUKBaKu2zj/cAt0mwm6nNZTm3AznBNqNbtRTV D7WA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:user-agent:references :in-reply-to:message-id:date:subject:cc:to:from :arc-authentication-results; bh=Ac0bC3vtdUWh44TgMf21k6M5AFXMSbAgzONhkmh3sFU=; b=a33zs5viaYAui1MbvMoho2Fy+WjmAgIp1oF2jUWiJ2ZcijN72S00QyUK048aA8azBu FZmIaitz68EVqJbK3MHa+503uP/sKUZqQCwkzIMKvDYOtfvKUunI/NnNuKKK5qpI5QeA gdpBsUsSioepie4n5PkLXkL0OoK7+M/ERtMzfGfpLY4k2A/ZOP1Db4WJ4Y6VifVRNahd zJql3H58AfsP0lCLFOjQ2G5qQog0yFQGdWXgDMMFmT6oVAbyBPkH5BnoChQKHXG5ACW5 fdvi/dPGy8xvvTU7hf8du9lp280jLstBjoYKnIbjpq2bIfo0HfzuUzoguO03qDkj4jm8 E50Q== 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 y23-v6si17116540pli.389.2018.08.01.10.22.43; Wed, 01 Aug 2018 10:22:57 -0700 (PDT) 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 S2405388AbeHATHF (ORCPT + 99 others); Wed, 1 Aug 2018 15:07:05 -0400 Received: from mail.linuxfoundation.org ([140.211.169.12]:49112 "EHLO mail.linuxfoundation.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2404659AbeHATHE (ORCPT ); Wed, 1 Aug 2018 15:07:04 -0400 Received: from localhost (D57E6652.static.ziggozakelijk.nl [213.126.102.82]) by mail.linuxfoundation.org (Postfix) with ESMTPSA id A7B0ED00; Wed, 1 Aug 2018 17:20:23 +0000 (UTC) From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Connor McAdams , Takashi Sakamoto , Takashi Iwai , Sasha Levin Subject: [PATCH 4.14 172/246] ALSA: hda/ca0132: fix build failure when a local macro is defined Date: Wed, 1 Aug 2018 18:51:22 +0200 Message-Id: <20180801165019.967034156@linuxfoundation.org> X-Mailer: git-send-email 2.18.0 In-Reply-To: <20180801165011.700991984@linuxfoundation.org> References: <20180801165011.700991984@linuxfoundation.org> User-Agent: quilt/0.65 X-stable: review MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 4.14-stable review patch. If anyone has any objections, please let me know. ------------------ From: Takashi Sakamoto [ Upstream commit 8e142e9e628975b0dddd05cf1b095331dff6e2de ] 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: Sasha Levin Signed-off-by: Greg Kroah-Hartman --- 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 @@ -3067,8 +3071,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,