Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-2.2 required=3.0 tests=DKIM_SIGNED,DKIM_VALID, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS, USER_AGENT_SANE_1 autolearn=no autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 21719C47255 for ; Tue, 12 May 2020 01:09:35 +0000 (UTC) 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 mail.kernel.org (Postfix) with ESMTPS id 99955206B8 for ; Tue, 12 May 2020 01:09:34 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (1024-bit key) header.d=alsa-project.org header.i=@alsa-project.org header.b="JnFot/jR" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 99955206B8 Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=linux.intel.com Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=alsa-devel-bounces@alsa-project.org Received: from alsa1.perex.cz (alsa1.perex.cz [207.180.221.201]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by alsa0.perex.cz (Postfix) with ESMTPS id 06947165F; Tue, 12 May 2020 03:08:43 +0200 (CEST) DKIM-Filter: OpenDKIM Filter v2.11.0 alsa0.perex.cz 06947165F DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=alsa-project.org; s=default; t=1589245773; bh=dXiaKbBRlDP7/MIfltARTPNfmH3L+CaAbKR5BTYym9M=; h=Subject:To:References:From:Date:In-Reply-To:Cc:List-Id: List-Unsubscribe:List-Archive:List-Post:List-Help:List-Subscribe: From; b=JnFot/jRFVqpcMaBsllNxoLUAgxEvb7xDdhH/JolftFFgwb4eNRuT7M4eWIuQqpKS WsgapAAn7Zs0mky4Upk3YsZ91Kx2phDUs/1wYbOIML3xywyNej8ikED5h2uknFYaN2 JbK6vDw+Zxk+UP3Yp3ik1kdujnplR64Ob1JyXUas= Received: from alsa1.perex.cz (localhost.localdomain [127.0.0.1]) by alsa1.perex.cz (Postfix) with ESMTP id E7B11F80292; Tue, 12 May 2020 00:38:03 +0200 (CEST) Received: by alsa1.perex.cz (Postfix, from userid 50401) id 3B5A2F8028E; Tue, 12 May 2020 00:37:57 +0200 (CEST) Received: from mga14.intel.com (mga14.intel.com [192.55.52.115]) (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 DA894F8022D for ; Tue, 12 May 2020 00:37:53 +0200 (CEST) DKIM-Filter: OpenDKIM Filter v2.11.0 alsa1.perex.cz DA894F8022D IronPort-SDR: l+PyI0lUVodGN7peRfo17eMmxY2E4GWThMqOdZvy8hQAALz6Cl7sw9rRLUz8MeRAIvmRpltRh4 VsxgR1QgpOUQ== X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from fmsmga008.fm.intel.com ([10.253.24.58]) by fmsmga103.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 11 May 2020 15:37:48 -0700 IronPort-SDR: FpyUbbhO7b+rTkUsWdnC4dDRLIseVni1y0nhUT4jYNMZHhJ3zTqFPV4c4MFriYwleXaddBTjes 21Kb2FIMwBJw== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.73,381,1583222400"; d="scan'208";a="252717114" Received: from xshi16-mobl2.amr.corp.intel.com (HELO [10.254.96.249]) ([10.254.96.249]) by fmsmga008.fm.intel.com with ESMTP; 11 May 2020 15:37:47 -0700 Subject: Re: [PATCH v2 13/14] ASoC: amd: RN machine driver using dmic To: Alex Deucher , alsa-devel@alsa-project.org, broonie@kernel.org, vijendar.mukunda@amd.com, tiwai@suse.de References: <20200511212014.2359225-1-alexander.deucher@amd.com> <20200511212014.2359225-14-alexander.deucher@amd.com> From: Pierre-Louis Bossart Message-ID: Date: Mon, 11 May 2020 17:37:08 -0500 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.7.0 MIME-Version: 1.0 In-Reply-To: <20200511212014.2359225-14-alexander.deucher@amd.com> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit Cc: Alex Deucher X-BeenThere: alsa-devel@alsa-project.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: "Alsa-devel mailing list for ALSA developers - http://www.alsa-project.org" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: alsa-devel-bounces@alsa-project.org Sender: "Alsa-devel" > +static int acp_pdm_hw_params(struct snd_pcm_substream *substream, > + struct snd_pcm_hw_params *hw_params) > +{ > + return 0; > +} is this needed? > + > +static struct snd_soc_ops acp_pdm_ops = { > + .hw_params = acp_pdm_hw_params, > +}; > + > +static int acp_init(struct snd_soc_pcm_runtime *rtd) > +{ > + return 0; > +} is this needed? > +static struct platform_driver acp_mach_driver = { > + .driver = { > + .name = "acp_pdm_mach", > + .pm = &snd_soc_pm_ops, > + }, > + .probe = acp_probe, > +}; > + > +static int __init acp_audio_init(void) > +{ > + platform_driver_register(&acp_mach_driver); > + return 0; > +} > + > +static void __exit acp_audio_exit(void) > +{ > + platform_driver_unregister(&acp_mach_driver); > +} > + > +module_init(acp_audio_init); > +module_exit(acp_audio_exit); use module_platform_driver() - was already feedback on v1...