From mboxrd@z Thu Jan 1 00:00:00 1970 From: Lars-Peter Clausen Subject: Re: [PATCH] ASoC: Document DAI signal polarity Date: Wed, 30 Sep 2015 21:34:46 +0200 Message-ID: <560C3956.9000302@metafoo.de> References: <1441054258-33200-1-git-send-email-anatol.pomozov@gmail.com> <20150918135427.GI12027@sirena.org.uk> <20150930181004.GN15635@sirena.org.uk> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: Received: from smtp-out-050.synserver.de (smtp-out-107.synserver.de [212.40.185.107]) by alsa0.perex.cz (Postfix) with ESMTP id 1199C2665EE for ; Wed, 30 Sep 2015 21:34:49 +0200 (CEST) In-Reply-To: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: alsa-devel-bounces@alsa-project.org Sender: alsa-devel-bounces@alsa-project.org To: Anatol Pomozov , Mark Brown Cc: liam.r.girdwood@linux.intel.com, =?UTF-8?B?6Zmz56uL5bOw?= , "alsa-devel@alsa-project.org" List-Id: alsa-devel@alsa-project.org On 09/30/2015 09:08 PM, Anatol Pomozov wrote: > - for I2S/left/right justified - frame starts with falling FSYNC edge This is what most drivers implement: I2S: Left channel starts with the falling edge, right channel starts with the rising edge (data is delayed by one clock cycle) Right/Left justified: Left channel starts with the rising edge, right channel starts with the falling edge DSP A/B: Frame starts with the rising edge. Channels are spaced by the configured slot width (e.g. first channel at offset 0, second channel at offset 16, third channel at offset 32, ...). If the slot with has not been configured explicitly using the set_tdm_slots() API the slot with is the number of bits in one single-channel sample (Return value of params_width()). When using I2S or left/right justified in TDM mode channels are also spaced by the configured slot width and the second edge should be ignored.