Received: by 2002:a05:6a10:6d10:0:0:0:0 with SMTP id gq16csp817557pxb; Fri, 22 Apr 2022 11:49:11 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxsgPMfNgN85IAfPmn83pYSZGPEjh7p5kPXLg2gZyAxr9Z9pKt9lVWdJGKdXiPIcPp1Yf9e X-Received: by 2002:a17:90b:180f:b0:1d2:d217:6373 with SMTP id lw15-20020a17090b180f00b001d2d2176373mr18162544pjb.161.1650653350863; Fri, 22 Apr 2022 11:49:10 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1650653350; cv=none; d=google.com; s=arc-20160816; b=ak1yzZr2ocCNxP9lWr1QiHfoT3WXde6XOVDA+nwmLYDsSjiEUlYCQD7vtWjhR9ZgKS xUJzv4LDvAvXdHrJnsGBsDm2uav8DtLS45hqj7UIaZiweA6bH6Yj+75P3614aSd0Wc15 gOcf7n1u4Rzt0aH/gJnrWJ5npqeJv5qVSmHgH/f+fUyygWj9utrDZwIfiVgVB505LJuM VhbfjhVn/ed4PF3Wz0l1oh/WYD3yAdC8NmNLO2X5kno4N8YwmLVNO/JEsh+deDs4wZiT 07Nh1AP4T7ODvOTQ/5sNXegp5CvQhFKo1EexreeQcJb01YgSE/ItZifKaqe2gZj5tNBm bFew== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:to:references:message-id :content-transfer-encoding:cc:date:in-reply-to:from:subject :mime-version:dkim-signature; bh=OPTWL88wx7VdNdMeR/dWu1A51DUlJpqaNYL/YGs6XU4=; b=wcPYBjkQmzjZfmppw3f79UjWcT/dAep0Jis79MLVihS209n12kUsGzpQXhlCDm0YLQ GlDBB5vb/uusmkeoaHiPKdgJ58nxhjEbEPNgzREkWQSMaTAONSq1Ar87h9QTLRqGz2qf c7zj8RF/Hmn6fYTRQhfOcZQ4oGYB6Hyf/fZjf1+hKD0kOcrZi4XZ6gSHl6KzpeqSf6c+ DXEw8Jnkso6tpLG2eAq7rJHHJJA73dZYSQ0jpYHYK7mziJ92TZTssofha3RmnGWbyEej sGAz8sbWcIxAz/XuaG8UCI74F+e8Urfwu0fTBdo4i7PTdJ/qq04AJUTQUSLyhzIlB+6S Vlyg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@cutebit.org header.s=mail header.b=Rbo9vOum; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=cutebit.org Return-Path: Received: from lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [2620:137:e000::1:18]) by mx.google.com with ESMTPS id c4-20020a170903234400b001590118e14dsi9495020plh.108.2022.04.22.11.49.10 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 22 Apr 2022 11:49:10 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) client-ip=2620:137:e000::1:18; Authentication-Results: mx.google.com; dkim=pass header.i=@cutebit.org header.s=mail header.b=Rbo9vOum; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=cutebit.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id CD699E6C74; Fri, 22 Apr 2022 11:15:16 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1352072AbiDVOCd (ORCPT + 99 others); Fri, 22 Apr 2022 10:02:33 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:53382 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1344513AbiDVOCZ (ORCPT ); Fri, 22 Apr 2022 10:02:25 -0400 Received: from hutie.ust.cz (unknown [IPv6:2a03:3b40:fe:f0::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id EDA295A14D; Fri, 22 Apr 2022 06:59:29 -0700 (PDT) Content-Type: text/plain; charset=utf-8 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cutebit.org; s=mail; t=1650635966; bh=OPTWL88wx7VdNdMeR/dWu1A51DUlJpqaNYL/YGs6XU4=; h=Subject:From:In-Reply-To:Date:Cc:References:To; b=Rbo9vOumJP9KdV5finiGzAkBjNKa7iRrORw6kpRN7GZJVDKj+sDP8c87S3ooJhE8w RmVwoV+40VfncKdNwpM6URe0HikudfpNioWiaVoIAeWelg1UjFDZ3snkX8kd4Ua1fk ZhO9IvMfylt6vU+wjVjf33M2BIv+zqp+rae0xle0= Mime-Version: 1.0 (Mac OS X Mail 16.0 \(3696.80.82.1.1\)) Subject: Re: [RFC PATCH 0/5] Apple Macs machine-level ASoC driver From: =?utf-8?Q?Martin_Povi=C5=A1er?= In-Reply-To: Date: Fri, 22 Apr 2022 15:59:25 +0200 Cc: =?utf-8?Q?Martin_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 Content-Transfer-Encoding: quoted-printable Message-Id: <0E735637-EDA8-4A68-8B43-01BCEC41245C@cutebit.org> References: <6F6130F3-381C-4AB7-B618-CDC4C4A37C9B@cutebit.org> <3CD969AD-7316-4D83-AD92-CC85ED817125@cutebit.org> To: Mark Brown X-Spam-Status: No, score=-2.0 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,RDNS_NONE,SPF_HELO_NONE autolearn=no 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 > On 22. 4. 2022, at 15:06, Mark Brown wrote: >=20 > On Fri, Apr 22, 2022 at 02:53:54PM +0200, Martin Povi=C5=A1er wrote: >=20 >>> Oh, I see - the speaker actually allows configuration of the slots >>> independently. Usually the left/right thing on mono devices only = does >>> something for I2S where the bus clocking enforces that there be both >>> left and right channels. Either configuration is fine by me TBH, if = you >>> can do that then you could just keep them mapped to the same channel >>> then mark the control as disabled since it should have no effect. >=20 >> Well but is there some established way to mark a control as disabled? >=20 > snd_ctl_activate_id(). Ha! Great. >> Another issue here is that if I disable it I can=E2=80=99t leave the = routing >> control in it=E2=80=99s default value, which is =E2=80=98I2C = Offset=E2=80=99 and makes the speaker >> amp ignore the slot mapping. >=20 > Sure, that's fine - if a control genuinely has no effect it's fine to > hide it from userspace. The issue is where it's just that you don't = see > the use, if the control demonstrably does nothing then that's fine. So I assume I can set the control from the machine driver then disable = it. Anyway, good, this is what I meant earlier when I said the controls I = want to hide are 'useless/confusing at best=E2=80=99. I must walk back that = they are =E2=80=98dangerous at worst=E2=80=99, but I am glad we can hide them = anyway. (Not all of them of course, ISENSE/VSENSE will not be hidden, neither the routing control on systems with single mono speaker.)