From nobody Tue Dec 2 02:57:42 2025 Received: from mx0a-0031df01.pphosted.com (mx0a-0031df01.pphosted.com [205.220.168.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 9468F33031A for ; Tue, 18 Nov 2025 10:02:20 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=205.220.168.131 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1763460142; cv=none; b=Bb1ugJ/opUpD3kVRMyljzgTTQCvF0qeXl/bEl395uuRWH0tU9rOpvy+VMYjeheqeEys9/m1LNkEZkurWZFoT5Nbe1OJwtdZWYFq58U75UG11AeF0gpDk4W6w1USvEvIxRHas7ReTfxnqvpPnkKmaU1BgL957lqEzvFltCAEEsZo= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1763460142; c=relaxed/simple; bh=CbxtIvTekqrp5erXiJTkMlBeVvmJmh/eKhW86wM11l4=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: MIME-Version; b=R4tdOotoJrxdqNIlsMEFiBaM47M54DFnVc6v/7fxKDkGFJiwuvllWb7pWvBngjMFql0uj0dlIyQOaJj/5R4b56CLAhWMQtM69K8rjfS8Guh9afDwLpriYfQmk2ZOi+ALqyCz/O7x2fQUA/IT+CZ/nlY6w3TAkyYwVSzbgq/3wCQ= 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=fail (2048-bit key) header.d=qualcomm.com header.i=@qualcomm.com header.b=Zp/61pGl reason="signature verification failed"; arc=none smtp.client-ip=205.220.168.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=fail reason="signature verification failed" (2048-bit key) header.d=qualcomm.com header.i=@qualcomm.com header.b="Zp/61pGl" Received: from pps.filterd (m0279862.ppops.net [127.0.0.1]) by mx0a-0031df01.pphosted.com (8.18.1.11/8.18.1.11) with ESMTP id 5AI8VU3N2250242 for ; Tue, 18 Nov 2025 10:02:19 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=qMuNEob1rac JwJMjnvjWTnyit3VquPLYcumLP/b/DM4=; b=Zp/61pGl48suyNjIVq2A7nJbQBg t2QvRnVQxwmoG/CGPh68NfdkhNJKH/6MvCVCJfQWkjszeqkgmxnTIngZhaAMz2ei TKWoLWQhS9CYuUF56lNuW2kaLraO6OzrPFg8y4VSuZh/QsvEoX6f22RK+kUqfnMp QJnM9xWYhEoJe2v6U91ZqTOz5EjbJhN3qy/n3PzqwBK9S7UojO+uRdoObwfz8929 E/tLp3G/rR6+ObZg/KziJ8lGTvYkfWcfPMhXthpLPEQ2/I9Vk5cS4NoJKRpJup8e K7Mdf0+tRnbPpwNMRIX6DdoZIwfoBpOnyM4yrWTG85SZg1dBQVm2xSdHPPg== Received: from mail-pj1-f71.google.com (mail-pj1-f71.google.com [209.85.216.71]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 4agnc5g9y4-1 (version=TLSv1.3 cipher=TLS_AES_128_GCM_SHA256 bits=128 verify=NOT) for ; Tue, 18 Nov 2025 10:02:19 +0000 (GMT) Received: by mail-pj1-f71.google.com with SMTP id 98e67ed59e1d1-340ad9349b3so13622267a91.1 for ; Tue, 18 Nov 2025 02:02:19 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1763460139; x=1764064939; 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=qMuNEob1racJwJMjnvjWTnyit3VquPLYcumLP/b/DM4=; b=WjWgCsjfD0TtcXGYhXPGfRG9BUFIlZiRjlrOs+8QTYXXP3PVQOqibCzoWx8c2mLXIQ 5zluYP3feXiph2v0b/uFI3u2fF3jZWlhi4htKJB+TnPA9YXzlY6hbZPTAh5e4EXJ4I4o QDi5fzpwYp8UVSgamSSuzKRVw1q83htp5Xihp+feRcewM+aAagNDOHFZgmXq6aB/8IWM z2Y0fvj2apDESyP+n6qamksZ0Db4Bkd2OrdLeKyLs7uzAu1Pztx9kcKB/JSRA1Sz7qD7 L0brD3drHz+63kdfDLNNQtb+ZWcKb2USx6Qv+GP3bNrhAjCbqPIfHNXicl6jZCIZqvxU wVvw== X-Forwarded-Encrypted: i=1; AJvYcCXCiRL4B9F2Rwk2LlcbXIAT+QbxKQO1NjHey9mNQ/zUyAhDw6jAy8E6m/RBXYv3jDl7HBNwrSzeaDcK4/I=@vger.kernel.org X-Gm-Message-State: AOJu0Yyk0nLNTf9i+51SjkwBSZCMrCTF4bZNrfOmEGjSRSfxq7aPbD7u y8DcSk/MnN4oTU7F3VtXDRbR+yIUDlIZhutpPPKQkjs8Du448+zB8eKbLENt3rEjVc1oqrW4HmD AQycbRvzMrJtBJGt4YJ85EG9MRIRGN5fCoGbWalNei2lyGbTOodQOlwb0O5iPqPpDrWs= X-Gm-Gg: ASbGncu+GJi8T/neIeEf81D1O9XqEj8gm6ousHNu1p9eVdh8hqb7/OxmHhZzdX+/XLW LTGHrSdIWUbFG13FeKY/tbPRI0e+e5Szyfkk2X/9R196oVUo1gamVWs0gwHnzynZdbiZbnkoe7B zjiBxLWonYE5Z97f8z+bKvktvxMohur6ZXwzXCtaINLN/cWawlzchK0CGbwB3dMhy5r+KpsmvjW q3iBzYf4QuKbPmXrduRnPqKkd8yTzCYuEk3hycKJkOP1j4EDuUIeuSehRdWVaruJPbCYLFGBhp7 sjk8zPecEmVQVjVbEz62IyfmAexL16iSqzXuWXnOPOQ1n44ht0IN63f3GW5ZBxvlen/UedJuLFM XVyM= X-Received: by 2002:a17:90a:8a84:b0:343:60ab:ca8e with SMTP id 98e67ed59e1d1-343fa73b7e7mr15448635a91.17.1763460139071; Tue, 18 Nov 2025 02:02:19 -0800 (PST) X-Google-Smtp-Source: AGHT+IHL9RUDf6h4VxjPfstozuaNX07Z0pm4BzkP/oEdHSr/z+UYskYnGmudGCyLJlm3pH2mwlX23A== X-Received: by 2002:a17:90a:8a84:b0:343:60ab:ca8e with SMTP id 98e67ed59e1d1-343fa73b7e7mr15448606a91.17.1763460138576; Tue, 18 Nov 2025 02:02:18 -0800 (PST) Received: from hu-raviravi-hyd.qualcomm.com ([202.46.22.19]) by smtp.gmail.com with ESMTPSA id d2e1a72fcca58-7b9256b9283sm16120030b3a.33.2025.11.18.02.02.14 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 18 Nov 2025 02:02:17 -0800 (PST) From: Ravi.Hothi.ravi.hothi@oss.qualcomm.com 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 v1 2/2] ASoC: qcom: q6dsp-lpass-ports: Add support for 32-bit PCM format Date: Tue, 18 Nov 2025 15:32:03 +0530 Message-Id: <20251118100203.2751955-3-ravi.hothi@oss.qualcomm.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20251118100203.2751955-1-ravi.hothi@oss.qualcomm.com> References: <20251118100203.2751955-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: ihCMEDjfUlEe3QX8N9154br6JsVCXv2G X-Proofpoint-Spam-Details-Enc: AW1haW4tMjUxMTE4MDA3OSBTYWx0ZWRfX8/gHyAZz9CRj eFA7oMhogf2l8hx7SJUDV2JcUnTtJ/FpDtQozlWMT3/AFXMYUr59D4LlR9Wo9N9jRtVYCbWq5p4 GrLYW0s7Zpu7hfnhvlqJ3eKmbYXmhGi7n8f+uox1mKOu+mbWm6ZVVRgdzg/QZjQdiVvvrKkCBc8 2yUc9mzQvxRfFTOcrTbFQ7D1AuBaN4WYQKXVnGCQSRXdmg/ok2IDTeI3efRd9KP0irlyzJUzRfK vH+4fo/Z7ECd+aeheUXcQFqAVI/4yr35DllDjuLvV2e7+ftY7VvmUCHDC7a+XDwk6BOyOQBZBjE zkuj/kCY5f2PaDJARfiNG7Py8SI+RUyK9KuKPpC2wRZzSTyDyjK1GOkrvgQeTJ3m+aG1GUe0CVT 3F5B9ErNFHWzSPTZdH65sBUjMl1PJQ== X-Authority-Analysis: v=2.4 cv=BYTVE7t2 c=1 sm=1 tr=0 ts=691c442b cx=c_pps a=UNFcQwm+pnOIJct1K4W+Mw==:117 a=fChuTYTh2wq5r3m49p7fHw==:17 a=6UeiqGixMTsA:10 a=VkNPw1HP01LnGYTKEx00:22 a=EUspDBNiAAAA:8 a=h57z9UKOc1SyWDzF5_MA:9 a=uKXjsCUrEbL0IQVhDsJ9:22 X-Proofpoint-ORIG-GUID: ihCMEDjfUlEe3QX8N9154br6JsVCXv2G 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-11-17_04,2025-11-13_02,2025-10-01_01 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 malwarescore=0 spamscore=0 bulkscore=0 clxscore=1015 priorityscore=1501 lowpriorityscore=0 suspectscore=0 phishscore=0 impostorscore=0 adultscore=0 classifier=typeunknown authscore=0 authtc= authcc= route=outbound adjust=0 reason=mlx scancount=1 engine=8.22.0-2510240001 definitions=main-2511180079 Content-Type: text/plain; charset="utf-8" From: Ravi Hothi Introduce support for 32-bit PCM format (SNDRV_PCM_FMTBIT_S32_LE) in addition to existing 16-bit and 24-bit formats. This allows handling 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