Received: by 2002:a05:7208:3188:b0:7e:5202:c8b4 with SMTP id r8csp983209rbd; Fri, 23 Feb 2024 09:20:30 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCVjNDiUkG8lwZ3kC+pvxMYn2V8mvNVpOeLM9uLd7JYk/YcKDojDZNLaa4As5DZhJdck5I1R7RSEzcmDC0UraUqdQw0m3aLTCtr0Hbxgbw== X-Google-Smtp-Source: AGHT+IG/aU8qO6u6sT9+ZPNTTPwayuUT45dQ52IQdryuS+e7C97ecf5fM/WUnrC3SKwqSSioJ9WN X-Received: by 2002:ad4:5946:0:b0:68f:7557:588f with SMTP id eo6-20020ad45946000000b0068f7557588fmr1017662qvb.17.1708708830527; Fri, 23 Feb 2024 09:20:30 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1708708830; cv=pass; d=google.com; s=arc-20160816; b=Ft2HNKrNH+wk4c77HpWrIcQ+W6Zqrygq5+Ck43hkRF0kdlsGqzTahdkFvoh0HFT/7J ArglHwUrGhnyuaT/7hg/B1lWcIBOmE56b/gzHmmqyYjMRsJ2rUyXYf7g4v8/sSRTsV9t NLpM3YGWk5W9IwEUNEjBdZ2XBZ6k9c/wg2MqFeSxQLxZrOrcbNhNMf0Ef1p+Lh0ngrDM qFMOoJepdl5qi5CkzA8BCTS97oVwdc2PPLgJw3lIkvOCIa0Ela7vfdE81Yj4FbVscwk8 xL+MTdc9xZ7Z+hrprItUV66lTrnlbL5Ls8GbZatTYLwz313Yqeu1Hh7i8GzhY1lJCXtz rTyg== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=in-reply-to:content-disposition:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:message-id:subject:cc :to:from:date:dkim-signature; bh=zui7dmXAuaEFcp0EaToNeu6pCexXkpQYjRRSMzjkNfw=; fh=dchjL7adTo9cDVCawF9JmFT9oC/0wfGdm8DuKo7SpOI=; b=b64d++hBjLfMSc/ad75S5Y5VL5fPLfu69mrco13VaOO7oOtMVx8yaLPtXybnvjRL6M 5CWzLGeUTeAKmszJB6CxOItssglR2JlfLksXdbywBUtySLZ2xBzFNhfaAUkWh4WfKELG kqaxvdALRsZ7IIu+6RGCJ5gsmS0OtAKnFS6w8SY4UmxCFEup/Rpyp/sAjgxutNr67Mpb Uk6T1xGNxe/HdE+7NcoQz0dokgowDi0cNsD356rVahkiEWKa7OfhZQqnMqSZFva0OtwR InKe1AEcdE6gXHb0yiMtZLJ+FxXKfRsMw2XdW8owqOB2gKZ+Q12gXXODJAMf2CE/8Jjq vEaA==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b="j2wHc/gq"; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-78820-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-78820-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [147.75.199.223]) by mx.google.com with ESMTPS id ke24-20020a056214301800b0068f03325de7si11033473qvb.366.2024.02.23.09.20.30 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 23 Feb 2024 09:20:30 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-78820-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) client-ip=147.75.199.223; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b="j2wHc/gq"; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-78820-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-78820-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ny.mirrors.kernel.org (Postfix) with ESMTPS id 30AAE1C238DA for ; Fri, 23 Feb 2024 17:20:19 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 6874A12CD9A; Fri, 23 Feb 2024 17:20:13 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="j2wHc/gq" Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 8E07712AAE0 for ; Fri, 23 Feb 2024 17:20:12 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708708812; cv=none; b=KyMkBykp/kZbBOmqv16/D8IzTtXOp2NbK6CsJ4AhP9Fn+Dcgi1YRoJsPhSqe8YDk+LO7w1M8yXtBMlAqTx7L97KcPc0aEaB2yiRV5ekdXO6cKc0f7QTxV5DsvuWWBldKbAWybdJYBYkj6OE3nBvLOfMLXNcZiUlO6srC76Z4PSE= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708708812; c=relaxed/simple; bh=T3y3bvy64o+ZYZ7fO4C4nj0LTrwniTjzjpka6LToHr8=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=kKNpgkAv3P49UxO9rI04kMauIVl9Sw1zHD/zTyvyp/WsN0frNU2/SerbJpssWNs38icnOQY4J6TxMpUenZy7n3zghBSBLX0+GyVQKEgJnVYUcOt6S2nmZfHvmK0NAVmMeLm0W33g/LjBL/fTrNDb+1zl8EUAq6I9GkyTOnHlCFs= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=j2wHc/gq; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id 00988C433C7; Fri, 23 Feb 2024 17:20:11 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1708708812; bh=T3y3bvy64o+ZYZ7fO4C4nj0LTrwniTjzjpka6LToHr8=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=j2wHc/gqwUx4LU7n5jV4YJGxdYvcIIlVOlZgIu0Gv7+6tjiPvHaqsXIvFAFgkCVVb Yyb/b9rxiY/iKEy++S21TC79mUB1hinHwv7463qyAbYlphTWnY9FePw+xQS3z9HZgC erlaHvgN7pC3nKiH8w6yEFYasWS47UJ8hYOmqdr5BlLO0kTbLE/K5vUImKcC9QQAyF dSGCaDa/euhWKFmSmaTcRwFYjVAXcdVBwehQ2m/EWxnbtNfoOXlZoYWenZafd4aCpZ fWdtzy/CyFgRqvvRJrHmHa+TW4J3dJlbBQZaZyAsHk3JiwPTe5lD4lCKqk3+sgzLSo EoJk8CpQwCBKw== Date: Fri, 23 Feb 2024 17:20:09 +0000 From: Mark Brown To: "Ding, Shenghao" Cc: Pierre-Louis Bossart , "andriy.shevchenko@linux.intel.com" , "lgirdwood@gmail.com" , "perex@perex.cz" , "13916275206@139.com" <13916275206@139.com>, "alsa-devel@alsa-project.org" , "linux-kernel@vger.kernel.org" , "liam.r.girdwood@intel.com" , "bard.liao@intel.com" , "mengdong.lin@intel.com" , "yung-chuan.liao@linux.intel.com" , "Xu, Baojun" , "Lu, Kevin" , "tiwai@suse.de" , "soyer@irl.hu" Subject: Re: [EXTERNAL] Re: [PATCH v9] ASoc: tas2783: Add tas2783 codec driver Message-ID: References: <20240222074000.659-1-shenghao-ding@ti.com> <10f53a13-a0ff-40f9-b089-f5baacdb76b6@linux.intel.com> <5c7127256bf54fcd921fc1ec83f3e527@ti.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="JSSHE0FUht8S9Os8" Content-Disposition: inline In-Reply-To: <5c7127256bf54fcd921fc1ec83f3e527@ti.com> X-Cookie: You might have mail. --JSSHE0FUht8S9Os8 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Fri, Feb 23, 2024 at 10:12:49AM +0000, Ding, Shenghao wrote: > Hi Pierre-Louis >=20 > > In the SoundWire spec, the unique_id is *LINK SPECIFIC*, and only used = at > > the bus level within the context of a link to help avoid enumeration > > conflicts > > If you are using the unique_id as a SYSTEM-UNIQUE value to lookup EFI > > data, this is a TI-specific requirement that needs to be documented. > > That also means you need to double-check for errors so make sure there > > are no board configurations where the same unique_id is used in multiple > > links, or by devices other than tas2783. > This code only covers the tas2783s sitting in the same bus link. As to ca= ses of the > different SWD links, customer will be required to have the secondary deve= lopment > on current code. I'm sure my customers have much knowledge to handle this. As Pierre says I think we really should have some sort of defensive programming here, even if you're going to leave multi-link systems to future work people will still have older versions in distributions or whtaever. While I'm not sure the consequences of getting things wrong are likely to be that bad (I'm expecting bad quality audio) it's also going to be kind of hard to figure out if we just silently pick the wrong calibration, especially if it's actually a valid calibration for another device in the system. Other vendors (eg, Cirrus) seem to have figured out a scheme here? --JSSHE0FUht8S9Os8 Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQEzBAABCgAdFiEEreZoqmdXGLWf4p/qJNaLcl1Uh9AFAmXY08gACgkQJNaLcl1U h9CDTAf/bo/BBm0FaalBPQlGYIf6F1SuRLsnvDOwApCG85Z6wSol1qV1EdXwsRHM 4ijYqyHPymwdgpesQnl3LhgpuZ2m/eMk8xXOqOtjC/yCLN0f59uCAmw7XglxhQsP WmS/0JEZ3Xv2+JcddbErmCdrWi+uJQkiJuhUYkxpx9p0gao5pYarIOoNyHC9vCFF K+Cxv/YKjuQqakXNVGTfvC7ywD7iX3tT2UVtlAFm8VnFr9W44jkggE9MzyJPP9xb yvqkqyrcKIEUCGSdMJLxXFTiT1N3cfWPN2/kjJ933DZMEHp2L1ytio4p1lionLE7 +KMiDfhfNZabb3w0gy+dU7MI71OnbA== =aP7c -----END PGP SIGNATURE----- --JSSHE0FUht8S9Os8--