Received: by 2002:a05:6358:7058:b0:131:369:b2a3 with SMTP id 24csp2290677rwp; Fri, 14 Jul 2023 04:04:33 -0700 (PDT) X-Google-Smtp-Source: APBJJlHRukaORgal6nV4Now31H5U06OJBER1RJXQ86hRSIJ3GdBduVbYhYMolwbSmshtfugTquMx X-Received: by 2002:a17:902:eccc:b0:1b8:5827:8763 with SMTP id a12-20020a170902eccc00b001b858278763mr5586469plh.4.1689332672896; Fri, 14 Jul 2023 04:04:32 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1689332672; cv=none; d=google.com; s=arc-20160816; b=KDXp02dqwcVEpXsZvWfoEPgtXG2ptQjpn4l36zTkFxAqkq0VFFpRrdXlBDmywPCjvp 2XsYrwr1iEzvCvj8X9obKKSzxusEKdO+algR9lXjj80yooeCs1kPk3oiwZl8hRfRUjM0 F8eSpIZuxMpZIGWO0GmSrHD+u0trByo5del1w4tZ07QlCAPRxI4o9dJEVpsWuGv5u0LT w9K86ZBPx9pEwo0V88uEwGWWYCuaciGh2EH2NHlgsEcQJh2uyQpeGTENbieDrXYDrkDo XwpZtqURn7WXhBeV+8NkoV5RJEH4Yv9roj1y7jN/cUyibol6AA0SEVpS3WyPbWv+vGq/ PbsQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=sMWthKr2GjaGHlLWBOzCX9J1EXDLeTqd//+CO2VbAuo=; fh=iLu8mJV3L09dzJN6VXkKj+SRT/C9p8fR4gJYErWu4bc=; b=ebTW8rxaxgHk26+adpedNcy0v2cJoOh2EDHyAts8X4HjFub33XewIz6xrlA4qL832W +TRDarNZOHBmwl3AYPVPPkQSCSO1cM4ALhvOeNzejeqeyXX7WPCdJ89FQqs7iQJ/xOXv 4gvbVcnmrojlElnQXBis36gdR5nFmigftNU6CT4lXDyTLE1lZZXrYJLBSF8lhDN0UNV4 aBAycNqIxoekhfuUT6lTLC+2Ba6DqWTEnO8LKpYSDYEi/f1I9A0M4hzGAd9tIFLGaKFr 51bHGRrHV+yFFIMYxXKmPG7oB4xncX/yUoZ+uCaczuhjzr1txeeIHm7muWe94YwI2jFF mOjQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=liq+fI10; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id u7-20020a170902e80700b001b9d4de4929si7397770plg.575.2023.07.14.04.04.21; Fri, 14 Jul 2023 04:04:32 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=liq+fI10; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S236269AbjGNK4T (ORCPT + 99 others); Fri, 14 Jul 2023 06:56:19 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:51526 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S236303AbjGNKzp (ORCPT ); Fri, 14 Jul 2023 06:55:45 -0400 Received: from mga04.intel.com (mga04.intel.com [192.55.52.120]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id CC7D835B5; Fri, 14 Jul 2023 03:55:39 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1689332139; x=1720868139; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=Gt1bM8Q/FD2VIOVF2wWpS3Dslq5MDz04LTOzsoLpYFY=; b=liq+fI10gHXRnSzhvEU6uYGSez5ZanjRb5VUP+QS+gzEdXVqnaHW6Wgb VdCHCWYiFfDRoefoDTQ4fLSrl4V91RL96pQyE4N2bM87hAerjcgE3SwQX GU0DeM2ounT8ltd1biFiQK9AL0ZiHpl/IsOD5YaReYIeQkdyckiWjrwvm nyUGBBPlWYLw+7X6d14yGjAyXk3YreBDhtI8Ivatjt0OWml/xFidy09CB K+Ojs/CwnV9QL6mCLv2gR3FvtKsMtKbyv3y+xkkbBElSIAos1qqWqWQBG KjcLUxmr95xcVsxM0MbYhL+LoAFUqUs4LdCZkTvbUwYV8h5z20e0rhO2Q w==; X-IronPort-AV: E=McAfee;i="6600,9927,10770"; a="364321237" X-IronPort-AV: E=Sophos;i="6.01,205,1684825200"; d="scan'208";a="364321237" Received: from orsmga002.jf.intel.com ([10.7.209.21]) by fmsmga104.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 14 Jul 2023 03:55:39 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10770"; a="722365600" X-IronPort-AV: E=Sophos;i="6.01,205,1684825200"; d="scan'208";a="722365600" Received: from dev2 (HELO DEV2.igk.intel.com) ([10.237.148.94]) by orsmga002.jf.intel.com with ESMTP; 14 Jul 2023 03:55:36 -0700 From: =?UTF-8?q?Amadeusz=20S=C5=82awi=C5=84ski?= To: Bjorn Helgaas , Mark Brown , Takashi Iwai Cc: alsa-devel@alsa-project.org, linux-pci@vger.kernel.org, linux-kernel@vger.kernel.org, Cezary Rojewski , Pierre-Louis Bossart , Kai Vehmanen , Andy Shevchenko , Hans de Goede , =?UTF-8?q?Amadeusz=20S=C5=82awi=C5=84ski?= , Andy Shevchenko Subject: [PATCH v2 12/15] ASoC: Intel: avs: Convert to PCI device IDs defines Date: Fri, 14 Jul 2023 20:56:12 +0200 Message-Id: <20230714185615.370597-13-amadeuszx.slawinski@linux.intel.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20230714185615.370597-1-amadeuszx.slawinski@linux.intel.com> References: <20230714185615.370597-1-amadeuszx.slawinski@linux.intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-2.4 required=5.0 tests=BAYES_00,DATE_IN_FUTURE_06_12, DKIMWL_WL_HIGH,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_EF,RCVD_IN_DNSWL_MED, SPF_HELO_NONE,SPF_NONE,T_SCC_BODY_TEXT_LINE,URIBL_BLOCKED autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Use PCI device IDs from pci_ids.h header. Adjust AVS_MACH_ENTRY() macro, so device ID can be provided in short form. Acked-by: Mark Brown Reviewed-by: Andy Shevchenko Signed-off-by: Amadeusz Sławiński --- sound/soc/intel/avs/board_selection.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/sound/soc/intel/avs/board_selection.c b/sound/soc/intel/avs/board_selection.c index 60f8fb0bff95..b32e02940e30 100644 --- a/sound/soc/intel/avs/board_selection.c +++ b/sound/soc/intel/avs/board_selection.c @@ -263,14 +263,14 @@ struct avs_acpi_boards { }; #define AVS_MACH_ENTRY(_id, _mach) \ - { .id = (_id), .machs = (_mach), } + { .id = PCI_DEVICE_ID_INTEL_##_id, .machs = (_mach), } /* supported I2S boards per platform */ static const struct avs_acpi_boards i2s_boards[] = { - AVS_MACH_ENTRY(0x9d70, avs_skl_i2s_machines), /* SKL */ - AVS_MACH_ENTRY(0x9d71, avs_kbl_i2s_machines), /* KBL */ - AVS_MACH_ENTRY(0x5a98, avs_apl_i2s_machines), /* APL */ - AVS_MACH_ENTRY(0x3198, avs_gml_i2s_machines), /* GML */ + AVS_MACH_ENTRY(HDA_SKL_LP, avs_skl_i2s_machines), + AVS_MACH_ENTRY(HDA_KBL_LP, avs_kbl_i2s_machines), + AVS_MACH_ENTRY(HDA_APL, avs_apl_i2s_machines), + AVS_MACH_ENTRY(HDA_GML, avs_gml_i2s_machines), {}, }; -- 2.34.1