From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=100.103.45.18 ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1796307341; b=IGIRLb/dLT83KAXeKYLw5ip973WkU76burcK7o8/5jnaSaSYQFhUFmZJLZFw/+IuaWSG TKrqpFuxhlmE2Y3cqGsoxi185u5bJF0HuwRr34UGuyaRqkHQ300/xs6WH3aFmXEeC5BI2 V2jubVKCCl1C6Vj6EjnvXP0OYOCYqNAtM2g1Jg2qnV7zkZ5SgMlObyODndxUNYt5PyG0J t4yFVa2T7Slq/N8zN8HE/3E9ETzU1vftM7dBgOzt45F1yUFNiBQebIJKIE/HpSiByoeyx YFeAkzhLNRbhax8sXlNYe11AdYi7IC60h5hELxaf89WTB+T+crxKLOw0Irmxiifdudw== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1796307341; h=Received:DKIM-Signature:Message-ID:From:Subject:Reply-To:To: In-Reply-To:References:Content-Type:Content-Transfer-Encoding:Date; bh=/+ZppxDE7gQiUStW1iN2118/Rsl2SPOMMxvtU638tdc=; b=4cOX7Ivu6dA4ozn9xEw+GV4IEfUuXF+zaS3jLETbk9qlC3YYlSU+gkO3+pwon8s5ys7b VfVElk4h7uLpsPGAhEKkE3aoMl3IEMzMcCbVdqSBLov2a3zSxDv/G87npaaPpDjxH0yWX V5k782TbNR0VMkx5+G0xpi4l6QKdPpTQ+mjoEfxOMBx6RGmujOzIO/nsPzDje5DDh0ey7 flZW/08/vWu258BhfJY3RS90MF413mYtOeWt4h1dIY3K3GO09APPCtBZ5K1p57glllA3J dMQc5Z7LoAvcvp+kHKttzxf1fLEl0nbtSBNySl/PAPqwKKr4+wR8dAYxEZ/kf6JaTHQ== ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dkim=pass header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256 header.s=k20260515 header.b=nKPSuoEb; arc=none smtp.remote-ip=100.103.45.18 Received: from smtp.kernel.org (quasi.space.kernel.org [100.103.45.18]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (prime256v1)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 5F5C7606A322 for ; Thu, 3 Dec 2026 14:15:41 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256 header.s=k20260515 header.b=nKPSuoEb Received: by smtp.kernel.org (Postfix) with ESMTPSA id 8D2511F000C1; Thu, 3 Dec 2026 14:15:40 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kernel.org; s=k20260515; t=1796307340; bh=/+ZppxDE7gQiUStW1iN2118/Rsl2SPOMMxvtU638tdc=; h=From:Subject:Reply-To:To:In-Reply-To:References:Date; b=nKPSuoEby66CJXaSm/8ByucHBRUfpewOD6mvROYKLFfOuw+yuDFlW+fTUm56MWnkf Gt+2/hd9XR0anuXkAOF0jEM/2LZ1cvY86fz5lYOfXUsNz12SXTOMq0dClaiTWA9OB1 3v50gR/WrXbFAd1YKktaQQnDPBjHY7GPkmWCh6ZZxGbZNPQoscBGrMrKa3WVtGM2LU T+8+ZplmtXe2X47yc0qpEHKDHbzf7EemH2MocSYOePsYOSZVyVGrH1dkZhbfTn00tP HWtQF7o4QI3hlhKlO8bJI9hzIuaiaL02C13RIUDj3VmcWzTz3tAVUZfZ6fz6ViON/V S+UYmDO3JFKEw== Message-ID: From: sashiko-bot@kernel.org Subject: Re: [PATCH v2] ASoC: tas2783-sdw: restore the stereo split when no SDCA function data Reply-To: sashiko-reviews@lists.linux.dev To: "Lee Mann" , linux-sound@vger.kernel.org In-Reply-To: <20261203134857.11614-1-leepaulmann@gmail.com> References: <20261203134857.11614-1-leepaulmann@gmail.com> Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Date: Thu, 03 Dec 2026 14:15:40 +0000 X-Mailing-List: linux-sound@vger.kernel.org List-Id: List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list Thank you for your contribution! Sashiko AI review found 1 potential issue to consider: - [Low] ASoC: tas2783-sdw: inaccurate comment on ClusterIndex and ch_mask routing -- commit faa58a455f0635ef0eb57c9ed35971c94e6b53eb Author: Lee Mann ASoC: tas2783-sdw: restore the stereo split when no SDCA function data This commit restores a single-channel port_config.ch_mask and sets stream_config.ch_count to 1 in tas_sdw_hw_params() for two-amp playback lin= ks when SDCA SmartAmp function data is unavailable. Link: https://github.com/thesofproject/linux/issues/6037 > diff --git a/sound/soc/codecs/tas2783-sdw.c b/sound/soc/codecs/tas2783-sd= w.c > index 08b37e7b3a9e4..899873a169b43 100644 > --- a/sound/soc/codecs/tas2783-sdw.c > +++ b/sound/soc/codecs/tas2783-sdw.c > @@ -994,6 +994,30 @@ static s32 tas_sdw_hw_params(struct snd_pcm_substrea= m *substream, > snd_sdw_params_to_config(substream, params, > &stream_config, &port_config); > =20 > + /* > + * Without the SDCA SmartAmp function data from ACPI DisCo, the per-amp > + * init table that selects each amp's channel is never written and both > + * amps keep the ClusterIndex from tas2783_init_seq, so with the full > + * mask from snd_sdw_params_to_config() the pair renders one channel. > + * With one amp per channel, give each amp its own channel, keyed off > + * the machine-assigned prefix (tas2783-1 left, tas2783-2 right). > + * Links with more amps than channels keep the full mask, as do > + * platforms where the init table selects the channel. > + */ > + if (!tas_dev->sa_func_data && > + substream->stream =3D=3D SNDRV_PCM_STREAM_PLAYBACK && > + params_channels(params) =3D=3D 2 && > + snd_soc_substream_to_rtd(substream)->dai_link->num_codecs =3D=3D 2 = && > + component->name_prefix) { > + const char *idx_str =3D strrchr(component->name_prefix, '-'); > + unsigned long idx; > + > + if (idx_str && !kstrtoul(idx_str + 1, 10, &idx) && idx) { > + port_config.ch_mask =3D (idx & 1) ? BIT(0) : BIT(1); > + stream_config.ch_count =3D 1; > + } > + } [Severity: Low] Are the comment and commit message accurate in saying both amps keep ClusterIndex from tas2783_init_seq? tas2783_init_seq writes control 0x10 on TAS2783_SDCA_ENT_PPU21, which is SDCA_CTL_PPU_POSTURENUMBER, not ClusterInd= ex (control 0x10 on TAS2783_SDCA_ENT_UDMPU23). The comment also implies that BIT(0) vs BIT(1) from component->name_prefix selects left vs right. sdw_compute_slave_ports() only uses hweight32(p_rt->ch_mask) to advance port_bo across m_rt->slave_rt_list, so channel assignment comes from codec ordering on the DAI link, not the bit. --=20 Sashiko AI review =C2=B7 https://sashiko.dev/#/patchset/20261203134857.1161= 4-1-leepaulmann@gmail.com?part=3D1