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.6 required=3.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,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 87ABBC433E0 for ; Thu, 18 Jun 2020 15:11:47 +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 0B54A2080D for ; Thu, 18 Jun 2020 15:11:47 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (1024-bit key) header.d=alsa-project.org header.i=@alsa-project.org header.b="L3b5PSoa"; dkim=pass (1024-bit key) header.d=kernel.org header.i=@kernel.org header.b="QIgmFzH5" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 0B54A2080D Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=kernel.org 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 7037F1794; Thu, 18 Jun 2020 17:10:55 +0200 (CEST) DKIM-Filter: OpenDKIM Filter v2.11.0 alsa0.perex.cz 7037F1794 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=alsa-project.org; s=default; t=1592493105; bh=ilUjh+1fMtsBdASwEcZ/FBsOFEadEcz3dcp1AKOPWRE=; h=Date:From:To:Subject:References:In-Reply-To:Cc:List-Id: List-Unsubscribe:List-Archive:List-Post:List-Help:List-Subscribe: From; b=L3b5PSoaul2ieig65G+kMR2aukRmFvX9nnJ8jnNBv6Z10zM+UXOmBYM+mxAE5jzka y8sB1GJXkBrU0YcFFuyeu/krkuRQaDKfCx57DLuu4TCvAeoXeGLaVP70FSME4/Od0T omKhfEgb8R5UrffM8C+DmDLUv8sR7G//J/ygPVXE= Received: from alsa1.perex.cz (localhost.localdomain [127.0.0.1]) by alsa1.perex.cz (Postfix) with ESMTP id ECCC9F8010E; Thu, 18 Jun 2020 17:10:54 +0200 (CEST) Received: by alsa1.perex.cz (Postfix, from userid 50401) id 07A51F80116; Thu, 18 Jun 2020 17:10:53 +0200 (CEST) Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by alsa1.perex.cz (Postfix) with ESMTPS id 97EE3F800EF for ; Thu, 18 Jun 2020 17:10:50 +0200 (CEST) DKIM-Filter: OpenDKIM Filter v2.11.0 alsa1.perex.cz 97EE3F800EF Authentication-Results: alsa1.perex.cz; dkim=pass (1024-bit key) header.d=kernel.org header.i=@kernel.org header.b="QIgmFzH5" Received: from localhost (fw-tnat.cambridge.arm.com [217.140.96.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id D1AB320656; Thu, 18 Jun 2020 15:10:47 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1592493048; bh=ilUjh+1fMtsBdASwEcZ/FBsOFEadEcz3dcp1AKOPWRE=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=QIgmFzH5j7oO/i75teOmeK/NTtzkRjFjKx6xIKxO/GP9Uai6qJXPWWBsjj/uKwjp4 fYHlNsYzf1cqtVN6Eesqka/Cy2HSBWZxxtgsHyVPmPVmIDQOdD4e24NLvt9tdR7WI6 Rf263Nof9sXPn+8YANlJTO3w89VLoQc6MSI2muCE= Date: Thu, 18 Jun 2020 16:10:46 +0100 From: Mark Brown To: Pierre-Louis Bossart Subject: Re: [PATCH] ASoC: codecs: Added MAX98373 Soundwire Driver Message-ID: <20200618151046.GK5789@sirena.org.uk> References: <20200617163015.16809-1-pierre-louis.bossart@linux.intel.com> <20200618110902.GE5789@sirena.org.uk> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="n83H03bbH672hrlY" Content-Disposition: inline In-Reply-To: X-Cookie: Androphobia: User-Agent: Mutt/1.10.1 (2018-07-13) Cc: Guennadi Liakhovetski , alsa-devel@alsa-project.org, Ryan Lee , tiwai@suse.de, gregkh@linuxfoundation.org, vkoul@kernel.org, Naveen Manohar , Bard liao , Rander Wang 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" --n83H03bbH672hrlY Content-Type: text/plain; charset=us-ascii Content-Disposition: inline On Thu, Jun 18, 2020 at 07:42:25AM -0500, Pierre-Louis Bossart wrote: > > The DT bindings need updating to add SoundWire support. > Interesting. The properties are the same in I2C and SoundWire mode, so would > we need a completely different file that just specifies the SoundWire > DeviceID, e.g. > properties: > compatible: > const: sdw10217201000 > What's the process for such dual-mode devices? I'd hope it could be added to the existing bindings document like for other dual bus devices. > > > + regmap_write(max98373->regmap, > > > + MAX98373_R203D_AMP_DIG_VOL_CTRL, > > > + 0x00); > > > + regmap_write(max98373->regmap, > > > + MAX98373_R203E_AMP_PATH_GAIN, > > > + 0x00); > > I'd expect these to be chip defaults, especially the volumes. > The same sequence is already used in the I2C probe. if this needs to change, > it's got to be applied for both cases. Yes, it should. > We should probably cut the common parts out, as done for rt5682. Ryan, can > you look into this. Indeed. --n83H03bbH672hrlY Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQEzBAABCgAdFiEEreZoqmdXGLWf4p/qJNaLcl1Uh9AFAl7rg/UACgkQJNaLcl1U h9Bz3gf/Y4gNoCL7tKJQ4Q47CVeVvFVeO91LUoOXowzeKhdSCZq9fcjulWbFk5Cn ddCd3ICTOp9Qfc+KXxHV/y/BJUnNh10tT4dyrwWLEeZ+9AkDa4Pt9BQEywCyHBxV 4r5db+On5gROQzzZgUBpkc6cWRz1XINfb+hu88u0/EaRwiFbN0s/per//s5Vtior nuw0IU82/4WCEqOcPc8Hnrxwl6Bj8L34uLyrX7p1ARb5fhDcib4qs/bsfMsY/ZxI 9U3v6UQfRhOJ7DHqvr2QhG6yq6dxShJ1DyAoI0Nk8xrOZQl3+3o3K6Zf+o/eoNze hO+Ut1D6J8iBxDlSz0gNg519I0B6Rw== =dSXx -----END PGP SIGNATURE----- --n83H03bbH672hrlY--