Received: by 2002:a05:6a10:6d10:0:0:0:0 with SMTP id gq16csp739077pxb; Fri, 22 Apr 2022 10:09:28 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyC4jyr6IYNafwwEq1ItrBDy83LdY+964w67GcNiOA5wfFq+4djjOoXW9ZG6hduR97tHZZO X-Received: by 2002:a05:6e02:1ca4:b0:2cc:467c:7eaf with SMTP id x4-20020a056e021ca400b002cc467c7eafmr2423897ill.175.1650647368470; Fri, 22 Apr 2022 10:09:28 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1650647368; cv=none; d=google.com; s=arc-20160816; b=so073D0seJpXp3MGMZr+pZzv8IU6Er/SzLA6QxybaKo5wXndrOBJPxLXUGK0eagyle FCJ70nlYJ5jCrHhNT7bgbAL9Z2eG8GeWBVP+Tyyihwxme4I8CAkX38ZdBIMqyyhoOgdm xXWjJd78yfq7LrED2N14wpXR9HOjtemkg7wZxnqLKmn65DeB5Pmb4+HIQ4Kgs1QVLrY8 vJMufsa/0RH2LhW+lyWPS9tc20VYQ0m0nzHimTleoNkETjDe/NQUvfpGVjcPtVMdcGdc J6KpstG1JsoDGFC6pcNzVik3Dd1ZbV6wsTEF0Pvc5wMDNpnfuR/AebVzd4NDWMSfixIL p5iA== 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=OSdl6aaUeic9SF9BLtfTgFqL689pyLDLZc4/GdJKq8o=; b=c7530TlrENTZElesM79nCQYW+F6GiKMACNj3zWNM1p5zYo1b5xaNOtNYIVZFefRJzf Em0EsbtZEB1Jq8fm95pNwacWp6HwuTmHvjDilEtpcyossgQjlsEeqoXcBLbfaYygvKtp ou2t4jh33z6ZP43zUtf2mT00gxW+xv6l6mGiE+ABDNblufJH8ERWHfwmoKwMmFcUy9Es k/wheu1vKmYKmofLW5wYss+jZGCYKf3fosC2he7rNyK7nVJ1ekGqKCANuy9fok89Q+VX Bo+PGr2Bv8VrXATu63Jlq2s47DME3RblyIWsC6N78479raWNBQWRt+nWv1q9G/RI085z w2fQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@cutebit.org header.s=mail header.b=KOTSsrVY; spf=softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 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. [23.128.96.19]) by mx.google.com with ESMTPS id x10-20020a056638160a00b0032ac1b92929si883309jas.132.2022.04.22.10.09.28 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 22 Apr 2022 10:09:28 -0700 (PDT) Received-SPF: softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) client-ip=23.128.96.19; Authentication-Results: mx.google.com; dkim=pass header.i=@cutebit.org header.s=mail header.b=KOTSsrVY; spf=softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 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 0B1558E1BA; Fri, 22 Apr 2022 10:09:22 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1447598AbiDVMjE (ORCPT + 99 others); Fri, 22 Apr 2022 08:39:04 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:52798 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S238288AbiDVMjD (ORCPT ); Fri, 22 Apr 2022 08:39:03 -0400 Received: from hutie.ust.cz (unknown [IPv6:2a03:3b40:fe:f0::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 46ACD54BCB; Fri, 22 Apr 2022 05:36:07 -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=1650630964; bh=OSdl6aaUeic9SF9BLtfTgFqL689pyLDLZc4/GdJKq8o=; h=Subject:From:In-Reply-To:Date:Cc:References:To; b=KOTSsrVYpbp9H5eGEznDOrhNsmP3WRoz8CT6HguROZySCUrsZqVTT44KHKkohBvsd e+qME5tm+XjxZ4vuL1KYQmlgCHruAzaW6CvVg1UJa3itnrutntNc5vnK3SEYU/nmJ3 tQziBxksfZFdSSzcb3CTR1FRn4UKO1OQJamlKnM0= 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 14:36:03 +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: <6F6130F3-381C-4AB7-B618-CDC4C4A37C9B@cutebit.org> References: <6D199EAB-FE14-4030-96A7-2E0E89D25FAB@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 14:22, Mark Brown wrote: >=20 > On Fri, Apr 22, 2022 at 01:44:06PM +0200, Martin Povi=C5=A1er wrote: >=20 >>> So previously each speaker would get two slots but now it just gets = one? >=20 >> No the other way around. Previously (with the driver as it is RFCed), >> each speaker gets a single slot, and 'Left', 'Right' and = =E2=80=98LeftRight' >> values of the routing control don't do anything different from each >> other (well except maybe 'LeftRight' lessens the volume due to how >> the chip handles the edge case of mixing down two channels from the >> same slot). >=20 >> With the new arrangement I am proposing, the two speakers in a = left-right >> pair get both the same two slots, meaning they get to choose one of = the >> two slots based on the 'Left' 'Right' value of their routing control. >=20 > Ah, I think the confusion here is that I'm using slot and channel > interchangably whereas you're saying that previously the driver would > allocate two channels to each speaker with duplicate data? I guess you could say that. Not that there=E2=80=99s duplicate data on = the I2S bus, but the speaker amp would previously be configured to look for the left and right channel in the same TDM slot (see e.g. set_tdm_slot of tas2770 [0]). (Each speaker amp drives a single speaker, but it still has a notion of left and right channel.) [0] = https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/tree/so= und/soc/codecs/tas2770.c#n416