Received: by 2002:a05:7412:2a8c:b0:e2:908c:2ebd with SMTP id u12csp2465908rdh; Wed, 27 Sep 2023 03:38:57 -0700 (PDT) X-Google-Smtp-Source: AGHT+IHL7FCrDduoIui3Rhkn/JDL/ZFcJ2zr5STp2BPK+i2xXxNlx3BbExP5IuVOfjvEYX1Jxxoz X-Received: by 2002:a05:6a20:918d:b0:12c:b10d:693d with SMTP id v13-20020a056a20918d00b0012cb10d693dmr1834013pzd.6.1695811137274; Wed, 27 Sep 2023 03:38:57 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1695811137; cv=none; d=google.com; s=arc-20160816; b=oCgtPZnFdf+kRl3mrm/D/UvAhNFsuIn2CnHfptnVcvr2EugPfAzE2oTd2Wd8U+LBWk wBu1xtRKnJ2Zsi6Ws5WeAUoe2CnxO9s3C/zpQpB5k881hjnfatHynXSnARYgCzZRjOeR HTYk+aHFJoucBoiO0ost3xqGUI94CRSBesXRZT/mn91YYl9zkRP4vagq2VC9hYEpia68 YBqa5pu+pZPw4Lfb5+Wtp5rh2f9s4e9gP+8h0nsHP3du7K30zTKqL/y0iSLubxrvB6t6 4hkZf9ue7pZZj2f1j3L32wIFtahzfI4UmsQ8NdnC0moJ2s9tOQjpyBRgxtjnRwReqVrd RI9Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=7Dmey2zPWPAbG9m3dMophDcQApl5MqSRa9y5NbIu5nA=; fh=9KTkC3uihzWi52L5za1+T58U/N7WhOk6ZY7VcBFQaSE=; b=TCjWMKiM4j4MWWIfHys1LlXq389gYPO+ZGyETRtgkXWk826ihLtEZy/d1j/Rol4iDW RS/UqZ14RvIdJWfNJTn4ZIPQW40X1fcKsLlt05yZdBeSpzpsWdE79G5H5aNTNa1n38+2 E/2rt9BvdGBJ3EA+S+GPMchmAkLIb4klxWgG+268xAL5XIbpYkHcG0j+El5iv4JHZCpu sJq1zaxmNWfh8ftZJESgLLwR27K13YZo8kdIh1O/XW5+PB+Lui8bnvPH4MhkbksH51cR Dbcs3hlNSh2oIsYmSIRMUekmRxdVXXMs3ix1M+W+IxFHOcslPc0Lu5o16v5VavAFUHl0 5wQA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=DIOerlI2; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.35 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from groat.vger.email (groat.vger.email. [23.128.96.35]) by mx.google.com with ESMTPS id kv16-20020a17090328d000b001bbcddc33dasi14534636plb.180.2023.09.27.03.38.56 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 27 Sep 2023 03:38:57 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.35 as permitted sender) client-ip=23.128.96.35; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=DIOerlI2; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.35 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by groat.vger.email (Postfix) with ESMTP id 01A0080CFD33; Wed, 27 Sep 2023 03:28:44 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at groat.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230345AbjI0K2f (ORCPT + 99 others); Wed, 27 Sep 2023 06:28:35 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:34582 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229648AbjI0K2d (ORCPT ); Wed, 27 Sep 2023 06:28:33 -0400 Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 39D2CEB for ; Wed, 27 Sep 2023 03:28:32 -0700 (PDT) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 75B1DC433C7; Wed, 27 Sep 2023 10:28:31 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1695810511; bh=cvS5PqEhY5R7uI/RDPX5ydbaAUx6zExD2wS5YF2OBVE=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=DIOerlI2Ki0TXaQaY40WQF54NjPAildbPQqWliLxv3AbvAKIfh3Jv8i8piCifxJSj LZC30VS8b8gXhnlQ9AT47xas28d1TgOefmkBQ1L2xqCCqT9mPxaFOkXOcmux0w4hsY mCMV2/RkYVvBsoue8dtnD4kz6C3J2OUq8brTMzuVPalQ+MtNhZUzy4ZFHxECWadf8M iHL0OSJEUtfXbbjtcAartn+coxjR1NSi5YlBmUh7/unC0Q9bbcCi5bki7wQaumb1kC H8qxLQX2+zemAQNTgKfSUA5/dA+D3m0fJO6yT+FI4788owsqTDLbRaSrkHDf00KUXd PPFAP+18o+yXg== Date: Wed, 27 Sep 2023 12:28:29 +0200 From: Mark Brown To: ChiYuan Huang Cc: Jaroslav Kysela , Takashi Iwai , Allen Lin , alsa-devel@alsa-project.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH] ASoC: codecs: rtq9128: Add TDM data source selection Message-ID: References: <1695780376-32301-1-git-send-email-cy_huang@richtek.com> <20230927094637.GA25905@linuxcarl2.richtek.com> <20230927101948.GA27975@linuxcarl2.richtek.com> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="D0qJCejxf+Euu+mv" Content-Disposition: inline In-Reply-To: <20230927101948.GA27975@linuxcarl2.richtek.com> X-Cookie: Save energy: Drive a smaller shell. X-Spam-Status: No, score=-1.2 required=5.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on groat.vger.email 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 (groat.vger.email [0.0.0.0]); Wed, 27 Sep 2023 03:28:44 -0700 (PDT) --D0qJCejxf+Euu+mv Content-Type: text/plain; charset=us-ascii Content-Disposition: inline On Wed, Sep 27, 2023 at 06:19:48PM +0800, ChiYuan Huang wrote: > On Wed, Sep 27, 2023 at 11:59:31AM +0200, Mark Brown wrote: > > 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. My concern is that the control might not actually be usable without also changing the TDM mode so we might need the machine driver to add a control which flips the input and also changes the TDM mode - it feels likley that if there are two inputs they won't have identical formats. --D0qJCejxf+Euu+mv Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQEzBAABCgAdFiEEreZoqmdXGLWf4p/qJNaLcl1Uh9AFAmUUA8wACgkQJNaLcl1U h9AkUQf/bHqfsJCtxIZwe9pBVupRqgu3iwyqLmWXWCS8b3tyO4RvM/XBxkSH8NDY 6Plwt9R4CuvRGgVUyMLyuCNnZWj8925kgcmhPtXA2l3wdGq4pyvvxR3k4/tNJtpS W5d1csRIOqWJQSpR/L/THHCj1JcTqDnGLdU724MHA5QvVFjBgOLGFAnRgUmiZr5z ftO8+UoQsMrjzG7pAlMo7ACQ5EP7GLk865NzBloiiVOizs6tWBZHnIDup8vJJA2I n8i8bnblQBghWL4SZ6oBlr2AeRNTVDbKQXQnvSi8eLhU2qDwwAH61906roRs4ZQH N5khCHwX0zTrKaDUmzlPpAb7Gr8srw== =Fp4G -----END PGP SIGNATURE----- --D0qJCejxf+Euu+mv--