Received: by 2002:a05:7412:2a8c:b0:e2:908c:2ebd with SMTP id u12csp2464902rdh; Wed, 27 Sep 2023 03:36:46 -0700 (PDT) X-Google-Smtp-Source: AGHT+IHdXvULm+Zrve4+xty88zAcSopM0qs5ffsGO7fH5F/3SfO6mS03fAdGhUfTcEqTKn/8iz3o X-Received: by 2002:a17:90a:fb82:b0:267:f094:afcf with SMTP id cp2-20020a17090afb8200b00267f094afcfmr1224114pjb.12.1695811006231; Wed, 27 Sep 2023 03:36:46 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1695811006; cv=none; d=google.com; s=arc-20160816; b=l0EHEtytL12NH7lkkCm2SZeCNGG9+2MsRjAA+9Zjyioviiy//D41JMgXbySB/utk/S 0m0QgMC/4VryfVRHr4j2l1tmpAxzOvzO9vY+3oyA8dZT1hv2LFDzAaEVRsMR0mYdaRvS GuaGEVpjs/YW0jP5b/zFFYAn7RuZFpK/nWfZLeOEzqi+olEzyTZFklnrjp/4cMgcAddH nMUX7IWzEdXRk+a04k59qRwlFIs2XMMoQRAEvW5dul2CpT7qSavE31ZPz4Ew37ciztv4 J1MwLrbqv6vEF9s2yIE0XI0p1k4PEnQm9Qoe7lUe2kbspUPjiDMTMsqvbOquNgLEpDM1 OQZg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:user-agent:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date; bh=NOAfr4B3UQivjx38/LOp1usqckRLdcqGP2P1PQD3vaE=; fh=gKVu5voRAmEczK7vQUp4XZQw/Lt3CEKxqrgQgQHunfw=; b=F11PnhxO9YrE6qDNySgwk6EoL++6iXAA0gh2fmj8ZmCCXEU6blYF5FX4RG9xKViVY8 OUaM+EXuJ13uU6LKyYGJkfc7Etd5iKLIFWecyUVfPH2RhYfLraqe0D1ePxyPepwgpMAZ I1En7abhsQF7CexUGdU38O/nWFrZyq2HUKrzL35Wn5nNJuq8iJad295K+170oOHJFWk6 GEwgrgOoLNakThPdsekbUmqeEPCEmuMEtnBq7NU5coDVPIdB8mQSETj6iANMSzywmtjY bpv2zfwrSels58gb1mzgGic7nJT71911ty2+q8HZl/CMymM2Hlsq92hdEam1DcP3YwyP QZIw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.37 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from snail.vger.email (snail.vger.email. [23.128.96.37]) by mx.google.com with ESMTPS id lp2-20020a17090b4a8200b0027717627cf6si13448177pjb.41.2023.09.27.03.36.45 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 27 Sep 2023 03:36:46 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.37 as permitted sender) client-ip=23.128.96.37; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.37 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by snail.vger.email (Postfix) with ESMTP id A44258065326; Wed, 27 Sep 2023 03:20:22 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at snail.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230345AbjI0KUS (ORCPT + 99 others); Wed, 27 Sep 2023 06:20:18 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:59034 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229499AbjI0KUR (ORCPT ); Wed, 27 Sep 2023 06:20:17 -0400 Received: from mg.richtek.com (mg.richtek.com [220.130.44.152]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id B982A4218 for ; Wed, 27 Sep 2023 03:20:14 -0700 (PDT) X-MailGates: (SIP:2,PASS,NONE)(compute_score:DELIVER,40,3) Received: from 192.168.10.47 by mg.richtek.com with MailGates ESMTPS Server V6.0(1978106:0:AUTH_RELAY) (envelope-from ) (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256/256); Wed, 27 Sep 2023 18:19:49 +0800 (CST) Received: from ex4.rt.l (192.168.10.47) by ex4.rt.l (192.168.10.47) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.1118.25; Wed, 27 Sep 2023 18:19:48 +0800 Received: from linuxcarl2.richtek.com (192.168.10.154) by ex4.rt.l (192.168.10.45) with Microsoft SMTP Server id 15.2.1118.25 via Frontend Transport; Wed, 27 Sep 2023 18:19:48 +0800 Date: Wed, 27 Sep 2023 18:19:48 +0800 From: ChiYuan Huang To: Mark Brown CC: Jaroslav Kysela , Takashi Iwai , Allen Lin , , Subject: Re: [PATCH] ASoC: codecs: rtq9128: Add TDM data source selection Message-ID: <20230927101948.GA27975@linuxcarl2.richtek.com> References: <1695780376-32301-1-git-send-email-cy_huang@richtek.com> <20230927094637.GA25905@linuxcarl2.richtek.com> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.21 (2010-09-15) X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,SPF_HELO_NONE, SPF_PASS autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (snail.vger.email [0.0.0.0]); Wed, 27 Sep 2023 03:20:22 -0700 (PDT) On Wed, Sep 27, 2023 at 11:59:31AM +0200, Mark Brown wrote: > On Wed, Sep 27, 2023 at 05:46:37PM +0800, ChiYuan Huang wrote: > > On Wed, Sep 27, 2023 at 11:13:22AM +0200, Mark Brown wrote: > > > > Is this something that's going to be changing dynamically at runtime or > > > should this be a device property that's set either by firmware or when > > > we're doing the TDM setup? This sounds like something I'd expect to be > > > fixed by the board design. > > > I may think one case if ASoC platform support multiple data source outputs > > that share the same bck/lcrk on different data pin. If it can be dynamically > > adjusted for the scenarios, this will keep the flexibility for the differet > > platform design. > > Sure, but is that actually a practical design - or if someone is doing > this shouldn't it be joined up with the TDM configuration since with > just the control it'd only be possible to switch the pins but not change > the TDM layout? I'm not sure that this control works as a standalone > thing. I think if two data source input for different scenarios, then the data source switch will become practical. For the standalone usage, keep a device property to decide this may be enough. But consider the future application, to keep this in general mixer control is still usable to meet the complex design.