From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from alsa0.perex.cz (alsa0.perex.cz [77.48.224.243]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 026B2C001DC for ; Thu, 27 Jul 2023 15:54:16 +0000 (UTC) Received: from alsa1.perex.cz (alsa1.perex.cz [207.180.221.201]) (using TLSv1.2 with cipher ADH-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by alsa0.perex.cz (Postfix) with ESMTPS id 98E4383E; Thu, 27 Jul 2023 17:53:23 +0200 (CEST) DKIM-Filter: OpenDKIM Filter v2.11.0 alsa0.perex.cz 98E4383E DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=alsa-project.org; s=default; t=1690473253; bh=V2aH0vwTvDcXMuV7cQlSjt46toCvcqNWtjA04RTm5Bw=; h=Date:From:To:Cc:Subject:References:In-Reply-To:List-Id: List-Archive:List-Help:List-Owner:List-Post:List-Subscribe: List-Unsubscribe:From; b=jTP+d/GBMkLbZlRId/cb5swngcSZj1kzrpMX+08a+/56RB7f788ckKflJSYCYcn37 3AIzyvB7rpw56nfgWvneUJWjr/iWjPqTgHEr3DAlxh2A1VW8+5v9m8ut1qSI0WZKOL WkuOiZXsX1jLDvDoG6y8nkfBKJ+GQpjw/0u+CzfE= Received: by alsa1.perex.cz (Postfix, from userid 50401) id 68D48F80544; Thu, 27 Jul 2023 17:53:02 +0200 (CEST) Received: from mailman-core.alsa-project.org (mailman-core.alsa-project.org [10.254.200.10]) by alsa1.perex.cz (Postfix) with ESMTP id C5AC0F8019B; Thu, 27 Jul 2023 17:53:01 +0200 (CEST) Received: by alsa1.perex.cz (Postfix, from userid 50401) id 671A0F8019B; Thu, 27 Jul 2023 11:51:02 +0200 (CEST) Received: from out-113.mta0.migadu.com (out-113.mta0.migadu.com [91.218.175.113]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by alsa1.perex.cz (Postfix) with ESMTPS id 3D3FEF80153 for ; Thu, 27 Jul 2023 11:50:57 +0200 (CEST) DKIM-Filter: OpenDKIM Filter v2.11.0 alsa1.perex.cz 3D3FEF80153 Authentication-Results: alsa1.perex.cz; dkim=pass (2048-bit key, unprotected) header.d=jookia.org header.i=@jookia.org header.a=rsa-sha256 header.s=key1 header.b=T298/Bwh Date: Thu, 27 Jul 2023 19:50:36 +1000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=jookia.org; s=key1; t=1690451455; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=tpGulMNGBLGeCQsQWgv21Wi66CtJAGM5/rQdNeGYsjk=; b=T298/BwhHCdJVHBlfM6PVWLwOt80cn2rGyCcxgdCQ6KysXhzJdQ1dV3DRe/cbt1nmcJLaY dRZRQITmJX4FXoI2L4w89dmtjTyhVh6QqnQ5aCELttROQKKMLZWOm4gXTERY7qcNIf94ie g7at2lL6PRWvXkLK9WhJSw9g/bg4dn+zf22UuiGcZHIAeB73sVfh9eKjEGo8+eDQhZFUnX UQX3jyUsVRM/B+si6VZ1foMb0XXXDDAduG2dpbXXHoAHsLZY5w3MeHnBatB0K56Z7MbZYk MaG8J5TAfuFAp0o3DUG5fcI+H5RW5JLePVB8mFeGBs2QuM8qC6Lhx/TONmOP0w== X-Report-Abuse: Please report any abuse attempt to abuse@migadu.com and include these headers. From: John Watts To: Pierre-Louis Bossart Cc: alsa-devel@alsa-project.org Subject: Re: How do I set up multiple codecs on one I2S - without TDM? Message-ID: References: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-Migadu-Flow: FLOW_OUT X-MailFrom: contact@jookia.org X-Mailman-Rule-Hits: nonmember-moderation X-Mailman-Rule-Misses: dmarc-mitigation; no-senders; approved; emergency; loop; banned-address; member-moderation; header-match-alsa-devel.alsa-project.org-0; header-match-alsa-devel.alsa-project.org-1 Message-ID-Hash: NJLNSEPZUCWRKB7VMSJW4ASQNWDBRROQ X-Message-ID-Hash: NJLNSEPZUCWRKB7VMSJW4ASQNWDBRROQ X-Mailman-Approved-At: Thu, 27 Jul 2023 15:52:58 +0000 X-Mailman-Version: 3.3.8 Precedence: list List-Id: "Alsa-devel mailing list for ALSA developers - http://www.alsa-project.org" Archived-At: List-Archive: List-Help: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: On Thu, Jul 27, 2023 at 11:45:01AM +0200, Pierre-Louis Bossart wrote: > On 7/26/23 12:48 AM, John Watts wrote: > > Hello there! > > > > I have an interesting problem that I'm trying to solve. It will require > > writing adding driver support but right now I'm struggling to understand > > how I should go about it all. > > > > As a background, this is with the Allwinner D1 or T113. It has a 16 > > channel I2S controller and each channel can be configured to use a > > specific pin and TDM time slice. Even channels are low LRCLK, odd are > > high LRCLK. > > > > So for my situation I want to have six channels: > > > > - Channel 0: Timeslot 0, Pin 0, LRCLK 0 -> ADC 1 > > - Channel 1: Timeslot 0, Pin 0, LRCLK 1 -> ADC 1 > > - Channel 2: Timeslot 0, Pin 1, LRCLK 0 -> ADC 2 > > - Channel 3: Timeslot 0, Pin 1, LRCLK 1 -> ADC 2 > > - Channel 4: Timeslot 0, Pin 2, LRCLK 0 -> ADC 3 > > - Channel 5: Timeslot 0, Pin 2, LRCLK 1 -> ADC 3 > > It would help if you described what those different 'channels' are supposed > to transmit. Usually channels mean a group of data that is rendered at the > same time. It looks like you plan on transmitting independent streams that > may be enabled/disabled separately. > > Also you should describe if there are independent clocks or if all those 6 > 'channels' are transmitted with a single pair of bit/frame clocks? That > completely changes the model, in the former case you could represent > independent DAIs/dailinks but in the latter case you really have a single > muxed stream. Hello, These channels are intended for measuring vibration at various points in a vehicle. Each channel is a vibration measurement. These all use the same I2S clock, multiplexing is handled by having each ADC connected to a different I2S pin. John.