Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp9462558rwd; Wed, 21 Jun 2023 07:46:21 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ7nSisZlgTCOmWOIFZPdguDhpowDyLL4WnNq8ezW5KaChoclxcICv9UMlOs0ITDyxX7zt0B X-Received: by 2002:a17:90a:1903:b0:259:45bc:e6b5 with SMTP id 3-20020a17090a190300b0025945bce6b5mr9216643pjg.44.1687358780802; Wed, 21 Jun 2023 07:46:20 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1687358780; cv=none; d=google.com; s=arc-20160816; b=fymnZyXtk3tJYC0Fz3ACOJXHxAWa9+rjiHHWUhOIU8dXRJKhLZDWAvwQhRUSeGdYmD HkEEVqNyClH0J1IJggL5v3onFguMBnwG4XwuzHD/ZaZATgnPeWgfRc+wihor50boGpgU Niys2efHmIhQ200MXdsqxj6om2IB3/56dMGsK7i1omcyQuGLLIbw1Jn62K3SNYtyE6jl 6aOA5/LDwNPVQwFMwP0REzpsC39e534pQXfROFrXdH62LLe5zzKusmWN0jCQRRPLRrnD woMwRewNL0+3vt8xtzRwpQqtozg7+QfIOYBgXqhlvhrSernn49duRiLLSy7ksW6ykfJE d+SQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=W2XF7Oua9MyLK7f+VdvwpICbplyFhJN3xZ2lUbZlqAI=; b=rAXzxZD00F2kYn682RkPoRvOgxLOQHb9+xMi4iiBOVKiHon7sFwLqyxM8tNc6H9375 piHjLZplmQLXFQgik1wY/6rsIkBqIeRExacg8MbAvgZuZFeeb0BSBWAB6/apt/xfWSTl 8plJt50LZN8QIJBA6LQYO17J5wCzmziL4+nnBf6Crvd0VtbZDv/xjL1MH6aeArmSoXgE 7uI88MzaXG4Bm7EOq7r+xzNXU8vaxYuSLmiynsEyVr7IOg/UfCANm/ppxHWNBbL2tT5b JOxFdwjmzYAZBv3TPIy2MJVoh/Ynx9NoiscgAc7m4XOjfUGYBLORpURiRhNSl/pA3hbs WP8Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=Mwbyt3bv; 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=kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id i13-20020a17090ad34d00b0025c1d114af0si4341164pjx.93.2023.06.21.07.46.07; Wed, 21 Jun 2023 07:46:20 -0700 (PDT) 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=@kernel.org header.s=k20201202 header.b=Mwbyt3bv; 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=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231811AbjFUOgN (ORCPT + 99 others); Wed, 21 Jun 2023 10:36:13 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:47636 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231826AbjFUOgC (ORCPT ); Wed, 21 Jun 2023 10:36:02 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [IPv6:2604:1380:4641:c500::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 8A007E7D for ; Wed, 21 Jun 2023 07:35:56 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id EA5B961572 for ; Wed, 21 Jun 2023 14:35:55 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id E0F9CC433C0; Wed, 21 Jun 2023 14:35:52 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1687358155; bh=W2XF7Oua9MyLK7f+VdvwpICbplyFhJN3xZ2lUbZlqAI=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=Mwbyt3bvhlfW6wb6ioKf7FJCJWZRoFxdcB2Ji6NuyPM2bDnwGq3tAA9thyNMVbLhh IIezVbNSq+ffB2Z0OqoIYQ2nar3HKK1GoRDSbwuqdwnheDmZ5nhDBDHhIIhMIMadRm KciOMEcloer9Nio3dK1oTx0dmJF8mBebye6tjT65BZE8rhY4YHmgk6n0fAkmzzfYMb jLu7cWNk8Xu/+Tuo3o0s7BrJS1EGjI5STnc1FYO7cyMJj6rcq34n4nNWXJ7Jw5ZCxC M1Skx4oSqflz7MLg3y8MXzr/a6H85SAifVg1KU5YQAVKYEXJLGDe8pP3/ua1m5LI4W Z2llrRYsFG/MA== Date: Wed, 21 Jun 2023 15:35:49 +0100 From: Mark Brown To: Maxim Kochetkov Cc: alsa-devel@alsa-project.org, Liam Girdwood , Jaroslav Kysela , Takashi Iwai , Benjamin Mugnier , Krzysztof Kozlowski , Greg Kroah-Hartman , Uwe =?iso-8859-1?Q?Kleine-K=F6nig?= , Claudiu Beznea , Charles Keepax , linux-kernel@vger.kernel.org Subject: Re: [PATCH 1/1] ASoC: codecs: max98090: Allow dsp_a mode Message-ID: References: <20230621115328.156457-1-fido_max@inbox.ru> <3805dc65-113f-453a-90a9-2ae6204004ba@sirena.org.uk> <0ada8334-4006-438f-8461-5c4c8e13f65d@inbox.ru> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="2neDLP738ecGvEVW" Content-Disposition: inline In-Reply-To: <0ada8334-4006-438f-8461-5c4c8e13f65d@inbox.ru> X-Cookie: When among apes, one must play the ape. X-Spam-Status: No, score=-4.4 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE 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 --2neDLP738ecGvEVW Content-Type: text/plain; charset=us-ascii Content-Disposition: inline On Wed, Jun 21, 2023 at 05:28:41PM +0300, Maxim Kochetkov wrote: > Yep. But we have to specify TDM parameters (slot masks, slot width, etc) any > way. Because there is no default TDM configuration like I2S and so. And pure > DSP_A/B mode just have no sense. No, they make perfect sense and are widely supported - the sample size is chosen based on the hwparams instead of being forced by configuring TDM mode. > Anyway. What do you suggest? Should I perform some refactoring for the > driver? Should I move M98090_REG_TDM_FORMAT/M98090_REG_TDM_CONTROL registers > setup to the max98090_dai_set_fmt()? To repeat: > > > I'm saying there should be some interlock between these two settings, if > > > nothing else setting DSP A mode should force TDM mode with automatically > > > configured slot sizes. --2neDLP738ecGvEVW Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQEzBAABCgAdFiEEreZoqmdXGLWf4p/qJNaLcl1Uh9AFAmSTCsQACgkQJNaLcl1U h9D+2Qf+OXZ936gjrm5garp8HyHsxJi4cDxPg+iRNTE2bFGPiZZGalEyqDobvnT+ +V3eOdmPrirjskcEkG1J+YGJkfMFtvoRg2+O613K3yRKx27jEZK7zkwCMmjaXKA1 1SPuLLuG0xuTiFR5XCWQ3TlextQXT9Bd8yzEjKQ5v8IF3jkxBUi6tUmk3S7s05Ow ZytXngPOb15z/tIJa3/1GwQ+ICN/BVXRfexX22SIFyRrfZMuRRQH4hdpJpjWXHe7 bUMsxFYPB45ULLHHVAET28DckyE0K3V0gKSDBdrH5g1lbXCDtz4M2YZGQh70s+Ub 1hM84darU01Y53RTLeS5w/tr70Ua+w== =FNmd -----END PGP SIGNATURE----- --2neDLP738ecGvEVW--