From patchwork Thu Nov 2 12:46:59 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?q?Amadeusz_S=C5=82awi=C5=84ski?= X-Patchwork-Id: 740489 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from alsa0.perex.cz (alsa0.perex.cz [77.48.224.243]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 2E504C4332F for ; Thu, 2 Nov 2023 12:49:36 +0000 (UTC) Received: from alsa1.perex.cz (alsa1.perex.cz [207.180.221.201]) (using TLSv1.2 with cipher ADH-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by alsa0.perex.cz (Postfix) with ESMTPS id 944CA9F6; Thu, 2 Nov 2023 13:48:43 +0100 (CET) DKIM-Filter: OpenDKIM Filter v2.11.0 alsa0.perex.cz 944CA9F6 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=alsa-project.org; s=default; t=1698929373; bh=4nPZ7xDUIWcmdOQqijIDcTxtbV4o1xLQJCT4uCpz+Nw=; h=From:To:Cc:Subject:Date:In-Reply-To:References:List-Id: List-Archive:List-Help:List-Owner:List-Post:List-Subscribe: List-Unsubscribe:From; b=E3cmgNBaO4VOnuZpIOuMv/R978BtpN6RSSa04ZoXLTZJONF/gleRUcFLk+Dow34BS tmlEFtSFlAmmvFVhC29+5+qziWmuX3ddKvOf8wgrVvxCZm70Zuya3WaNv2sck4Ia4v sBBYyKu3uMfBM3WzAgARvM+DJyJz7XuEkSTSvJpE= Received: by alsa1.perex.cz (Postfix, from userid 50401) id D80CFF8059F; Thu, 2 Nov 2023 13:47:29 +0100 (CET) Received: from mailman-core.alsa-project.org (mailman-core.alsa-project.org [10.254.200.10]) by alsa1.perex.cz (Postfix) with ESMTP id E7E03F80563; Thu, 2 Nov 2023 13:47:28 +0100 (CET) Received: by alsa1.perex.cz (Postfix, from userid 50401) id 4D9CFF80558; Thu, 2 Nov 2023 13:47:18 +0100 (CET) Received: from mgamail.intel.com (mgamail.intel.com [198.175.65.9]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by alsa1.perex.cz (Postfix) with ESMTPS id D523AF80537 for ; Thu, 2 Nov 2023 13:47:11 +0100 (CET) DKIM-Filter: OpenDKIM Filter v2.11.0 alsa1.perex.cz D523AF80537 Authentication-Results: alsa1.perex.cz; dkim=pass (2048-bit key, unprotected) header.d=intel.com header.i=@intel.com header.a=rsa-sha256 header.s=Intel header.b=LTIUJ05n DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1698929233; x=1730465233; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=4nPZ7xDUIWcmdOQqijIDcTxtbV4o1xLQJCT4uCpz+Nw=; b=LTIUJ05njhYGmX29fFZR9C8G9oAx/2GEaS32gUHWqZbyhEqyz2QfqyOi dgQXZPy0wIlrx0yIA1ww+AfjT/4AjqY1WB/uatonAuewUxg/uI1te4jCY /NQne1vBa0l+3fFQWdDFICVJl9/a24gjG8M9szswi71zGy7PxzaFxPPaA mqvOrqfwyJNZWREhajnRVIdMvi2AVJWVUOgjyNvEftuv6ciJbfuMwZUZx YWqkYF9reGRMs27M8mehnneLD/dTdKzHYsBQJfxGGPWgdztr0Gl/k59/C F7d1LdIBLQWTnVozZEap4omYTVvifFIcmoCP0DTDkHK+ofgzF7H3/Rt+4 g==; X-IronPort-AV: E=McAfee;i="6600,9927,10881"; a="7343489" X-IronPort-AV: E=Sophos;i="6.03,271,1694761200"; d="scan'208";a="7343489" Received: from fmsmga006.fm.intel.com ([10.253.24.20]) by orvoesa101.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 02 Nov 2023 05:47:11 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10881"; a="1008454739" X-IronPort-AV: E=Sophos;i="6.03,271,1694761200"; d="scan'208";a="1008454739" Received: from dev2 (HELO DEV2.igk.intel.com) ([10.237.148.94]) by fmsmga006.fm.intel.com with ESMTP; 02 Nov 2023 05:47:09 -0700 From: =?utf-8?q?Amadeusz_S=C5=82awi=C5=84ski?= To: Mark Brown Cc: Cezary Rojewski , Takashi Iwai , Jaroslav Kysela , alsa-devel@alsa-project.org, linux-sound@vger.kernel.org, Krzysztof Kozlowski , =?utf-8?q?Amadeusz_S=C5=82awi=C5=84s?= =?utf-8?q?ki?= Subject: [PATCH 04/17] ASoC: Intel: avs: hdaudio: Add proper id_table Date: Thu, 2 Nov 2023 13:46:59 +0100 Message-Id: <20231102124712.2549327-5-amadeuszx.slawinski@linux.intel.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20231102124712.2549327-1-amadeuszx.slawinski@linux.intel.com> References: <20231102124712.2549327-1-amadeuszx.slawinski@linux.intel.com> MIME-Version: 1.0 Message-ID-Hash: HLTPW52CC2Y4W2PZOZDC5XMIGE5MXO75 X-Message-ID-Hash: HLTPW52CC2Y4W2PZOZDC5XMIGE5MXO75 X-MailFrom: amadeuszx.slawinski@linux.intel.com X-Mailman-Rule-Misses: dmarc-mitigation; no-senders; approved; emergency; loop; banned-address; member-moderation; header-match-alsa-devel.alsa-project.org-0; header-match-alsa-devel.alsa-project.org-1; nonmember-moderation; administrivia; implicit-dest; max-recipients; max-size; news-moderation; no-subject; digests; suspicious-header X-Mailman-Version: 3.3.8 Precedence: list List-Id: "Alsa-devel mailing list for ALSA developers - http://www.alsa-project.org" Archived-At: List-Archive: List-Help: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: Add id_table and use it instead of alias to load module. Suggested-by: Krzysztof Kozlowski Reviewed-by: Cezary Rojewski Signed-off-by: Amadeusz Sławiński --- sound/soc/intel/avs/boards/hdaudio.c | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/sound/soc/intel/avs/boards/hdaudio.c b/sound/soc/intel/avs/boards/hdaudio.c index 8876558f19a1..844a918f9a81 100644 --- a/sound/soc/intel/avs/boards/hdaudio.c +++ b/sound/soc/intel/avs/boards/hdaudio.c @@ -218,12 +218,21 @@ static int avs_hdaudio_probe(struct platform_device *pdev) return devm_snd_soc_register_card(dev, card); } +static const struct platform_device_id avs_hdaudio_driver_ids[] = { + { + .name = "avs_hdaudio", + }, + {}, +}; +MODULE_DEVICE_TABLE(platform, avs_hdaudio_driver_ids); + static struct platform_driver avs_hdaudio_driver = { .probe = avs_hdaudio_probe, .driver = { .name = "avs_hdaudio", .pm = &snd_soc_pm_ops, }, + .id_table = avs_hdaudio_driver_ids, }; module_platform_driver(avs_hdaudio_driver) @@ -231,4 +240,3 @@ module_platform_driver(avs_hdaudio_driver) MODULE_DESCRIPTION("Intel HD-Audio machine driver"); MODULE_AUTHOR("Cezary Rojewski "); MODULE_LICENSE("GPL"); -MODULE_ALIAS("platform:avs_hdaudio");