From: Pierre-Louis Bossart Subject: Re: [PATCH 1/8] ASoC: tegra: Add a TDM configuration callback Date: Wed, 18 Sep 2019 08:33:50 -0500 Message-ID: <40d78f13-c1b9-3e2d-c144-2209a4c0d716@linux.intel.com> References: <20190917181233.534-1-ben.dooks@codethink.co.uk> <20190917181233.534-2-ben.dooks@codethink.co.uk> <7b21823a-86e8-d3de-10b5-e047a5e025ef@nvidia.com> <72705cbf3b70934bdf8e7a6116f420b5@codethink.co.uk> <5b0044e1-b781-9fd8-b250-3d87fe3af855@nvidia.com> <20190918104827.GB2596@sirena.co.uk> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii"; Format="flowed" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <20190918104827.GB2596@sirena.co.uk> Content-Language: en-US List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: alsa-devel-bounces@alsa-project.org Sender: "Alsa-devel" To: Mark Brown , Jon Hunter Cc: linux-kernel@lists.codethink.co.uk, alsa-devel@alsa-project.org, Liam Girdwood , Takashi Iwai , Ben Dooks , Thierry Reding , Edward Cragg , linux-tegra@vger.kernel.org, linux-tegra-owner@vger.kernel.org List-Id: linux-tegra@vger.kernel.org On 9/18/19 5:48 AM, Mark Brown wrote: > On Wed, Sep 18, 2019 at 11:25:39AM +0100, Jon Hunter wrote: > >> Why 2? From looking at various codecs that support dsp-a/b modes, it is >> more common for the f-sync to be 1 regardless of the number of slots. > > In DSP modes only one edge really matters anyway so it's not super > important how long the pulse is. There are exceptions to the rule. In the early days of SOF, we had to provide support for amplifiers that did require a pulse larger than a bit. In the SOF IPC we added an 'frame_pulse_width' field to pass the configuration all the way from topology to the firmware and Intel SSP driver. The other quirk we added is the ability to control zero-padding per slot instead of at the end of the frame, e.g. 1 bit of padding after 24 bits when using 4 slots w/ 25 bits in a 100-bit frame.