Received: by 2002:ac0:a5a7:0:0:0:0:0 with SMTP id m36-v6csp1379900imm; Sat, 4 Aug 2018 02:11:42 -0700 (PDT) X-Google-Smtp-Source: AAOMgpfZTWpYf8tQtUQU2/xutXMKALnjfF68JGXjZ/razp5VemXTN6+jMoMJaA+6WhISWaXd4aHA X-Received: by 2002:a62:df82:: with SMTP id d2-v6mr8281359pfl.189.1533373902346; Sat, 04 Aug 2018 02:11:42 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1533373902; cv=none; d=google.com; s=arc-20160816; b=NYTdzTIqzPCq1PY8z36IW4qH0jrgZ6zVDDdwCxlawOsTQeknApOLWrY2C57vvQXYsA p1srOEBTKi/NzFTsYWYluRv+MxPgrH9y0/3c8uApnV+44JnpViE0FH9DthxyvSmTuhSJ okvnacHo0cx0WVjZh6ezxd38Kl2fIUeLxvFLDPaeulzoDDcbZLT6+BxZx3vlp8fsWaaM B5dUi6Cz9mYuE9rOtluMJXMxwW68ZqUDzKOQUoP1al0vWMtd83A9U5OodS7EeZ4S16XB UlPCDrBwNJznRWmb4+6SEgRs5A5AXtOR9fUzxcLIUKofVQvCJpNTxop9tc+AgWZV01b6 Uh/g== 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=Sfo2fWg25qdT1SGdlEqrELNGZOmh2c1ppa+KyaXtPtc=; b=g/G0nVBHpKYHVS10yiyBzmwHIUoPqZAXmlgi6ZdAgxDVv3O4NjZ548yPfyS5xoA6zc csLzoTt0lW7KvYR+bTCwdRHncBgPTmLFAnkAI4tQh4dgFoxuwMH+AwVIFfRnvWe6u3hj 0hnDXVAGO0liDHgPzYaePGAIHnVRclY7Ht+paXsi9YGHKf7wifMhRBKZfulaanETRuey Mr/JrDJURQcNJ30Y0CNSkmNLc1ugPr2jfg2IzT6RxKR6EqD73rCAFQMWYwZOAFOBTUP0 7qJcHofAP6gnnZVWEzKx4FsHSximstNan5m6BDusURsftXh8i9w3Qjbd2fIfQPVgl9qq sIkg== 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 h16-v6si6010502plr.445.2018.08.04.02.11.28; Sat, 04 Aug 2018 02:11:42 -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 S2388945AbeHDLKW (ORCPT + 99 others); Sat, 4 Aug 2018 07:10:22 -0400 Received: from mail.linuxfoundation.org ([140.211.169.12]:49990 "EHLO mail.linuxfoundation.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1732962AbeHDLKV (ORCPT ); Sat, 4 Aug 2018 07:10:21 -0400 Received: from localhost (D57E6652.static.ziggozakelijk.nl [213.126.102.82]) by mail.linuxfoundation.org (Postfix) with ESMTPSA id 9FF37BBF; Sat, 4 Aug 2018 09:10:21 +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.4 080/124] ALSA: hda/ca0132: fix build failure when a local macro is defined Date: Sat, 4 Aug 2018 11:01:09 +0200 Message-Id: <20180804082705.489853279@linuxfoundation.org> X-Mailer: git-send-email 2.18.0 In-Reply-To: <20180804082702.434482435@linuxfoundation.org> References: <20180804082702.434482435@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.4-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,