Received: by 2002:a05:6358:d09b:b0:dc:cd0c:909e with SMTP id jc27csp3114834rwb; Fri, 16 Dec 2022 10:14:24 -0800 (PST) X-Google-Smtp-Source: AA0mqf7R3H8MlaMq0WVOUuFMv1FOUwGaUpYYj97eyAl+oMTaBTT5xYiHOnn+HytMzdm6Y4DL+F/b X-Received: by 2002:a17:906:144f:b0:7c1:28a9:c277 with SMTP id q15-20020a170906144f00b007c128a9c277mr30415438ejc.6.1671214464614; Fri, 16 Dec 2022 10:14:24 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1671214464; cv=none; d=google.com; s=arc-20160816; b=aOvRGTdIf2CD0P7fp5vCNdMjGg2qks+dPgPC6K3O1XzvikhUvbzu9jSnZsUJ4aDwv/ lMn49SXNtlmTtAJdGI28l22GHAUpGeY3wZIrTAFPU1dFrpH4Rl2G7lNti1emJz2DkA0s jcGFQAWJ5KXGpwlijd2PGtabjtaiBHeM3lJ4TAZ4yXtqgzE57rqSlxmFzQlxs+wJuD9T xo5JzElH+rUTkpvLNCK6mD8yTGC5YeBzIf70E6k8YS/UnlV6C2smXxvIW+e0sJvNo7zu KZpVlFyY0KkSdGtS9z2grWGyv2RsmGepn6jN+ClwNQCBPwTAOHABTiCrO2IGVtO3TMvD im9g== 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=jnB3Fx85bAvIolahJP0HoRxTlxNY7hDke8Jln8tEll8=; b=bMNuZuslnoZHq+qU18Lp1YUVZxti5FvnAiB0Dwjg/CYmq2znlTPQdR0BLeY9wd8F/e MAyWlwiy9X/sOEu+PUbOw8VcnQz+WDkb966HEqV55cZ1A6FG4r8nHdaeZPcqwBFXzKR2 Y1Wf+Tcq9novmnad/zzYR2ar/Hee+fiqQe+fbct2KGS9Y0qfGsbyQ2xktrkJWIqAAPnO NmD1TyO75tsoXj97PBfJg/7uJZtBw0TgCnmK4fl/39TxiReyauJpmvDIwBoBTgmHIssc wB+KUpMJBjkOxOzaeAwNqD80ycSQO5D3Q7dOTC7fAS2sDRgmHkYnlFiDYGsSk2z9WWCH Di5A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=CTit5uW6; 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 sd34-20020a1709076e2200b007824b85978asi3493975ejc.81.2022.12.16.10.14.07; Fri, 16 Dec 2022 10:14:24 -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=CTit5uW6; 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 S231727AbiLPRhH (ORCPT + 68 others); Fri, 16 Dec 2022 12:37:07 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:46526 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231743AbiLPRhA (ORCPT ); Fri, 16 Dec 2022 12:37:00 -0500 Received: from mga07.intel.com (mga07.intel.com [134.134.136.100]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id B192A164A9 for ; Fri, 16 Dec 2022 09:36:59 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1671212219; x=1702748219; h=message-id:date:mime-version:subject:to:cc:references: from:in-reply-to:content-transfer-encoding; bh=yXW+wV+UgSM2VSneYgwaMavVBMwnnak5JNaby2zZkUY=; b=CTit5uW6eaCNF3GDuV3ogc0CGpP47y7jEnc5IqivZxUflrtrn1AQRrbi pNHMtWvdfU+apTma+/51JOtLB40j8ngwT44h+8XGki1p/Vl6uQppLJmbq yNhGVqa2R34+uWWLUPTUIaZ2tOSoDACjxbJSntITKeO+Y5utstFJYFFc1 qFCNmSjuv1raEioETZqUYxESXvE5M9HVA24RZlYPYLVQn4/qaq40lQCP1 eAj7rJ2bFA+ixUQOlKi3nFzSaeF7LSugUi50dtOTgyFfKy/+ymOY1C6nr 0k4gh3DyDHb3Im7oU4UCtiAjfRrdd8vaw8Vrg15DAvqAPYGpx1oC0RaLQ g==; X-IronPort-AV: E=McAfee;i="6500,9779,10563"; a="383352498" X-IronPort-AV: E=Sophos;i="5.96,249,1665471600"; d="scan'208";a="383352498" Received: from fmsmga007.fm.intel.com ([10.253.24.52]) by orsmga105.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 16 Dec 2022 09:36:59 -0800 X-IronPort-AV: E=McAfee;i="6500,9779,10563"; a="651997543" X-IronPort-AV: E=Sophos;i="5.96,249,1665471600"; d="scan'208";a="651997543" Received: from krojasle-mobl.amr.corp.intel.com (HELO [10.209.187.31]) ([10.209.187.31]) by fmsmga007-auth.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 16 Dec 2022 09:36:57 -0800 Message-ID: <9aa4bffd-bc7e-0e40-3063-5ce80b5fbe9a@linux.intel.com> Date: Fri, 16 Dec 2022 11:36:56 -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 Cc: Libin Yang , "balamurugan . c" , Cezary Rojewski , Kai Vehmanen , Bard Liao , Takashi Iwai , linux-kernel@vger.kernel.org, Liam Girdwood , Mark Brown , Muralidhar Reddy , Ranjani Sridharan , Akihiko Odaki , ye xingchen , David Lin , alsa-devel@alsa-project.org, Peter Ujfalusi , Brent Lu , Yong Zhi References: <20221216154938.9426-1-ajye_huang@compal.corp-partner.google.com> From: Pierre-Louis Bossart In-Reply-To: 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 10:55, Ajye Huang wrote: > Hi Pierre > > On Sat, Dec 17, 2022 at 12:03 AM Pierre-Louis Bossart > wrote: > >> 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? > > Really , it has two speakers. The nau8318 is an auto mode Amplifier > chip, similar to the max98360a amp chip. > EX: Sof_maxim_common.c (sound\soc\intel\boards): > static struct snd_soc_dai_link_component max_98360a_components[] = { > { > .name = MAX_98360A_DEV0_NAME, > .dai_name = MAX_98357A_CODEC_DAI, > } > }; > It is not an i2c interface, from the nau8318 data sheet, there are > five pins used mainly. one for enable, others for I2S. > EN-- enable pin > FSR-- Frame Sync, Right > FSL-- Frame Sync, Left > BCLK-- bit clock > DACIN-- Input i2s data > > The FSR and FSL pins are for Left and Right channels used. > thanks Ok, thanks for the explanations. Acked-by: Pierre-Louis Bossart