Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-2.2 required=3.0 tests=DKIM_SIGNED,DKIM_VALID, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS, USER_AGENT_SANE_1 autolearn=no autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 6E2D2C43331 for ; Mon, 30 Mar 2020 12:29:39 +0000 (UTC) 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 mail.kernel.org (Postfix) with ESMTPS id EEAA920578 for ; Mon, 30 Mar 2020 12:29:38 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (1024-bit key) header.d=alsa-project.org header.i=@alsa-project.org header.b="ZrG66pfq" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org EEAA920578 Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=flatmax.org Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=alsa-devel-bounces@alsa-project.org Received: from alsa1.perex.cz (alsa1.perex.cz [207.180.221.201]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by alsa0.perex.cz (Postfix) with ESMTPS id 59C3215F9; Mon, 30 Mar 2020 14:28:47 +0200 (CEST) DKIM-Filter: OpenDKIM Filter v2.11.0 alsa0.perex.cz 59C3215F9 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=alsa-project.org; s=default; t=1585571377; bh=GLDd/+Fz8haNi4vTztC0RxiVI8rvXo+s9L+KiJlcOuI=; h=Subject:To:References:From:Date:In-Reply-To:Cc:List-Id: List-Unsubscribe:List-Archive:List-Post:List-Help:List-Subscribe: From; b=ZrG66pfqpCs1RwLDG9WZuVpsKepyC2IZwmdTzTQHD6FT2vUDleuPK/0lNfbsOXhY1 wPh/kt6BwltxdISq92kTThHf8WHAecjPIU+Rkdlue1inOjTfpza+w+eWDi9h3eiulq 4WCTrVUu4GvF0oPhx8HeMRbOQu8pB81LlsBO0qVE= Received: from alsa1.perex.cz (localhost.localdomain [127.0.0.1]) by alsa1.perex.cz (Postfix) with ESMTP id DAFE1F80145; Mon, 30 Mar 2020 14:28:46 +0200 (CEST) Received: by alsa1.perex.cz (Postfix, from userid 50401) id 89481F80148; Mon, 30 Mar 2020 14:28:43 +0200 (CEST) Received: from mx.flatmax.org (mx.flatmax.org [13.55.16.222]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by alsa1.perex.cz (Postfix) with ESMTPS id 1801EF8010C for ; Mon, 30 Mar 2020 14:28:36 +0200 (CEST) DKIM-Filter: OpenDKIM Filter v2.11.0 alsa1.perex.cz 1801EF8010C Received: from 41.68.233.220.static.exetel.com.au ([220.233.68.41] helo=[192.168.1.50]) by mx.flatmax.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.89) (envelope-from ) id 1jItWl-0002iW-0a; Mon, 30 Mar 2020 23:28:28 +1100 Subject: Re: [PATCH] ASoC: snd_soc_dai_set_fmt add substream independence. To: Mark Brown References: <20200328015831.6230-1-flatmax@flatmax.org> <20200330103213.GA4792@sirena.org.uk> From: Matt Flax Message-ID: <3c00bf93-04a8-04af-e0b5-d0f76f5dbb06@flatmax.org> Date: Mon, 30 Mar 2020 23:28:26 +1100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.4.1 MIME-Version: 1.0 In-Reply-To: <20200330103213.GA4792@sirena.org.uk> Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: 7bit Content-Language: en-US Cc: alsa-devel@alsa-project.org, lars@metafoo.de, lgirdwood@gmail.com, pierre-louis.bossart@linux.intel.com X-BeenThere: alsa-devel@alsa-project.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: "Alsa-devel mailing list for ALSA developers - http://www.alsa-project.org" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: alsa-devel-bounces@alsa-project.org Sender: "Alsa-devel" On 30/3/20 9:32 pm, Mark Brown wrote: > On Sat, Mar 28, 2020 at 12:58:31PM +1100, Matt Flax wrote: > >> This patch is aims to start a stronger discussion on allowing both CPU >> and Codec dais to set formats independently based on direction. > If the DAIs support completely separate formats they're not a single DAI > and should be represented as two DAIs. I understand, however having two DAIs produces subdevices and pushes the overhead of managing registers to the end user in the form of two sub devices. Is everyone firm on the concept that a DAI's playback and capture stream has to have the same format in the same DAI ? I can see a much better solution (then the one I posted here) which is also very simple to solve this problem in the same DAI. > >> One example of a sound card which requires independent stream formats is >> an isolated sound card, such as the Audio Injector Isolated sound card. >> The magnetic isolation chips on the sound card require stream fomats to >> be different because of digital latency variations on the I2S lines. > Honestly I'm not convinced this is ever going to work reliably - there > is in general an assumption in the code that the formats on both ends of > the link are the same, it seems you'll have to break that as well as > having an asymmetric configuration. You probably need to represent > these isolators as a CODEC and do a CODEC to CODEC link and even then it > seems worrying. I like to think of isolation as innovative, not worrying :) However w.r.t. the codec to codec link approach, I will take your advice and not go down that route. thanks Matt