Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp9439202rwd; Wed, 21 Jun 2023 07:29:21 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ6YUHTUHVGTDl8jbWcaG62DBnLpNHdKUGPgoUxcZqDqkHYprYC31SkGmes9ALpEj18y3f54 X-Received: by 2002:a17:90b:a4b:b0:25b:cfd4:c1b3 with SMTP id gw11-20020a17090b0a4b00b0025bcfd4c1b3mr9473174pjb.40.1687357760725; Wed, 21 Jun 2023 07:29:20 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1687357760; cv=none; d=google.com; s=arc-20160816; b=PriX/5+H1GZMzDFGNkZaX9LY4MwTQ/6f/GaTOz91ybGrGxOdJjDdf74ZldrUX+81zm +oJgkUtRaMQhaM5C9y7xl7NvhYeT2NHpqaZ/wCzObBiP4amG8NQW4s7A/CsrzoaH3WEy bxkbadMWrfNN6o0x8RR1tb2/ZuqtWytBTEYRO5p2xJzszRp4BbmY+iYKoRouV4PldPNX 2RvvfxYop26dB9rKZGH7OwirtIbGv4H3+LnN6h9E64bZXhjCad+UhNV8L7d4xDu/GBnH JvsgOfI6dVxS15tP/6u1oG85W/LKuF+AGSalt+525L2+6+v1p6SMajuiL1HO/05GxjyA 3ytQ== 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=VkH2x0X2MHG7nBLE53SuM5sUGpehQ9wQpViT9zLnaT4=; b=XVG+kASD32BC/JTvyji1NkgNBnmvqeyKTtUCY5qO6s1NiTtOoORs9+t7stZ/uI/mBu nbq+OVoKpbsWnsVc2Os027ziE8ToDt6tID81iz65NDakoccIMn4kJDEamFmF5Ws2SMo6 vQc7GZHid6yd90FZLf35oX/GbQpkuBZb+lRopXTxi61wvcCDVq7tKtuQIQTzGXTHwreq PwGKOicwy3rK26cjwhaUun1I/CpuH4GHOboHADTm+GjPabuCy1/f9bA9wBSfTe7/sXpz Qz/jFo/oBMPQxkbmOBZSnH+tCZbXrfCDA9X6+bk9GYBcBljb/6nIKqPRiLW1mkbwSw3Y k3qQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=pi8yRU+i; 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 kk14-20020a17090b4a0e00b0025df9f1f7a1si4826757pjb.94.2023.06.21.07.29.05; Wed, 21 Jun 2023 07:29: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=pi8yRU+i; 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 S232667AbjFUOCf (ORCPT + 99 others); Wed, 21 Jun 2023 10:02:35 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:50184 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232753AbjFUOCJ (ORCPT ); Wed, 21 Jun 2023 10:02:09 -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 7DED91FE9 for ; Wed, 21 Jun 2023 07:02:01 -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 12F9661478 for ; Wed, 21 Jun 2023 14:02:01 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id EA713C433C8; Wed, 21 Jun 2023 14:01:57 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1687356120; bh=WaSxUSnDv1Zs13RbnqxjrcQaB3saqQt/wEzq2vsKKLc=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=pi8yRU+iMzkhI91FHgk9BOXlwCTXpYUjBxKKTaGkaKzexseV5WdIoSgPf0EelJNSN cJ/Ci9p/9aRLjK5IvCqiqeIDc0vUFCLZbZ/pc+N4Em6iVxvWo5uOhAUIkuEfDHNgBg rc2Vy2UUlVvKHxYhKzeGwN2eFKIrYEc77rVbieVQ653kFkcwR7eKQ7paYsL/hPmsEn Jj7W2c75JG9GsaVf+pq40deqOJ1TycVxbkDjdSpDSQ6A6xVwXPKdE80VcQXXVlUEOP 95BKYvVgmwRQeKajYHAFySLSuPbMa8WlEFJRrFP2eNgqZH0zjwqWIWfudollxusi2+ NoXrKZGwnNAWQ== Date: Wed, 21 Jun 2023 15:01:54 +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> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="xMFEG+XNmWkIkuCL" Content-Disposition: inline In-Reply-To: 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 --xMFEG+XNmWkIkuCL Content-Type: text/plain; charset=us-ascii Content-Disposition: inline On Wed, Jun 21, 2023 at 04:55:18PM +0300, Maxim Kochetkov wrote: > On 21.06.2023 16:18, Mark Brown wrote: > > 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. > At this time there is no any interlock for TDM mode in MAX98090 driver. We Yes, that's the problem I am identifying. The driver allows TDM mode to be configured independently of the DAI format but the two are related. > can specify dai-tdm-slot-* properties in DT and .set_tdm_slot() will be > called to setup TDM mode. And SND_SOC_DAIFMT cannot affect it. I checked > other codecs drivers: most of them performs TDM setup this way. So why do we > need such interlock right now? A lot of devices support TDM modes with other DAI formats, or allow the mode that is required for TDM to be configured even without doing TDM setup. Some always configure TDM like I'm suggesting, with the explicit TDM configuration just being an override. Some are just buggy and nobody noticed. The issue is that the driver will claim to have configured DSP A mode but actually done something else unless the user also configures TDM. --xMFEG+XNmWkIkuCL Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQEzBAABCgAdFiEEreZoqmdXGLWf4p/qJNaLcl1Uh9AFAmSTAtIACgkQJNaLcl1U h9D8DQf+M4lV2nSFMSMoBz0YSFaNAMSRSdqSJ9UyHCOw+o7zxjArfhrL0vZiEt+G q0D4SJyO5h7vtKfGPp5DwQTWp47q0ZnWENjn/KVFHGeZu3Vk/0xzOewJQaNGkWcU aDxOXr9hqjKPx71GsBiA5DKSCd+cWGwQaCBzugsh0eNNkNwFXLyfZg0C+VjFZm6L XomAL6gQSoJvGqO8iw3O0oPf43t+Mgws5pSoC8dkyIKQGu+8qA/UZa70zKl/lAtE YN2gOxv5X9tX5P0z/1w1TCaWlWmOuAOo0sYU4/nq8q+e0qss15bKMjy8aJBUX7RN P/cFt5MgYCerxyTmErcqM4CjWzFHbQ== =X2Ph -----END PGP SIGNATURE----- --xMFEG+XNmWkIkuCL--