Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=209.85.128.48 ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1796223349; b=EHG8gmB8j9xxQuSie4kFdkbWqlj7Xg5O66UL55wyYjqRcGmOUit5avks0DDhkPLoPg/y 0UvHsp8s+upQgVBe8NQFJ9XRaHm1YVgAQflszrHk2E7nmidoHGkk6IPmlnJlrkhRbsk62 tvO0VVmn/LgRsVW7qdKnTtqKG6+CrotoDiMjDz3k9vToHtB0jT6T6uMtIN8JIHHUxkv1b mKT65gHtbwv/YPDYw2mwjjISloNHnrFJT89zMt+Orro34XiwwRvrdF71pH9d0SvUH4AQF 3TFIvxoZ3xK1AOZKDAOjfFHqwb3pB1NEbWb/Tuc+vFd0mCBXOG+Q8XXFJhr3JI4TGrw== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1796223349; h=DMARC-Filter:Received:DKIM-Signature:X-Google-DKIM-Signature: X-Forwarded-Encrypted:X-Gm-Message-State:X-Gm-Gg:X-Received:Received: From:To:Cc:Subject:Date:Message-ID:X-Mailer:MIME-Version: Content-Transfer-Encoding; bh=LKLCDUTkF/JWaarwnklRZW5w/2NNICAoxsVZFwNuEjA=; b=c5f1vNVGg6cHCa1JVJa7GbKpZ7LTou8rkJwfqlPTKPRK+fmUG855ttDagZUSdaxGGDM1 eStm2NKknmHonlWse0A84cEedOIdbmIhr6Fap/tnQIfUpDxjyncA6w4c46QLlPNiiSCgo kcAD8FHlxV7phpvrbRq2gtqYfFY0QNGSs/GtoTiadfjDkp2yPbJPNU9qSmpb0ZtkSxdKI j1EpUr2qWtJfjeKHRViXx8b9zY4T77fGnMsMuGnVktAOO2YE1O+E8hJGwQ08vUBT7qfAB FlIAA4bJGkyeeksUlus5G7Njo588r1owJYcBb2V7YJY9dN1F8Y/7CB7l339pxrkXfaA== ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass header.from=gmail.com; spf=pass smtp.mailfrom=gmail.com; dkim=pass header.d=gmail.com header.i=@gmail.com header.a=rsa-sha256 header.s=20260707 header.b=OTVAWm5p; arc=none smtp.remote-ip=209.85.128.48 Received: from mail-wm1-f48.google.com (mail-wm1-f48.google.com [209.85.128.48]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature ECDSA (prime256v1) server-digest SHA256) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 46B0E606A323 for ; Wed, 2 Dec 2026 14:55:49 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org 46B0E606A323 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gmail.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.a=rsa-sha256 header.s=20260707 header.b=OTVAWm5p Received: by mail-wm1-f48.google.com with SMTP id 5b1f17b1804b1-4bb6886d30aso125654425e9.3 for ; Wed, 02 Dec 2026 06:55:49 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20260707; t=1796223348; x=1796828148; darn=vger.kernel.org; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to:content-type; bh=LKLCDUTkF/JWaarwnklRZW5w/2NNICAoxsVZFwNuEjA=; b=OTVAWm5peu1/rwzYU5oqh7s4k3mPjeCqP14PKIezp/57GRvGXJcQpO9PK8M1cxWDVh NobO82JDDRiorsZ4h2/3lTU0aFxH8c6rNTWGQjdyLP1KCKizkwMI61jbtod0rDNFOz6Y Lv//3LZU2X9D0ovVGXGrWz+CCKcgPNT1W+8/YWC28SIPoLSTkLn4pzJlPBk+rbO2zGLn mLJ89je4DVjYo0baLiphruTZSJzTEHCNzxqa0umPHfFuj9dxRJJFWv4mXnttP3iUjbTL UJDyf+IbcpGsxJ+VwwHZd49GdPWJ/ZUEEXV8ipUC06tKbub0tgXbgMndIA6ItonlMEsW ipYg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20260707; t=1796223348; x=1796828148; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-gg:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to:content-type; bh=LKLCDUTkF/JWaarwnklRZW5w/2NNICAoxsVZFwNuEjA=; b=XXC3Zv8Bfy8/1T6GPFJv6uvWSi2shyw0B9aBow9q9F1T+fOs+j4TUNER2AmFgJWc4K 8B1MkvZ6+hhAeLnu1qEic6udCNiJ+vQweiXrc9FfK5LCfvVYKCRgLuC1Bw0FVVgiq/LC Zn2yRolnSER92BB8kd/FTfavMeYVucjxNA+4EnSA1Md5tn4k+q0EDdnEp+ROFFv713Lo gqgH8cL4Jj9pNnwSszFokn4SECtFduu6XHtpjxplVdXzfq59XOn/2CIbRreVBkH9kwiJ hrP7YiEILS1l52tAQzVgv0m1nksKoJQcg47qOJrMHoau10CsdQZ7Y7+xU9a2HhN0q7wQ U7gw== X-Forwarded-Encrypted: i=1; AL+hErFOZjNn3+23NPbHWaBFeCy2jyBUuNhIlXfh6xUMJhkNn3L8epesHN4lfYQPKiCr6CCuV8Pw/mvDYK0/Ag==@vger.kernel.org X-Gm-Message-State: APuU4Z/vS4PY6ANfCi3sYE0uzVOMfRLs4EnXwDhL7ofVmjXPVizrQDYZ CLMtOv8aaNqbUQXOaaTeL/cGEr/yyOrEJ/UXMGD89wUWMdCaAjQmhxbu X-Gm-Gg: AZFdTZeN8whYS4qvmjKm3fYn47k99R6ia+Ykmvg940AxiHh6GHW7+fQMimMBe/LhbWE uJ3PsJX7BdTAh+OeE0vuXNRF+s5VIlAKkFWafGcVgihQVJUkyFkhXdDePvDZ4luNGQs1mBKn7I+ ejrufwMbSpK2aU5C/esEenbm8w7AgmBZT1QmEn3CONvgStDv0wmP5smP6UH9wKh6liEQSg3ieQA SxwTeLhq7XIf914pzYefernWXicxOOpO/X4aHWg1n+fR1FOOG1TJmpecj92JQ3E9ZO/31xhyNrQ EoUckx9Ivm6N6nkPHyhkjppWMjKAlVLQoLY23VDbLOyMkC6Xbf0YadP1/OytntnoHWrKYtjuIIO 6ovnSXrXDXkFeKPLqIaUjDaFzzDSLkSZETpfFtt2zfPwBDf4oScYbjqRoMy7UGITYlVokGSVdP4 4zjZxit+N+/v0WL+prtiD16z8p5DL/r/4drVz2RoJeJrjLeo+Eiv1Xyc0A7tuYS79jZ2zGOGmTP 5+kbHeyNvCba0jSMCjvPrIUfe4guG52UN7CLBOe7rj1qFQHA1vYWaOOK75GdYG5cvsxdaqQ8CHw OW/MEI7PCkT2xnFrUDVEN3VreIxZeedLvJPKdH/qX1m6e3NDY9lyBAC2l1TThgtv7H2GdwBSCBX 8dm6ZwtjyJ0orvwp99fkoEdY8gEw2Rt1ibiHalQjmO3dAoS6L8HSCwifzeopn2DYP6rwgdr03FX VHv2X3DPDUSwTuckW3e51CR1xKtVknX7Wyu6iFRwPbVZMy8QnIch1D2bh615D669dcMMblydDFz 4LtW0WowLx5dj1P1O53 X-Received: by 2002:a05:600c:870b:b0:4bb:c3b3:13c3 with SMTP id 5b1f17b1804b1-4bbc3b31449mr193315425e9.32.1796223347456; Wed, 02 Dec 2026 06:55:47 -0800 (PST) Received: from px13.tail3a7e86.ts.net (91-201-160-62.ip4.as24916.net. [91.201.160.62]) by smtp.gmail.com with ESMTPSA id 5b1f17b1804b1-4bb88442693sm1016912345e9.1.2026.12.02.06.55.46 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 02 Dec 2026 06:55:47 -0800 (PST) From: Lee Mann To: Mark Brown , Liam Girdwood , linux-sound@vger.kernel.org Cc: Baojun Xu , Shenghao Ding , Niranjan H Y , Thorsten Leemhuis , regressions@lists.linux.dev, Antoine Monnet , Andrey Golovko , Pierre-Louis Bossart , Matthew Schwartz , linux-kernel@vger.kernel.org Subject: [PATCH RESEND] ASoC: tas2783-sdw: restore the stereo split when no SDCA function data Date: Wed, 2 Dec 2026 14:55:40 +0000 Message-ID: <20261202145540.121442-1-leepaulmann@gmail.com> X-Mailer: git-send-email 2.56.0 X-Mailing-List: linux-sound@vger.kernel.org List-Id: List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Commit f42fbd560cd8 ("ASoC: tas2783-sdw: add firmware download status check") removed the per-amp channel mask from tas_sdw_hw_params(), on the basis that the channel is selected by the SDCA init table from ACPI DisCo. That only holds when the SmartAmp function is parsed. On the ASUS ProArt PX13 (HN7306EA, two TAS2783 on SoundWire link 1) the ACPI declares the function type without a DisCo constant, so sdca_parse_function() fails, sa_func_data stays NULL and the init table is never written. Both amps keep ClusterIndex 0x01 from tas2783_init_seq and, with the full playback mask, the right speaker is silent. Restore the split for that case only: when sa_func_data is NULL, give each amp a single channel from its machine-assigned prefix, as before f42fbd560cd8. When the function data is present, keep the full mask and let the init table select the channel, so platforms that parse the table are unchanged. Tested on the PX13 on v7.3.5 with the v7.4-rc5 driver plus this patch, speaker-test -c2 -t wav: stock ACPI (function not parsed, split path): left and right correct SDCA function parsed (via the out-of-tree fallback from SOF PR #5904, init table applied, full mask): left and right correct Fixes: f42fbd560cd8 ("ASoC: tas2783-sdw: add firmware download status check") Closes: https://lore.kernel.org/all/20261107212552.10990-1-leepaulmann@gmail.com/ Link: https://github.com/thesofproject/linux/issues/6037 Assisted-by: LLM Signed-off-by: Lee Mann --- Resent as a new thread; the first copy went in reply to the v7 thread (https://lore.kernel.org/all/3a7685b52ad14928828ff36f717b9440@ti.com/). No changes. Baojun, your boards parse the SmartAmp function, so the init table selects the channel and the split broke them. The PX13 ACPI does not ("function type only supported as DisCo constant"), so without the split nothing selects the right channel. A plain revert would break your boards again; this keeps the split only for the unparsed case. I can send the PX13 ACPI tables if still useful. AI note: written with Claude Code; I reviewed, built and tested it. sound/soc/codecs/tas2783-sdw.c | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) diff --git a/sound/soc/codecs/tas2783-sdw.c b/sound/soc/codecs/tas2783-sdw.c index 3f21700..45b45cb 100644 --- a/sound/soc/codecs/tas2783-sdw.c +++ b/sound/soc/codecs/tas2783-sdw.c @@ -995,6 +995,26 @@ static s32 tas_sdw_hw_params(struct snd_pcm_substream *substream, snd_sdw_params_to_config(substream, params, &stream_config, &port_config); + /* + * 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. snd_sdw_params_to_config() + * hands every codec the full mask for playback, so the pair would render + * the same channel. In that case claim a single channel per amp, keyed + * off the machine-assigned prefix (soc_sdw_ti_amp.c names the amps + * tas2783-1..4). When the function data is present, the init table + * selects the channel and the full mask must be kept. + */ + if (!tas_dev->sa_func_data && + substream->stream == SNDRV_PCM_STREAM_PLAYBACK && + params_channels(params) == 2 && component->name_prefix) { + const char *idx_str = strrchr(component->name_prefix, '-'); + unsigned long idx; + + if (idx_str && !kstrtoul(idx_str + 1, 10, &idx) && idx) + port_config.ch_mask = (idx & 1) ? BIT(0) : BIT(1); + } + /* port 1 for playback */ if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK) port_config.num = 1; -- 2.56.0