From mboxrd@z Thu Jan 1 00:00:00 1970 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 A1B8B41B357; Wed, 4 Feb 2026 15:04:40 +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=1770217480; cv=none; b=CxheSdbw4qi9aYigXICTBZF5h5VlRn60XPrjRj6/82QvNLtOibBG1Jey5ut2NLSU0NaXTgwklPrQnBRZUXZZiSrF3SPv3Tm5HPu2EqDlZplT1hxVEr6hMfAUeHSbBxOlS6EZ4KawGRnWhb3+SsdjFvp4hjY7oasG4/TNHP692FE= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1770217480; c=relaxed/simple; bh=UZdTxqDPsaPfLeIbVdI/oYjalVGa/InhyvxKcuXRPHc=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=AnJpUci4RrTZU78P41+zynIU2MxhFp4/2ObJ8hZ2pt9LRqE/XsfMJkkWJvsGQMScmVufzaaehEv22jO+egNN8f9zgRWrBfsi3lI5q/TC5yxZSvYQMY2Zv4KzJYAw6jC3pQQJkLTFWBS1stl7Kn0JMi4CqmqnPK0soKBSGMTp9GU= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=ftWUde65; arc=none smtp.client-ip=10.30.226.201 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b="ftWUde65" Received: by smtp.kernel.org (Postfix) with ESMTPSA id E7534C4CEF7; Wed, 4 Feb 2026 15:04:39 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1770217480; bh=UZdTxqDPsaPfLeIbVdI/oYjalVGa/InhyvxKcuXRPHc=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=ftWUde65GYVdagPPVeOZ+Tb8plCQr8pLoNnHXMEg+0aMNPn4HzgQYjJ2XWsP1ZgtK jSNHzggUv9X0yPAxi4N943FTHfgfd1QeYZv+Rr62FtdO60IX9KPkMEHgywJy3vJqMx J+O2NBndcR3lSJc6z6YqWIrwcJc61OJd7/5iWLUY= From: Greg Kroah-Hartman To: stable@vger.kernel.org Cc: Greg Kroah-Hartman , patches@lists.linux.dev, Emil Svendsen , Sascha Hauer , Mark Brown , Sasha Levin Subject: [PATCH 6.1 028/280] ASoC: tlv320adcx140: fix word length Date: Wed, 4 Feb 2026 15:36:42 +0100 Message-ID: <20260204143910.648673202@linuxfoundation.org> X-Mailer: git-send-email 2.53.0 In-Reply-To: <20260204143909.614719725@linuxfoundation.org> References: <20260204143909.614719725@linuxfoundation.org> User-Agent: quilt/0.69 X-stable: review X-Patchwork-Hint: ignore Precedence: bulk X-Mailing-List: stable@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit 6.1-stable review patch. If anyone has any objections, please let me know. ------------------ From: Emil Svendsen [ Upstream commit 46378ab9fcb796dca46b51e10646f636e2c661f9 ] The word length is the physical width of the channel slots. So the hw_params would misconfigure when format width and physical width doesn't match. Like S24_LE which has data width of 24 bits but physical width of 32 bits. So if using asymmetric formats you will get a lot of noise. Fixes: 689c7655b50c5 ("ASoC: tlv320adcx140: Add the tlv320adcx140 codec driver family") Signed-off-by: Emil Svendsen Signed-off-by: Sascha Hauer Link: https://patch.msgid.link/20260113-sound-soc-codecs-tvl320adcx140-v4-4-8f7ecec525c8@pengutronix.de Signed-off-by: Mark Brown Signed-off-by: Sasha Levin --- sound/soc/codecs/tlv320adcx140.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sound/soc/codecs/tlv320adcx140.c b/sound/soc/codecs/tlv320adcx140.c index 4405934120e51..67eef894d0c2d 100644 --- a/sound/soc/codecs/tlv320adcx140.c +++ b/sound/soc/codecs/tlv320adcx140.c @@ -728,7 +728,7 @@ static int adcx140_hw_params(struct snd_pcm_substream *substream, struct adcx140_priv *adcx140 = snd_soc_component_get_drvdata(component); u8 data = 0; - switch (params_width(params)) { + switch (params_physical_width(params)) { case 16: data = ADCX140_16_BIT_WORD; break; @@ -743,7 +743,7 @@ static int adcx140_hw_params(struct snd_pcm_substream *substream, break; default: dev_err(component->dev, "%s: Unsupported width %d\n", - __func__, params_width(params)); + __func__, params_physical_width(params)); return -EINVAL; } -- 2.51.0