Received: by 2002:a05:7412:7c14:b0:fa:6e18:a558 with SMTP id ii20csp271911rdb; Mon, 22 Jan 2024 03:54:34 -0800 (PST) X-Google-Smtp-Source: AGHT+IEIA4i+0ts70d39TCJpAcKVX4ufm29ZoBbVKImhlrH6t3E1+2gX3GAhJGaQhZs5aCi6czn0 X-Received: by 2002:a0c:e3d1:0:b0:681:899c:fcec with SMTP id e17-20020a0ce3d1000000b00681899cfcecmr2977917qvl.120.1705924474180; Mon, 22 Jan 2024 03:54:34 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1705924474; cv=pass; d=google.com; s=arc-20160816; b=nOegaMDMhMPyF5dK+brAeR3LKRBBfAFiXTRImmwuIrwW3oOy+dkr1/phE+eheXqoBN zRPZHmu9oKT5xszYf+ZLFcotVapa9TjdKY1NhUb8uI4UDhDhP4LPYGihxNP5wqlNdcwo +d0k9iROmB6rK54uEyeJhyMLro79GOtT8jA1Z+IEDMOiSDDNcKPMXGxVbGqDg4rG78eF g6Euz9oUmd1nwu+mPdBlm/0ksEFG4iDm6jwuxhDACeRZXy564HF72eSJuWSRuRbcBWuT F75/RO6tesN+gfJ4swtdrs+Qq1MIvqOWIc3O3AUlEDZKc1ZYoRxWnVQEoEmRHdsM/Rtj 7cPg== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:date:message-id:dkim-signature; bh=DpxnPjq1Zm1hvZDzhZoYYM+YhGqagT68/Acs4xhbYoo=; fh=qNzmwZB6i/s028H9W+ZXhO9+Q8jzzfiIBCxFYD1+kAM=; b=MMwOTMjCwIRG7UZmMyInI23OZ60R7UUsOVtQnsXxWS/31A1AvMJCKlRdM/c5BeAAUM te7cqLCNfL+ATPhL+jTNNG8rz3ktEsXf5V4/8ZW3WTsclfOhV6/xJU93O7GskfU5cqfg aS9cRKBGK+g+2IuM4X+mw9XM3yxKmXV6ABfnVeQF5cUbcS0rhDV4iupUZHKCMg+geT94 CpMc2CAgS76+5UdkGnYXF4olPDzJyiMc5Xqs+j+6iYvc9K9WNMD20VRS9MFGJ5sKIsTu 20tp+Vh25fPk95S586FFLlWhVf6EcCnTf8ldcY8rXbkTi8cp4mtbjmRO+IzJy4HpGSIF 79Gg== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=lScOjwsO; arc=pass (i=1 dkim=pass dkdomain=intel.com dmarc=pass fromdomain=linux.intel.com); spf=pass (google.com: domain of linux-kernel+bounces-32974-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-32974-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [147.75.199.223]) by mx.google.com with ESMTPS id r5-20020a0cb285000000b00681959fffbbsi5535794qve.222.2024.01.22.03.54.34 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 22 Jan 2024 03:54:34 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-32974-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) client-ip=147.75.199.223; Authentication-Results: mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=lScOjwsO; arc=pass (i=1 dkim=pass dkdomain=intel.com dmarc=pass fromdomain=linux.intel.com); spf=pass (google.com: domain of linux-kernel+bounces-32974-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-32974-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ny.mirrors.kernel.org (Postfix) with ESMTPS id 245601C27C97 for ; Mon, 22 Jan 2024 11:53:39 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 8CF0E3A8FD; Mon, 22 Jan 2024 11:51:11 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com header.b="lScOjwsO" Received: from mgamail.intel.com (mgamail.intel.com [134.134.136.31]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 719B03A1A2; Mon, 22 Jan 2024 11:51:09 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=134.134.136.31 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1705924270; cv=none; b=K/xLeV5WPeE8KvGIcHhKjqKWN6sf2LZDa3CTrq90sKV3etF2W38kBdstsFzL8wiPWp0Q1hrADIf33GzQbe0woYo2t0za5hx/sJl9rkmd9xTrJGboo91lhrSnjUr5rHWZ29lbAu6Im0zClEXWoPHK36Z4Ci9tZKeUKPZbiychacU= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1705924270; c=relaxed/simple; bh=R5qPfOY2yMDbPjZwN9+6J1nkzleSUXE5Ry2YBndlaVo=; h=Message-ID:Date:MIME-Version:Subject:To:Cc:References:From: In-Reply-To:Content-Type; b=bO9r8WPNVsr9Yqoimf0Flr6mIbuc4nJkBmTP6WlcWc612+cfZgkeKnwasfPMncCEKSawsC2dcIIxKrIm2Qu9ZuCPMp9syesNYYv3Zhm0RwlL3DyvhfTI9Q8t2VdO9ja2ullzUBIOtEAIyL2dG1Nvrf7JweBg0/ZYoS5CN3CswRI= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.intel.com; spf=none smtp.mailfrom=linux.intel.com; dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com header.b=lScOjwsO; arc=none smtp.client-ip=134.134.136.31 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.intel.com Authentication-Results: smtp.subspace.kernel.org; spf=none smtp.mailfrom=linux.intel.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1705924268; x=1737460268; h=message-id:date:mime-version:subject:to:cc:references: from:in-reply-to:content-transfer-encoding; bh=R5qPfOY2yMDbPjZwN9+6J1nkzleSUXE5Ry2YBndlaVo=; b=lScOjwsO15dgV6/U9Jr6D6AiG6RXsHMo2oIKDO4ONi+J5trDGOISBIK7 ao+OCA9LGy3zpyQ+Dc6PqmButV+cETpFWO5BfDE197cKGkIzqf5Khgu+/ ldZqfDei4WN29Pn7AqEx1fcEXskF3sirwo8kjjTUjHoclVl1TA/6MlI4Y sDzgcaJuL4aQj5Ayqvidp4c1SBU/1E2s1pUB2d/uZIFSnLe5TUaaippZq lNUlnpnWFr2sdG21zAOX6jQnDD2w0xKoIp/UxkcNG/N/KRmow8jJjCVmx Qc4+poi/rrgHFZScfC3FHSHLPYwAxtZbXYhiSgGi3foYeLA9hOkl+IkOE g==; X-IronPort-AV: E=McAfee;i="6600,9927,10960"; a="465448306" X-IronPort-AV: E=Sophos;i="6.05,211,1701158400"; d="scan'208";a="465448306" Received: from fmsmga001.fm.intel.com ([10.253.24.23]) by orsmga104.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 22 Jan 2024 03:51:05 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10960"; a="928968630" X-IronPort-AV: E=Sophos;i="6.05,211,1701158400"; d="scan'208";a="928968630" Received: from aslawinx-mobl.ger.corp.intel.com (HELO [10.94.8.107]) ([10.94.8.107]) by fmsmga001-auth.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 22 Jan 2024 03:51:05 -0800 Message-ID: Date: Mon, 22 Jan 2024 12:51:03 +0100 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH 1/2] ALSA: hda: Replace numeric device IDs with constant values Content-Language: en-US To: Rui Salvaterra , tiwai@suse.com Cc: linux-sound@vger.kernel.org, linux-kernel@vger.kernel.org References: <20240122114512.55808-2-rsalvaterra@gmail.com> From: =?UTF-8?Q?Amadeusz_S=C5=82awi=C5=84ski?= In-Reply-To: <20240122114512.55808-2-rsalvaterra@gmail.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit On 1/22/2024 12:45 PM, Rui Salvaterra wrote: > We have self-explanatory constants for Intel HDA devices, let's use them instead > of magic numbers and code comments. > > Signed-off-by: Rui Salvaterra > --- > sound/pci/hda/hda_intel.c | 4 ++-- > 1 file changed, 2 insertions(+), 2 deletions(-) > > diff --git a/sound/pci/hda/hda_intel.c b/sound/pci/hda/hda_intel.c > index 2276adc84478..66f013ee160d 100644 > --- a/sound/pci/hda/hda_intel.c > +++ b/sound/pci/hda/hda_intel.c > @@ -1729,8 +1729,8 @@ static int default_bdl_pos_adj(struct azx *chip) > /* some exceptions: Atoms seem problematic with value 1 */ > if (chip->pci->vendor == PCI_VENDOR_ID_INTEL) { > switch (chip->pci->device) { > - case 0x0f04: /* Baytrail */ > - case 0x2284: /* Braswell */ > + case PCI_DEVICE_ID_INTEL_HDA_BYT: > + case PCI_DEVICE_ID_INTEL_HDA_BSW: > return 32; > } > } Reviewed-by: Amadeusz Sławiński