Received: by 2002:a05:6358:d09b:b0:dc:cd0c:909e with SMTP id jc27csp2985178rwb; Fri, 16 Dec 2022 08:45:54 -0800 (PST) X-Google-Smtp-Source: AA0mqf7gRE9Oq1jk7fCF6uW4geoNrlTE5pSmD9AbGmfpvOJy55jGT2I/GlrlZADBN/i0uS5bBl/H X-Received: by 2002:a05:6a20:9e46:b0:aa:23e1:f8ce with SMTP id mt6-20020a056a209e4600b000aa23e1f8cemr45398600pzb.59.1671209154171; Fri, 16 Dec 2022 08:45:54 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1671209154; cv=none; d=google.com; s=arc-20160816; b=HrfoMdGkW9u+xa3pag0AFcdcAMQ2rF8qXCUoJ+NZoOJwOvqTEDh6KAF22q4Hatj/J2 Rr+cImf8Kb6JhRF5+sEq8kD+SZqA00094uBA5IUCFM+XSE/p1G2F7hMa3Jy+foQmw/8C 4ui7AWSMKS7OFHpGbW/Ya2MyZYss5p5eHr3XM7Bc+HXGf5GyR45YenqCJe7QVBGjGhgt 4cJu487ziNELNd2j+rFC+mRxW2Nph9WeJ+Cu6qRGxDa8xYjV+xoBK3XwxKskGJ0wdByG /RLFTwYN/EZUn02LDrmVKNBvS0qdOUi0Wpi44Zopgp/WfjtoqL+oDyVzvghtjk2+F1aD AiFw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :references:cc:to:content-language:subject:user-agent:mime-version :date:message-id:dkim-signature; bh=2slUImOlODfusp4Kow6jDh1TKF+YMDrt8q7HIys/0aU=; b=g02mMI5abuWXyLiq0FnToJBMxP6TF7r0z2lx4CKdd/5iNF4Jv5tLBnGUyj/kR9xVRw BrJpplBj/HZUW5QE0aWPT3qLQox4mCzmxxSrGifwaWl6Oupx4ZwQ/R8rKcJlKDTCAuox CkCmg8T17hrKAPMH/rO0OlOzXCPnyVD9pThK1Yo3hFgyiCM4XwgUJqZqXr+oKjdgKY4Q HEaoseD44fnsnhZgZQF7bIDFztTs09w6eJqHKdZ7w3Ctgyf7Uvcis55whiDmx+aK3Lsl 3tviaYopctPvyQc/mlVFHJKVtOERdNQ/KxXHG5Rg1ynbniVrTTTpD9g9uY/Aa3ghjhIS T7wQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=Trr81rJ5; 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 p20-20020a63c154000000b00479018cf915si3019421pgi.492.2022.12.16.08.45.45; Fri, 16 Dec 2022 08:45:54 -0800 (PST) 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=Trr81rJ5; 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 S231737AbiLPQGz (ORCPT + 69 others); Fri, 16 Dec 2022 11:06:55 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:42880 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231624AbiLPQGM (ORCPT ); Fri, 16 Dec 2022 11:06:12 -0500 Received: from mga07.intel.com (mga07.intel.com [134.134.136.100]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id DF88062D9 for ; Fri, 16 Dec 2022 08:03:06 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1671206586; x=1702742586; h=message-id:date:mime-version:subject:to:cc:references: from:in-reply-to:content-transfer-encoding; bh=lF4vw7e9EdXWDJLOD83gO5PEMesX68FvheF+irKVV2g=; b=Trr81rJ5nzMPMshoemErIiuV2IdEgWV9syPe5c1l3Nbj3c8XLYPv72WM u8BJ2jQphzIpppbYf56MEZcpT4kgBf04Kc17fl2748T4rKrEnz59EMW45 WTxAn3f4i73Vbf+nW6sLKVm+aC9kkQwANPyzYxc4sCSxyQ6HKax5Zs6SY +x8tS4hxzE7HBjIYkMH2q9u65H25p4OiAHvktWSW09CqlD9AxB6cHyfSX izPjh+8ddkvmZva1Az32RSf/nvZVD/1ipSVG8DjCdT6Gfppj5WMH30KQM 7h2VyOYpW7HmxjAEqdcyIV2PhBVPBDJx7zwWt0qqAmMASwMyZ4PsxyJSq w==; X-IronPort-AV: E=McAfee;i="6500,9779,10563"; a="383327925" X-IronPort-AV: E=Sophos;i="5.96,249,1665471600"; d="scan'208";a="383327925" Received: from orsmga005.jf.intel.com ([10.7.209.41]) by orsmga105.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 16 Dec 2022 08:03:06 -0800 X-IronPort-AV: E=McAfee;i="6500,9779,10563"; a="824148061" X-IronPort-AV: E=Sophos;i="5.96,249,1665471600"; d="scan'208";a="824148061" Received: from krojasle-mobl.amr.corp.intel.com (HELO [10.209.187.31]) ([10.209.187.31]) by orsmga005-auth.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 16 Dec 2022 08:03:04 -0800 Message-ID: Date: Fri, 16 Dec 2022 10:03:03 -0600 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Firefox/102.0 Thunderbird/102.4.2 Subject: Re: [PATCH v2] ASoC: Intel: sof_nau8825: add variant with nau8318 amplifier. Content-Language: en-US To: Ajye Huang , linux-kernel@vger.kernel.org Cc: Mark Brown , Bard Liao , Peter Ujfalusi , Liam Girdwood , Akihiko Odaki , Yong Zhi , ye xingchen , Muralidhar Reddy , "balamurugan . c" , Libin Yang , Jaroslav Kysela , Ranjani Sridharan , Cezary Rojewski , David Lin , Brent Lu , Takashi Iwai , Kai Vehmanen , alsa-devel@alsa-project.org References: <20221216154938.9426-1-ajye_huang@compal.corp-partner.google.com> From: Pierre-Louis Bossart In-Reply-To: <20221216154938.9426-1-ajye_huang@compal.corp-partner.google.com> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-4.3 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_EF,NICE_REPLY_A,RCVD_IN_DNSWL_MED, SPF_HELO_NONE,SPF_NONE 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 On 12/16/22 09:49, Ajye Huang wrote: > This patch adds the driver data for two nau8318 speaker amplifiers on > SSP1 and nau8825 on SSP0 for ADL platform. So here you are making reference to two amplifiers... > +static struct snd_soc_dai_link_component nau8318_components[] = { > + { > + .name = "NVTN2012:00", > + .dai_name = "nau8315-hifi", > + } > +}; but here there's only one? I was expecting something like what we've used for Maxim amplifiers with a codec configuration and dailink components that list the two amplifiers. static struct snd_soc_codec_conf max_98373_codec_conf[] = { { .dlc = COMP_CODEC_CONF(MAX_98373_DEV0_NAME), .name_prefix = "Right", }, { .dlc = COMP_CODEC_CONF(MAX_98373_DEV1_NAME), .name_prefix = "Left", }, }; struct snd_soc_dai_link_component max_98373_components[] = { { /* For Right */ .name = MAX_98373_DEV0_NAME, .dai_name = MAX_98373_CODEC_DAI, }, { /* For Left */ .name = MAX_98373_DEV1_NAME, .dai_name = MAX_98373_CODEC_DAI, }, }; Or is this a commit message problem and there's really only one amplifier? > + > static struct snd_soc_dai_link_component dummy_component[] = { > { > .name = "snd-soc-dummy", > @@ -486,6 +494,11 @@ static struct snd_soc_dai_link *sof_card_dai_links_create(struct device *dev, > max_98360a_dai_link(&links[id]); > } else if (sof_nau8825_quirk & SOF_RT1015P_SPEAKER_AMP_PRESENT) { > sof_rt1015p_dai_link(&links[id]); > + } else if (sof_nau8825_quirk & > + SOF_NAU8318_SPEAKER_AMP_PRESENT) { > + links[id].codecs = nau8318_components; > + links[id].num_codecs = ARRAY_SIZE(nau8318_components); > + links[id].init = speaker_codec_init; The rest looks fine, I only have this one/two amplifier question.