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 F3D84286A4; Wed, 4 Feb 2026 14:52:09 +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=1770216730; cv=none; b=l5Ayt8TCCuzxv17Z6Q1lVhYiRNugJV566gHbGxrrqTLGx7eTbCsSbu4XblT7mj3HMtB1VuD+hhINfUyeRXvhHggeETWBIpsbP0xGWSSRL/7vfdylDhKhjVh5Amn1GVCZ2JPDOTbzZiJ7d5p6XsBztZbLjS0UIqER11M9Bh+k8Os= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1770216730; c=relaxed/simple; bh=GfgjpmnQ2T7+/scDBrgTOfHkWKzJYZCDmTfb1urC7eU=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=ahy2+4ykeL21FTLEXeafunoaCySHJsc0uPfbLkpAKQAEjq3XA2NtO2dt8IbGQTu5KNmblL/Q5Oa/9JX5cwuBE49zOAi7fNssdjdz3ZUhJZ7dDHJX/Lrfv/J+Sv0mjVl4DpI0qA4tCc9VWidtjQcc8aPTzsmBfdy3Z+MzTNRakus= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=06dR7soF; 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="06dR7soF" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 82ECBC4CEF7; Wed, 4 Feb 2026 14:52:09 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1770216729; bh=GfgjpmnQ2T7+/scDBrgTOfHkWKzJYZCDmTfb1urC7eU=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=06dR7soFV3sNsOC51NJKcx/eGT52I8MNCEE/0CKveAUM7xtp0aMBED2RBswBkMmj2 iHCVQp58Uo0iDrB6u55Nk/Lc2JMQL+ps4KoIwhU4OOhFc7hdLfSyQX1HOKp1GCuSoW KKjBHJ2Z8tCXiGnsIVF+SOzlt7a3oFIFKTlf9eeY= 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 5.15 014/206] ASoC: tlv320adcx140: fix word length Date: Wed, 4 Feb 2026 15:37:25 +0100 Message-ID: <20260204143858.717674699@linuxfoundation.org> X-Mailer: git-send-email 2.53.0 In-Reply-To: <20260204143858.193781818@linuxfoundation.org> References: <20260204143858.193781818@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 5.15-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 06d2502b13478..f7fbe3795f98a 100644 --- a/sound/soc/codecs/tlv320adcx140.c +++ b/sound/soc/codecs/tlv320adcx140.c @@ -673,7 +673,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; @@ -688,7 +688,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