Received: by 2002:a05:6a10:5bc5:0:0:0:0 with SMTP id os5csp6328496pxb; Mon, 8 Nov 2021 06:55:10 -0800 (PST) X-Google-Smtp-Source: ABdhPJxEYg+cj2QJhpEhbUbIOK0M8sDBk+ZywUlG1NkIHCxcjqxOTVqdVGTkc2Mmi6lopSWHtlQb X-Received: by 2002:a50:e14c:: with SMTP id i12mr221251edl.125.1636383310537; Mon, 08 Nov 2021 06:55:10 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1636383310; cv=none; d=google.com; s=arc-20160816; b=lIn+FtI3fO7Jz8J6rO2RXEWeGrWmDY8ij7aXfwDnkLfgSP5tT/m2RXoJJS9sKQCTyz rhHGAgMVhauY4Z+V2QvxexW0Zqhq15UuQPMHXgRTgd8C+wkK1u3d2QdgVEnyKnqR87ST salDiHkflFV6WDMf3bitYXA/RBiO5/AoY1sRcgFrjXvVB887Q8E/bS0ge2qZRbbN/8w2 cWbFUEOGho+1Y6RMr7x2DMcuNlycGBd2x11jPaHIvDwhDRbP3YP324Jzr4WmBXkXx/hw EUOHLwch+2sNmcp7+bHzmqKIWUOQsKU0j2ptNKpUob6ZVM5R7U7q87Mlu5slxx5ZkCQV nsLA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:date:cc:to:from:subject:message-id; bh=jo09FMbxSogOQsAyoP0Xayzd6snpuaZf7ZaBkUJYjC4=; b=W9cWaFC7kg+NP4WMgysQ73MHzEZDAcLKkXpDrGI4TdVi6/rqUw/0IzYy1cFpVWHMld J1yf1FSE+QllRowmLovzJtN6lQttvElWPRkSY1cNm+tWcExwpjomGlDSFd+Vb0rHgJE6 eeRT8clikNiUSsru24oRnzfpVZrc1IbB25aet1DyOwXflzP5ToEvs0N0+pB81F7LHr73 X8i+wzv/sDYUzgBghdIdgEpJP2wypy3Wg0h+A4g4cNJ1Xiwue9ZYqqPvkCaozDeCxP13 CGj49kXntJRkmdq4s2hATvExDzC3uLJDPU9T+3qapkdOVdL2NiLRpRQ/SWwHdJ6Q/mBF IJJA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=mediatek.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id y1si16718435ejg.143.2021.11.08.06.54.44; Mon, 08 Nov 2021 06:55:10 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=mediatek.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S236884AbhKHJnm (ORCPT + 99 others); Mon, 8 Nov 2021 04:43:42 -0500 Received: from mailgw01.mediatek.com ([60.244.123.138]:56132 "EHLO mailgw01.mediatek.com" rhost-flags-OK-FAIL-OK-FAIL) by vger.kernel.org with ESMTP id S236838AbhKHJnm (ORCPT ); Mon, 8 Nov 2021 04:43:42 -0500 X-UUID: d313024215cb41fc999a422a7d299fe0-20211108 X-UUID: d313024215cb41fc999a422a7d299fe0-20211108 Received: from mtkcas11.mediatek.inc [(172.21.101.40)] by mailgw01.mediatek.com (envelope-from ) (Generic MTA with TLSv1.2 ECDHE-RSA-AES256-SHA384 256/256) with ESMTP id 753959213; Mon, 08 Nov 2021 17:40:53 +0800 Received: from mtkmbs10n1.mediatek.inc (172.21.101.34) by mtkmbs10n1.mediatek.inc (172.21.101.34) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.792.15; Mon, 8 Nov 2021 17:40:52 +0800 Received: from mtksdccf07 (172.21.84.99) by mtkmbs10n1.mediatek.inc (172.21.101.73) with Microsoft SMTP Server id 15.2.792.15 via Frontend Transport; Mon, 8 Nov 2021 17:40:52 +0800 Message-ID: <4e876c89ee58cd1408511a34573005e3df359cd0.camel@mediatek.com> Subject: Re: [PATCH 3/4] ASoC: mediatek: mt8195: separate the common code from machine driver From: YC Hung To: Mark Brown , Pierre-Louis Bossart CC: Trevor Wu , , , , , , , , , Date: Mon, 8 Nov 2021 17:40:52 +0800 In-Reply-To: References: <20211103100040.11933-1-trevor.wu@mediatek.com> <20211103100040.11933-4-trevor.wu@mediatek.com> Content-Type: text/plain; charset="UTF-8" X-Mailer: Evolution 3.28.5-0ubuntu0.18.04.2 MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-MTK: N Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Mark, I am YC Hung from Mediatek. Let me show our block diagram as the link below for the sound card which support SOF. https://user-images.githubusercontent.com/62316/132476344-923dfe3a-5305-43e5-9fc8-c63d9ab2c58f.png In this sound card, there are two components , one is SOF based component and another is non-SOF based component(called Normal in the block). We want to reuse some BEs of Normal which can control Mediatek Audio Front End hardware power, clock , and DAI module and still keep some FEs(e.g. DPTX) then we can use it on the same sound card. Therefore, we use late_probe callback function "mt8195_mt6359_rt1019_rt5682_card_late_probe" to add route path from SOF widget to non-SOF BEs. For two patches https://github.com/thesofproject/linux/pull/3217 and https://github.com/thesofproject/linux/pull/3236, we want to keep FEs of non-SOF components and can reuse them. Please let me know if I am not clear enough.Thanks. On Fri, 2021-11-05 at 16:41 +0000, Mark Brown wrote: > On Fri, Nov 05, 2021 at 11:16:05AM -0500, Pierre-Louis Bossart wrote: > > On 11/5/21 10:38 AM, Mark Brown wrote: > > > We shouldn't be requiring people to load completely different > > > drivers > > > based on software configuration, what if a system wants to bypass > > > the > > > DSP in some but not all configurations? Can we not just have > > > controls > > > allowing users to route round the DSP where appropriate? > > It was my understanding the card relies on separate components > > - a SOF-based component to provide support for DSP-managed > > interfaces > > - a 'non-SOF' component for 'regular' interfaces not handled by the > > DSP. > > this was the basis for the changes discussed in > > https://github.com/thesofproject/linux/pull/3217 and > > https://github.com/thesofproject/linux/pull/3236 > > So it's actually supposed to end up as two different cards which > can't > possibly be interlinked? That doesn't seem to add up entirely given > that there's stuff being moved out of the current card, and I thought > these systems had a fairly comprehensive audio muxing capability. > Trevor, could you be a bit more specific about what's actually going > on > here physically please? > > > But indeed if the same interface can be managed by the DSP or not, > > depending on software choices it's a different problem altogether. > > We've looked into this recently, if the choice to involve the DSP > > or not > > is at the interface level, it might be better to have both > > components > > expose different DAIs for the same interface, with some sort of > > run-time > > mutual exclusion, so that all possible/allowed permutations are > > allowed. > > Yes, if the interface can optionally be completely hidden by the DSP > that's adding another layer of complication. > _______________________________________________ > Linux-mediatek mailing list > Linux-mediatek@lists.infradead.org > http://lists.infradead.org/mailman/listinfo/linux-mediatek