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.5 required=3.0 tests=DKIM_SIGNED,DKIM_VALID, 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 8DE05C433DF for ; Thu, 18 Jun 2020 11:16:40 +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 1757C207E8 for ; Thu, 18 Jun 2020 11:16:40 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (1024-bit key) header.d=alsa-project.org header.i=@alsa-project.org header.b="BgqU+SQy"; dkim=fail reason="signature verification failed" (1024-bit key) header.d=kernel.org header.i=@kernel.org header.b="O6AbxAxV" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 1757C207E8 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 AE58116CB; Thu, 18 Jun 2020 13:15:48 +0200 (CEST) DKIM-Filter: OpenDKIM Filter v2.11.0 alsa0.perex.cz AE58116CB DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=alsa-project.org; s=default; t=1592478998; bh=UT1FJJxUaRXffXu0wgBanfwio7zzEycd0uxbxe6JEGo=; h=Date:From:To:Subject:References:In-Reply-To:Cc:List-Id: List-Unsubscribe:List-Archive:List-Post:List-Help:List-Subscribe: From; b=BgqU+SQy0R1XlrX1wpDadWW5GHBvw3czAHD+WNc+G9VB1IwdIJQwi8jextFMQ25Kw 9o0Pciw0fOcf8yZM4luxbR0EPr/z2KeRNABGWmkfn7b1GP885wsWc1w2iOTS6DO/Mc quWpdQ1rj0btWAu6VI7sbMgYGXvmpu2USEMyVXVU= Received: from alsa1.perex.cz (localhost.localdomain [127.0.0.1]) by alsa1.perex.cz (Postfix) with ESMTP id 5699CF80321; Thu, 18 Jun 2020 13:09:35 +0200 (CEST) Received: by alsa1.perex.cz (Postfix, from userid 50401) id 9E595F802DD; Thu, 18 Jun 2020 13:09:21 +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 76344F801EB for ; Thu, 18 Jun 2020 13:09:06 +0200 (CEST) DKIM-Filter: OpenDKIM Filter v2.11.0 alsa1.perex.cz 76344F801EB Authentication-Results: alsa1.perex.cz; dkim=pass (1024-bit key) header.d=kernel.org header.i=@kernel.org header.b="O6AbxAxV" 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 20E432078D; Thu, 18 Jun 2020 11:09:03 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1592478544; bh=UT1FJJxUaRXffXu0wgBanfwio7zzEycd0uxbxe6JEGo=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=O6AbxAxVMZkzeQcITMO7bEfBb4kIhp9PTFNFNgAc4qhLrDgrpkqLK6tKJpW5dTQMD k/kgEkreTaWYFBvkQKCz+EiMpIyWIQyGcYCy2mEjUrLjnNS9Wwhr7ategYfDtrlPiD QLwnP8C+fMOR3ZEpjIG1GeBM64tB1CYr+WFQn+MY= Date: Thu, 18 Jun 2020 12:09:02 +0100 From: Mark Brown To: Pierre-Louis Bossart Subject: Re: [PATCH] ASoC: codecs: Added MAX98373 Soundwire Driver Message-ID: <20200618110902.GE5789@sirena.org.uk> References: <20200617163015.16809-1-pierre-louis.bossart@linux.intel.com> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="tVmo9FyGdCe4F4YN" Content-Disposition: inline In-Reply-To: <20200617163015.16809-1-pierre-louis.bossart@linux.intel.com> 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" --tVmo9FyGdCe4F4YN Content-Type: text/plain; charset=us-ascii Content-Disposition: inline On Wed, Jun 17, 2020 at 11:30:15AM -0500, Pierre-Louis Bossart wrote: > +static void max98373_read_config(struct sdw_slave *slave) > +{ > + int value; > + struct device *dev = &slave->dev; > + struct max98373_priv *max98373 = dev_get_drvdata(dev); > + > + if (!device_property_read_u32(dev, "maxim,vmon-slot-no", &value)) > + max98373->v_slot = value & 0xF; > + else > + max98373->v_slot = 0; The DT bindings need updating to add SoundWire support. > + /* L/R mix configuration */ > + regmap_write(max98373->regmap, > + MAX98373_R2029_PCM_TO_SPK_MONO_MIX_1, > + 0x80); > + regmap_write(max98373->regmap, > + MAX98373_R202A_PCM_TO_SPK_MONO_MIX_2, > + 0x1); > + /* Set initial volume (0dB) */ > + 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. > + /* Speaker enable */ > + regmap_update_bits(max98373->regmap, > + MAX98373_R2043_AMP_EN, > + MAX98373_SPK_EN_MASK, 1); I'd expect this to be managed via DAPM. > +/* SPDX-License-Identifier: GPL-2.0-only AIUI this needs the trailing */ on the same line for the license compliance people. --tVmo9FyGdCe4F4YN Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQEzBAABCgAdFiEEreZoqmdXGLWf4p/qJNaLcl1Uh9AFAl7rS00ACgkQJNaLcl1U h9Di3Qf8DQNux1KS2yuLr/ffoHzaXRDOAckEwJcvAFTzUGbe9McgoIR16RjFrhSK DgVlBwvvko7JodCtABJV15X9jstt81uGqvafldT3btmKO2w9qWiTAoxc7BAtLFM1 1/h+5GS8As/7rhtRH9Tnc95R4kqLWOoYgy0So72w6opCG51tPiNdM3NKKUJoXFM/ ndeVmRZElkqQ9tXoOnE0lPX9BMDk+wDmpnmFLeRUec7dHqkIh5QcN4/3tbuo2eM1 VJfvaXkgM50O7FgxNdm0Qs39RenEAEZgXHA9sZxQOhqmWILoIo91QSuYUT+Pbz2u 6lpR3n5N5/kAsVb8eywW0Kyjj5jUNQ== =KT6p -----END PGP SIGNATURE----- --tVmo9FyGdCe4F4YN--