From nobody Sun Dec 14 12:13:36 2025 Received: from mx0b-0031df01.pphosted.com (mx0b-0031df01.pphosted.com [205.220.180.131]) (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 0D3AD2D3A94 for ; Wed, 10 Dec 2025 06:52:44 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=205.220.180.131 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1765349566; cv=none; b=Wv231FFZyw7BA7E5sTvxi7shqzewkJfdAkJCj0J8k61/8JbK6fNB3ei7FSU36gSoVrGGKUZcOlEDzEjmNHXzjyeYVNpwC/eeBSWY/adJD0pvFCCfVhv5ihs1qqCeB/1s5tfDaiEjw0Spu5jfJ5FMvvIwFn5zjkhUVbdGdmSgcDE= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1765349566; c=relaxed/simple; bh=eU0rE+w8vLoH6e33KwYCTSmr+/UOuCFYdFezzoORBnI=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: MIME-Version; b=aGP4KvdQZsqzlupWoIcbvM+fD6XXo2L4hxSbeviyToXlAg+v6DhhnKcd36Z6rmwxf7daGsjo+1lhAtz82k9AYVVihv2oeh9hVPEFA+yrmG4HlitFJYodZxvCCbfzF50UoiYcc7T6da0fgFO30iRSlnkJnVimQCvXt6HXMLUitDk= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=oss.qualcomm.com; spf=pass smtp.mailfrom=oss.qualcomm.com; dkim=pass (2048-bit key) header.d=qualcomm.com header.i=@qualcomm.com header.b=PjHw9q66; dkim=pass (2048-bit key) header.d=oss.qualcomm.com header.i=@oss.qualcomm.com header.b=B7lBg+LO; arc=none smtp.client-ip=205.220.180.131 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=oss.qualcomm.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=oss.qualcomm.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=qualcomm.com header.i=@qualcomm.com header.b="PjHw9q66"; dkim=pass (2048-bit key) header.d=oss.qualcomm.com header.i=@oss.qualcomm.com header.b="B7lBg+LO" Received: from pps.filterd (m0279869.ppops.net [127.0.0.1]) by mx0a-0031df01.pphosted.com (8.18.1.11/8.18.1.11) with ESMTP id 5BA6DwxE2460932 for ; Wed, 10 Dec 2025 06:52:44 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=qualcomm.com; h= cc:content-transfer-encoding:date:from:in-reply-to:message-id :mime-version:references:subject:to; s=qcppdkim1; bh=DEoF490jUeX CQq+pu07fhdbph37+1R3iDlBmh9qDxUY=; b=PjHw9q663QpTkMRc1HKt+JKCYyM 4Q6L5WwdfxUBXsZ52R/LSuSRxOxIpHrk3GI9LB9pkTaAHyxN/+gxxqC6uAyt/WFx ipcDRwwJZNN29y6nT4iRaaxIqkQnJJi+/qWEPeDCbCSz2ONSXW/3PI2hZrT3Q/L5 JNRBDbAeYcu7b9TFjyJWUtG0IfqsVMNXSEpBTdNNT3+sWueEfFKkGdKHgYHIg0cO tz3aA5OcP1BZDb3w9O3BDar6l+S2JEmctpSOT9Ph32iwb/knxW3caMlJnOJ7AG/j DPHORacn6b7c/dGLn4w6kW8ilBQDnSocEe1ZLy0X7w8aCjMH1ouDudwkG7g== Received: from mail-pl1-f199.google.com (mail-pl1-f199.google.com [209.85.214.199]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 4axqu5aajp-1 (version=TLSv1.3 cipher=TLS_AES_128_GCM_SHA256 bits=128 verify=NOT) for ; Wed, 10 Dec 2025 06:52:43 +0000 (GMT) Received: by mail-pl1-f199.google.com with SMTP id d9443c01a7336-29848363458so137457225ad.2 for ; Tue, 09 Dec 2025 22:52:43 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oss.qualcomm.com; s=google; t=1765349563; x=1765954363; darn=vger.kernel.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=DEoF490jUeXCQq+pu07fhdbph37+1R3iDlBmh9qDxUY=; b=B7lBg+LOqD1LMcVwCuHir4J4pHLMAJYUcb7BsYzA7xadMUEVii97cqRmJA21z7VTBa px2au2BSTrlLSexwJvHKT9x2C6MCni1ivzeaaFdQTx9R9HKbVoJSKsAvGZ9Pw4f9Uukv cWSM+vxBvQ9dBh/IBeq6mpqoehBpJUzcBIrWuENkkW9N/AxGzxgNtBOQSBR0s0oxr5k5 tPIcqwp8+2z49iX2P00s/yJ1sLllnqtLgxDYjj19ty4Dnm+fz0alQ5k20EbP2F8d1S62 1ti8ngb41Bpw81mmTmYnqi7UF24vGvKfrBYCOzYnbUgmaEjo4O6zX0C7TDejilErPlFr WSLA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1765349563; x=1765954363; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-gg:x-gm-message-state:from :to:cc:subject:date:message-id:reply-to; bh=DEoF490jUeXCQq+pu07fhdbph37+1R3iDlBmh9qDxUY=; b=obofcPefB+E0M2VU6cD8ra4ryb7D9gHN+VD3vxhXTdzpywcybH2KjLE1iGudp/04AH bPNqV/3uPdO4SppP//EdeTbcFzprPjhK2ao9G35ZxuoQ07xFPzBsqNc3GCqPjYosobnw QkHlPYvVjljepHMo6TjAYPwMfCZwi6W71CsqO6esZ0ZfKC7cSg2EBQ3zp+adbvMUCq+C x2SmFq6qSM/L4A+AWlZwhjIJ7/NYI2wRTTrPJwXMGozMeOeUfemCGDP94CXjBVxXoRqn 6QMjm6pMtFV9HFjsmQy42PKLArTaoOuNxZ043a4I0H1E64sLhTN4Z82IbMvd7nY5hH7k cTWg== X-Forwarded-Encrypted: i=1; AJvYcCUgXpBTeagaSXUHpzLe/OwLdGuB/rVNxFOrXPf/wHMmW/H00H0pSzV0uE+hvo28O5hHXWtSgJtADhyMP3s=@vger.kernel.org X-Gm-Message-State: AOJu0YzDB0wGJHYiIfipT62Dv6Bx3uAlhm9O43XlnVI9GGRRib8NTN1q DGl68McnQy+8U+pLiC+QAHLA1RGzJQpuh88vYlTRpiPkuzXtS7BVDYSpoUHqwpNMms3AEJEWg3+ pv0o3dijB8yP7B6d3CqfuYSbMyZSuSP3TrbLowhW5hULXzNfw4kDzxv9s7iW1mKGUjtI= X-Gm-Gg: AY/fxX54jlcPM3BHU08btOCfsH9ugvFS4Y3XBvrvL6rGXBhpI69BpobzU2H8m1EeVhj hhm7QGkhJdi9fbXx+JuXUMrM8manrPi9C+R/MOkSCc9SiEIBwWdoo8JZqV7/IZ7b9nKALxel9Pq mqsT0Kz53pqIGpDSnzKh0hiEaFv7QndbGP92wo+eWHl+lZwrar9W5Dfi5EETH1PaBw2/8EZTPMv boGvambxrLj91LdlIf9spxQO8kWASw4iy5mAJJh6UTM6Nv83yyBZDkx4d6nHs2WBmBNqPCQMrWp UaAVZ7zktW67II7gQUyzn9knEbw3tUQSzeycwFZH+HtwBYBitpbnMTlRrGzC9uU316/0T8mLAAg hfFmyHbrLxngDmEz8tOG8y/GXnbzLmf/+cjx7XsQ= X-Received: by 2002:a17:903:290:b0:29e:9817:1cc6 with SMTP id d9443c01a7336-29ec22ca92cmr15576435ad.3.1765349562763; Tue, 09 Dec 2025 22:52:42 -0800 (PST) X-Google-Smtp-Source: AGHT+IG2flnIXL94He+2EXGROYJMEPH1vwcVF3g7/KAv3F7rrJZbe1dwVfQC7DMstVyaDzNXa3HpbQ== X-Received: by 2002:a17:903:290:b0:29e:9817:1cc6 with SMTP id d9443c01a7336-29ec22ca92cmr15576185ad.3.1765349562337; Tue, 09 Dec 2025 22:52:42 -0800 (PST) Received: from hu-raviravi-hyd.qualcomm.com ([202.46.22.19]) by smtp.gmail.com with ESMTPSA id d9443c01a7336-29daeac7360sm171728205ad.81.2025.12.09.22.52.39 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 09 Dec 2025 22:52:41 -0800 (PST) From: Ravi Hothi To: Srinivas Kandagatla , Liam Girdwood , Mark Brown , Jaroslav Kysela , Takashi Iwai Cc: linux-sound@vger.kernel.org, linux-arm-msm@vger.kernel.org, linux-kernel@vger.kernel.org, kernel@oss.qualcomm.com, mohammad.rafi.shaik@oss.qualcomm.com, ajay.nandam@oss.qualcomm.com Subject: [PATCH v2 2/2] ASoC: qcom: q6dsp-lpass-ports: Update constraints to support 32-bit PCM format Date: Wed, 10 Dec 2025 12:21:56 +0530 Message-Id: <20251210065157.2775514-3-ravi.hothi@oss.qualcomm.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20251210065157.2775514-1-ravi.hothi@oss.qualcomm.com> References: <20251210065157.2775514-1-ravi.hothi@oss.qualcomm.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable X-Proofpoint-GUID: FwqOxyeZk14n8CjNOdrjAo-eoTvNyls5 X-Authority-Analysis: v=2.4 cv=Y7/1cxeN c=1 sm=1 tr=0 ts=693918bb cx=c_pps a=JL+w9abYAAE89/QcEU+0QA==:117 a=fChuTYTh2wq5r3m49p7fHw==:17 a=wP3pNCr1ah4A:10 a=s4-Qcg_JpJYA:10 a=VkNPw1HP01LnGYTKEx00:22 a=EUspDBNiAAAA:8 a=cIWfwQdKQqLfDOyn9HwA:9 a=324X-CrmTo6CU4MGRt3R:22 X-Proofpoint-ORIG-GUID: FwqOxyeZk14n8CjNOdrjAo-eoTvNyls5 X-Proofpoint-Spam-Details-Enc: AW1haW4tMjUxMjEwMDA1OCBTYWx0ZWRfX1W7hJmu+cLDI Pyhg4dcYHTfNgQLVn8cqH31l/VhdTPVIdwEfcLV/y/by6G5bySLy0QF/ctDa+uDKrM8rPWMLsz2 7GfG7fJ/id3/k2S4Sd/Tr4+mGxS+BKTyTbq5T+UKgsX3r8IdS6B0GQQIn1I8hpZAHXGUJH2YzWg pmpTAHsrkCkALmQfi9eo5nbt/faB0eumcq4Sln5Y/CkOMC15TjUbm34yDmng1YxE45WPqLsvpq2 0Mnv2fVQM3IBXVI5IJCwGTpDRuwoO+clF8QbcA8cginku5wgX8LQv1IDdy/QTxbd6Htq72jB25t G/zodj2LPkcFnx3LJSdPYamxQcDlHCsC4/9JCjdfBJ5Tk+aj7k9rbCoLqzkJgHPTrzNoQ6MTYpf O3XHwp8pdP3qlQi59RuED1L/U/Vysg== X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.293,Aquarius:18.0.1121,Hydra:6.1.9,FMLib:17.12.100.49 definitions=2025-12-09_05,2025-12-09_03,2025-10-01_01 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 clxscore=1015 impostorscore=0 lowpriorityscore=0 suspectscore=0 spamscore=0 phishscore=0 bulkscore=0 priorityscore=1501 adultscore=0 malwarescore=0 classifier=typeunknown authscore=0 authtc= authcc= route=outbound adjust=0 reason=mlx scancount=1 engine=8.22.0-2510240001 definitions=main-2512100058 Content-Type: text/plain; charset="utf-8" Expand the existing constraints by introducing support for the 32-bit PCM format (SNDRV_PCM_FMTBIT_S32_LE) alongside the existing 16-bit and 24-bit formats. This enhancement enables handling of high-resolution audio streams and improves audio quality for supported hardware. Signed-off-by: Ravi Hothi --- sound/soc/qcom/qdsp6/q6dsp-lpass-ports.c | 35 +++++++++++++++++------- 1 file changed, 25 insertions(+), 10 deletions(-) diff --git a/sound/soc/qcom/qdsp6/q6dsp-lpass-ports.c b/sound/soc/qcom/qdsp= 6/q6dsp-lpass-ports.c index 76421adb5afa..8542e620ee02 100644 --- a/sound/soc/qcom/qdsp6/q6dsp-lpass-ports.c +++ b/sound/soc/qcom/qdsp6/q6dsp-lpass-ports.c @@ -344,7 +344,8 @@ static struct snd_soc_dai_driver q6dsp_audio_fe_dais[] = =3D { .stream_name =3D "Primary MI2S Playback", .rates =3D SNDRV_PCM_RATE_8000_192000, .formats =3D SNDRV_PCM_FMTBIT_S16_LE | - SNDRV_PCM_FMTBIT_S24_LE, + SNDRV_PCM_FMTBIT_S24_LE | + SNDRV_PCM_FMTBIT_S32_LE, .channels_min =3D 1, .channels_max =3D 8, .rate_min =3D 8000, @@ -357,7 +358,8 @@ static struct snd_soc_dai_driver q6dsp_audio_fe_dais[] = =3D { .stream_name =3D "Primary MI2S Capture", .rates =3D SNDRV_PCM_RATE_8000_192000, .formats =3D SNDRV_PCM_FMTBIT_S16_LE | - SNDRV_PCM_FMTBIT_S24_LE, + SNDRV_PCM_FMTBIT_S24_LE | + SNDRV_PCM_FMTBIT_S32_LE, .channels_min =3D 1, .channels_max =3D 8, .rate_min =3D 8000, @@ -369,7 +371,9 @@ static struct snd_soc_dai_driver q6dsp_audio_fe_dais[] = =3D { .playback =3D { .stream_name =3D "Secondary MI2S Playback", .rates =3D SNDRV_PCM_RATE_8000_192000, - .formats =3D SNDRV_PCM_FMTBIT_S16_LE, + .formats =3D SNDRV_PCM_FMTBIT_S16_LE | + SNDRV_PCM_FMTBIT_S24_LE | + SNDRV_PCM_FMTBIT_S32_LE, .channels_min =3D 1, .channels_max =3D 8, .rate_min =3D 8000, @@ -382,7 +386,8 @@ static struct snd_soc_dai_driver q6dsp_audio_fe_dais[] = =3D { .stream_name =3D "Secondary MI2S Capture", .rates =3D SNDRV_PCM_RATE_8000_192000, .formats =3D SNDRV_PCM_FMTBIT_S16_LE | - SNDRV_PCM_FMTBIT_S24_LE, + SNDRV_PCM_FMTBIT_S24_LE | + SNDRV_PCM_FMTBIT_S32_LE, .channels_min =3D 1, .channels_max =3D 8, .rate_min =3D 8000, @@ -394,7 +399,9 @@ static struct snd_soc_dai_driver q6dsp_audio_fe_dais[] = =3D { .playback =3D { .stream_name =3D "Tertiary MI2S Playback", .rates =3D SNDRV_PCM_RATE_8000_192000, - .formats =3D SNDRV_PCM_FMTBIT_S16_LE, + .formats =3D SNDRV_PCM_FMTBIT_S16_LE | + SNDRV_PCM_FMTBIT_S24_LE | + SNDRV_PCM_FMTBIT_S32_LE, .channels_min =3D 1, .channels_max =3D 8, .rate_min =3D 8000, @@ -407,7 +414,8 @@ static struct snd_soc_dai_driver q6dsp_audio_fe_dais[] = =3D { .stream_name =3D "Tertiary MI2S Capture", .rates =3D SNDRV_PCM_RATE_8000_192000, .formats =3D SNDRV_PCM_FMTBIT_S16_LE | - SNDRV_PCM_FMTBIT_S24_LE, + SNDRV_PCM_FMTBIT_S24_LE | + SNDRV_PCM_FMTBIT_S32_LE, .channels_min =3D 1, .channels_max =3D 8, .rate_min =3D 8000, @@ -419,7 +427,9 @@ static struct snd_soc_dai_driver q6dsp_audio_fe_dais[] = =3D { .playback =3D { .stream_name =3D "Quaternary MI2S Playback", .rates =3D SNDRV_PCM_RATE_8000_192000, - .formats =3D SNDRV_PCM_FMTBIT_S16_LE, + .formats =3D SNDRV_PCM_FMTBIT_S16_LE | + SNDRV_PCM_FMTBIT_S24_LE | + SNDRV_PCM_FMTBIT_S32_LE, .channels_min =3D 1, .channels_max =3D 8, .rate_min =3D 8000, @@ -432,7 +442,8 @@ static struct snd_soc_dai_driver q6dsp_audio_fe_dais[] = =3D { .stream_name =3D "Quaternary MI2S Capture", .rates =3D SNDRV_PCM_RATE_8000_192000, .formats =3D SNDRV_PCM_FMTBIT_S16_LE | - SNDRV_PCM_FMTBIT_S24_LE, + SNDRV_PCM_FMTBIT_S24_LE | + SNDRV_PCM_FMTBIT_S32_LE, .channels_min =3D 1, .channels_max =3D 8, .rate_min =3D 8000, @@ -444,7 +455,9 @@ static struct snd_soc_dai_driver q6dsp_audio_fe_dais[] = =3D { .playback =3D { .stream_name =3D "Quinary MI2S Playback", .rates =3D SNDRV_PCM_RATE_8000_192000, - .formats =3D SNDRV_PCM_FMTBIT_S16_LE, + .formats =3D SNDRV_PCM_FMTBIT_S16_LE | + SNDRV_PCM_FMTBIT_S24_LE | + SNDRV_PCM_FMTBIT_S32_LE, .channels_min =3D 1, .channels_max =3D 8, .rate_min =3D 8000, @@ -456,7 +469,9 @@ static struct snd_soc_dai_driver q6dsp_audio_fe_dais[] = =3D { .capture =3D { .stream_name =3D "Quinary MI2S Capture", .rates =3D SNDRV_PCM_RATE_8000_192000, - .formats =3D SNDRV_PCM_FMTBIT_S16_LE, + .formats =3D SNDRV_PCM_FMTBIT_S16_LE | + SNDRV_PCM_FMTBIT_S24_LE | + SNDRV_PCM_FMTBIT_S32_LE, .channels_min =3D 1, .channels_max =3D 8, .rate_min =3D 8000, --=20 2.34.1