Received: by 2002:a05:6a10:2726:0:0:0:0 with SMTP id ib38csp490681pxb; Thu, 31 Mar 2022 09:55:47 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzA2+q79gF1jUHAI+EIVtxXPWQgksh7txE4lDqjjv+0FSKQV/xgYx3y+OffFI+yHd6in0Bt X-Received: by 2002:a63:f10c:0:b0:382:623b:3bb9 with SMTP id f12-20020a63f10c000000b00382623b3bb9mr11642815pgi.97.1648745747383; Thu, 31 Mar 2022 09:55:47 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1648745747; cv=none; d=google.com; s=arc-20160816; b=k+Lfyw+Mm/XcC+ELYPXZ8vnHUcunIBnLwLm42aqnLUYC1jhWRZ4oqkYcJkRBC808za gMs5wyR0ZlVv97nub4UamnS8A77oA+5OguomnsSGCv9DSSb6GDWt7nnP31hLKKiWCMcg CzE0slHuuKQVO3DzEgn06k0M/XQA7/E7jIbMNNJ/57xyb1dFJ3TNeHIooklY1am8l8Yp K2Hr4TxbP3hcmCjQ+Rw7a8t+OnMFdYMKDtNS1YX14Q/JDH+Uloyv/gF5FfZtOlD+VbhS FldR/6vDwRs/zSYYnq+1GX59LLjgoHr+CSG5ziQzFv9xO+3IWJqQIOaMh9efzpuIrlTM 5HDw== 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=Yy/c7TsczfOO2KrS930t/nLcXpSlXylY76hJU14Wzew=; b=soBK9tZdGfoAsVNghuv8kMiIPFpGkV/8LOUKLpRQZkkVW1JEoxIS6esaeizQw/iwFX PHNOeI7L/2U0WWjoGnE1GiveN8uX5g9TPCK1sScQ2hjgE84olDorJ12vTrSBZpMxkZ39 +QiQT8nN6PyqHyPjoNptuVSdZt+4kF+JLAFonuqvumdjy21TfLbwgSVcNe1V/cbza1Hs bTikGaMrn/VKwyks4WM7IZpIlvdaA/xC060HaHFdWo+BC83N0oXVrOYqbYW8tKmmC4mD 1oPcPEr0BmVwcwq9aMCtXQy3CuVtUaVf2XcvFF1nyvcgQs/9AUeaT1ZAzTCrKpo1uGKO 48lQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=MPYVFwpr; 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 oa17-20020a17090b1bd100b001c7b15a305csi154543pjb.9.2022.03.31.09.55.31; Thu, 31 Mar 2022 09:55:47 -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=MPYVFwpr; 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 S238886AbiCaPog (ORCPT + 99 others); Thu, 31 Mar 2022 11:44:36 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:52584 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S239448AbiCaPnA (ORCPT ); Thu, 31 Mar 2022 11:43:00 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 797D11C349C; Thu, 31 Mar 2022 08:37:43 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id 9E22461B69; Thu, 31 Mar 2022 15:37:06 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 4CFA0C340F3; Thu, 31 Mar 2022 15:37:03 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1648741026; bh=A3+v8YN4rZULqKlHdCnvknCSKLUBvOtgJ5S9ze+1pS4=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=MPYVFwpro7nv+TrxY/Ol74fPO7Kpia4LPytfCElQLa5f+AGA1Ay4j3uZsLGsmMzHN vDVc7PuOwjuXTxw6vvgKnuXRpxVZu7NhcCfsrXY5tgcQdSyRzGitbd9oM2ZWatCkGe 2pCtvn+05nk8OSk3uHZEvqcAg/SQ460mhWL94UcHDGfggJJZ/pXp4dlvbhfUKmGzE7 b8XXVBnO2o1VMLtLOD5NYLnd3DSUjYfpEQYVxknDOp2bapAymuFpW2yRz6EIwxFqqd Nn47dg6HJ/RM6GvC3JnL+k08j9ZuLIO1yD8OodZNO250xNefMYKKrpy2dini9C5DRH 4S8bqLA0G17dw== Date: Thu, 31 Mar 2022 16:36:59 +0100 From: Mark Brown To: Martin =?utf-8?Q?Povi=C5=A1er?= Cc: Martin =?utf-8?Q?Povi=C5=A1er?= , Liam Girdwood , Rob Herring , Krzysztof Kozlowski , Jaroslav Kysela , Takashi Iwai , alsa-devel@alsa-project.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, Mark Kettenis , Hector Martin , Sven Peter Subject: Re: [RFC PATCH 0/5] Apple Macs machine-level ASoC driver Message-ID: References: <20220331000449.41062-1-povik+lin@cutebit.org> <6D199EAB-FE14-4030-96A7-2E0E89D25FAB@cutebit.org> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="X2ThHCiFHNtahL7d" Content-Disposition: inline In-Reply-To: <6D199EAB-FE14-4030-96A7-2E0E89D25FAB@cutebit.org> X-Cookie: Reunite Gondwondaland! X-Spam-Status: No, score=-7.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_HI, 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 --X2ThHCiFHNtahL7d Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Thu, Mar 31, 2022 at 05:04:32PM +0200, Martin Povi=C5=A1er wrote: > > On 31. 3. 2022, at 16:18, Mark Brown wrote: > > Yes, having two devices driving the bus at the same time wouldn't be > > great. How is the TDM slot selection for the signals done in the > > hardware, I'm not seeing anything immediately obvious in the driver? > > I'd have thought that things would be implemented such that you could > > implement speaker protection on all speakers simultaneously but perhaps > > not. > I don=E2=80=99t know. I would have to go study the details of this. Shoul= d I see > if I can find a combination of =E2=80=98ASI1 Sel=E2=80=99 =E2=80=98VSENSE= =E2=80=99 =E2=80=98ISENSE=E2=80=99 settings > that would lead to driver conflict on one of the models, or is there > a chance we could hide those controls just on the basis of =E2=80=98it do= esn=E2=80=99t > do anything usable and is possibly dangerous=E2=80=99? If ISENSE and VSENSE output are controlled by the same mux as routing then we should lock one of the controls out for at least stereo devices (it might be a good idea to check if the output is actually high Z when ISENSE and VSENSE are off rather than just driving zeros, if not it definitely has to be the routing control). My instinct is that it's better to preserve the ability to implement speaker protection in future since that is something that'd be broadly useful, especially if someone comes up with a generic speaker protection implementation in which case there should be an awful lot of systems out there which could benefit.=20 > >> That=E2=80=99s the reasoning anyway. To reiterate, seems to me the con= trols > >> are useless/confusing at best and dangerous at worst. > > I'm just not seeing an issue for the slot selection. > Yeah, agreed there=E2=80=99s no (damage) issue as we should to proper vol= ume > caps anyway. Though see above about how ISENSE/VSENSE output slot is controlled I guess = :/ --X2ThHCiFHNtahL7d Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQEzBAABCgAdFiEEreZoqmdXGLWf4p/qJNaLcl1Uh9AFAmJFypoACgkQJNaLcl1U h9BYrAf8C7WJfY+2miJ9ldjr+FjB/DEti4NLZQsx4VaqpU/qCJnw+5ZKmLLu00y9 4EfS72t3bFJMYm0MuqUrCnlQmZRAJIeQ3Lu2JU5fYm2AbvsSdWSv5zvXLJuWuJG5 FlRz9lUIRdLoAXWtI1QyHjG3WvW7JtGMulEVhj9AVEa+9SMpRmEmajmbxCoDyQ8i Kr6TAeKpIvhKxty0x4n+oDQBMjs3uYxNwu28h4wqeiVwb4KSO9DAr1/zOA6R1M9C dlLJxBBTakNkp3UnQhDPJBjhIyDy3kb1ceQAuCanMbmo+veWMTWstNmqF8FCXXLQ d3r8Z8ZAaeSy/6DXESctad+u9DDtYA== =SUgL -----END PGP SIGNATURE----- --X2ThHCiFHNtahL7d--