From nobody Sun Dec 14 06:37:37 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 BF48628B4FD for ; Wed, 10 Dec 2025 06:52:41 +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=1765349564; cv=none; b=HCeMqWg0vpa2qT/+vW8kqv3Pd+7PydunnJgy2wmYlQ6iemHAubjXmlpQT+f3AfSwESNl/9nyCMMRFfqGqEX8l+1r0znwqkFMA+22PbsezVItLkf/yR194JDiVYhHSQ51x39VC87v9Odan7An1OepdUq/J6cuscpSW/5xeeUoNWU= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1765349564; c=relaxed/simple; bh=Qg2jH4tYa3DjSOyKiyIg7vBI3R3xAo9V9E3PUvA+oHM=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: MIME-Version; b=Fd1n22cjwMaD7JEqqx0Ey+Q/x7wf8xYGTkG0sut8ee/dGcuAY+J1yB7tR1mU9ivRAnb8q+EA6sHrB01BIhYKPwjk2k43WgALgyCg3uIArZGWArwn/y+x7JUySow4SgwYy+a52NHWsIyzvrwpB2yuczsTF4yrm8R7RAhKSJvC1tI= 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=L9naU4wg; dkim=pass (2048-bit key) header.d=oss.qualcomm.com header.i=@oss.qualcomm.com header.b=JRqwnKJ1; 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="L9naU4wg"; dkim=pass (2048-bit key) header.d=oss.qualcomm.com header.i=@oss.qualcomm.com header.b="JRqwnKJ1" Received: from pps.filterd (m0279873.ppops.net [127.0.0.1]) by mx0a-0031df01.pphosted.com (8.18.1.11/8.18.1.11) with ESMTP id 5BA6DfMt1497625 for ; Wed, 10 Dec 2025 06:52:40 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=+i7mT83QSfV PYvwCBiECqpSVCGQIrkmGOqxS8j2Joo8=; b=L9naU4wgkVB7DCkPkiHT1rJTEzg RINlQwSe8XHz+LWuEuqR66K9e33GXvVLoquRfeaXWywa/3se6Z5Xjh89l0k+31pF YhO3XofJs0P0MHVIOtlLm0iSVLmH+1cWBPI4jRiuUppmmbnyYs3k1OOysvgYXCXP SGoYUzIw7yy4jeCxMuB/NwUAL209ceBRbQ1BKeb7lPHzpsW0U6vcHgKD7hr3hdvk rTM/3xaQTP4H2kkDrtpTIQqb62Dmb5+XYNEGEVyE07Xk+wDRBdxIqhIRIXChrIU9 +wkHcK6zsIpjjTSYEmfCZ0RJeQnUJBVqYnZyupsAGpVkAqtZrep2DXOeVPA== Received: from mail-pl1-f198.google.com (mail-pl1-f198.google.com [209.85.214.198]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 4ay2e0g8n7-1 (version=TLSv1.3 cipher=TLS_AES_128_GCM_SHA256 bits=128 verify=NOT) for ; Wed, 10 Dec 2025 06:52:40 +0000 (GMT) Received: by mail-pl1-f198.google.com with SMTP id d9443c01a7336-295952a4dd6so5584315ad.1 for ; Tue, 09 Dec 2025 22:52:40 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oss.qualcomm.com; s=google; t=1765349559; x=1765954359; 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=+i7mT83QSfVPYvwCBiECqpSVCGQIrkmGOqxS8j2Joo8=; b=JRqwnKJ1UmZu+H3o/JvxIkYK9eWkfUkGVdzE+ZLA6pRhk7PppmaCiaoo5P52VWxUUS 9OV3zuFidiDFtpXkbcNp5okVLr0EqZEQ3jd2sX562LCes2fUFrT7SBY5BTJaU+JbQ+La k7iBfVOwrNUVD8McGzE6btr4QS8JUbWuZJADUuf4xDgp0lsWzN1vIY+3gkmSYXMySb4p R6gG6mlQjpKXJYKhB1x/iL0k7YaeSP3wWfBMuzdfyNM6lNqyC61IzPEV1cKGFxIHj4Vq zuNVDO01WeAp3nwLb5JPD2c+Dvg8sQcGX5+CyaSSlzkELqHpiS28jSfczTW+eBcUdBdP H3sA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1765349559; x=1765954359; 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=+i7mT83QSfVPYvwCBiECqpSVCGQIrkmGOqxS8j2Joo8=; b=VPj3CzXArBVRcokg8vRMm9g3kRxo5QPRoG+06Yn3z420/59XQ3iiR4uiv5IzVGGOLZ lcSXg2YP5UjT9X/Vn6yTKjGr6QYN4Uj5m5CHscZ6CeisDiYGDR+Vlr8Ge3/GpbXBgevb DCpxFdYDR6fNihsqoxjCcRB89+wFWUPIbbS9FMn5KGOd6Jrw+orCk2hFDw5jiC9h/3EG vobpA43C3dveAfbT2hdxdu62JyEWPNzCoibfJ8j6ndkwLeOJlu8PduUfm68QNDFwlCAi /tkr/fH5JIkBWjdz9Al9nisUAkunSWbJsWPDE/PomJLOpc2P3d76J4P1zqS1HEZeCGIi 4S3A== X-Forwarded-Encrypted: i=1; AJvYcCWTX6n+BzZj53XQiKxC+AQKZ1xRXbO5zq2GFy7llsImtzzEIM0KpU1suI0mU2In6DVtdiM9SUYl/uRioPs=@vger.kernel.org X-Gm-Message-State: AOJu0YzC9MShXN4NhLbMnApeDVmzuVTv1kSLL1rJrWp6C7tuOCslXzr7 OuAXheN8BvlW8Y4uUj95D6WfEdoIWebxnWTw9shDgsR/PoHu6963g3n5b/X+YH5oasCJaRp+Xm0 XStkRdcAqTih6qb+d74OG6rW5see8j6cPx/Ppyg9u6fuPlFtDzKEWZa86G6//dOejdk0= X-Gm-Gg: AY/fxX55Fm1HhLAkdjevUcy9SkVOvm88uIW5sZFATVhlqgnrRbDNH9Jz6l+HkL5JCLp F3rjOx3ZyltmmBOawI1Skc4firomvT1cfNyIrys2fvy1hRlw6yMfB07DcodYs+o4x8e0JoHVmKk yQrGvqpZo4X/jjLccTEN2N3nbCJc/Uwv9ZjZ70uQsrTUjlNTQFWJgZHEcvXeqQNEnv4dOZA/Fmq sFJo/Z09GuUBINkCZ0SgU+JShMAklsytNLwBfvskuVFASB3ntiTciUXP9MyDDEYvaQz0whS+Gi/ krSPnFAaAK8+edbRVF4h0B488q4yRWYNqN8W8CXQIh4fi4JMIYYCijXWjdbzfraGgvLl8YT3V0N 6YTIHTu1GWz0p3TInrmsT+jkqq+9CsviYlvfronI= X-Received: by 2002:a17:903:19cc:b0:281:fd60:807d with SMTP id d9443c01a7336-29ec27c5a6amr17492095ad.2.1765349559250; Tue, 09 Dec 2025 22:52:39 -0800 (PST) X-Google-Smtp-Source: AGHT+IFcv2v0k+WHxxfI+NcDx9UVEcYTb1mW0GwRVVwF4j8Gijal2mVCNvlKl7YXQA1MmxUkSPjWMw== X-Received: by 2002:a17:903:19cc:b0:281:fd60:807d with SMTP id d9443c01a7336-29ec27c5a6amr17491725ad.2.1765349558708; Tue, 09 Dec 2025 22:52:38 -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.35 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 09 Dec 2025 22:52:38 -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 1/2] ASoC: qcom: q6dsp-lpass-ports: Extend q6dsp-lpass-ports driver to support additional sampling rates Date: Wed, 10 Dec 2025 12:21:55 +0530 Message-Id: <20251210065157.2775514-2-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-Spam-Details-Enc: AW1haW4tMjUxMjEwMDA1OCBTYWx0ZWRfXwf6VX3o/gSS9 CLHTt1qoYz2iCmpR2v1Hd0c2pa8n8ptvV8L4LRQiJo12UXYPqQypVvHb0gr0omQf87juH7ue5q+ thXYj0nT9uTt4cG5UCL7h/2b6UIWqpm21xr3JYUIS5jD1BHzdDyUKfOtvx3Z4wCYTlFQvWoY0HY 5n5T26jRT5SHTGg2+17LaVONz3zjfyc/0NuI32cQ21rKnwfyzaiZMH6PbbI40BPUQSGkdwKBOti 1yMtom3JrJoH2o9gRMibiV9/W1JLMsxuoiG5qCAYTeAFYjDqVWQ7kYirycJ+wHFv6IO9Z20W+08 h/6b1AHg3GnQzwBcfJfroIVZsRuBWyKKlL9N/kJgeWUoFQ+ugzsvL6oPqYzwI22RWrwtDUkCUEl vnoEmODXVYOLHYWSIznVfwXHcMe/8A== X-Proofpoint-ORIG-GUID: v6HPNZA7cocahlPnwPr2yMCf9LEByIwj X-Authority-Analysis: v=2.4 cv=G5oR0tk5 c=1 sm=1 tr=0 ts=693918b8 cx=c_pps a=MTSHoo12Qbhz2p7MsH1ifg==:117 a=fChuTYTh2wq5r3m49p7fHw==:17 a=wP3pNCr1ah4A:10 a=s4-Qcg_JpJYA:10 a=VkNPw1HP01LnGYTKEx00:22 a=EUspDBNiAAAA:8 a=wbo3agcGWv7YO2hpoMUA:9 a=GvdueXVYPmCkWapjIL-Q:22 X-Proofpoint-GUID: v6HPNZA7cocahlPnwPr2yMCf9LEByIwj 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 spamscore=0 adultscore=0 clxscore=1015 lowpriorityscore=0 malwarescore=0 impostorscore=0 bulkscore=0 suspectscore=0 priorityscore=1501 phishscore=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 in the q6dsp-lpass-ports driver to allow a wider range of sampling rates, from 8000 Hz to 192000 Hz. This change improves compatibility with diverse audio hardware and provides greater flexibility for audio stream configurations. Signed-off-by: Ravi Hothi --- sound/soc/qcom/qdsp6/q6dsp-lpass-ports.c | 73 +++++++++--------------- 1 file changed, 27 insertions(+), 46 deletions(-) diff --git a/sound/soc/qcom/qdsp6/q6dsp-lpass-ports.c b/sound/soc/qcom/qdsp= 6/q6dsp-lpass-ports.c index 4eed54b071a5..76421adb5afa 100644 --- a/sound/soc/qcom/qdsp6/q6dsp-lpass-ports.c +++ b/sound/soc/qcom/qdsp6/q6dsp-lpass-ports.c @@ -10,16 +10,14 @@ #define Q6AFE_TDM_PB_DAI(pre, num, did) { \ .playback =3D { \ .stream_name =3D pre" TDM"#num" Playback", \ - .rates =3D SNDRV_PCM_RATE_8000 | SNDRV_PCM_RATE_16000 |\ - SNDRV_PCM_RATE_32000 | SNDRV_PCM_RATE_48000 |\ - SNDRV_PCM_RATE_176400, \ + .rates =3D SNDRV_PCM_RATE_8000_192000, \ .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, \ - .rate_max =3D 176400, \ + .rate_max =3D 192000, \ }, \ .name =3D #did, \ .id =3D did, \ @@ -28,16 +26,14 @@ #define Q6AFE_TDM_CAP_DAI(pre, num, did) { \ .capture =3D { \ .stream_name =3D pre" TDM"#num" Capture", \ - .rates =3D SNDRV_PCM_RATE_8000 | SNDRV_PCM_RATE_16000 |\ - SNDRV_PCM_RATE_32000 | SNDRV_PCM_RATE_48000 |\ - SNDRV_PCM_RATE_176400, \ + .rates =3D SNDRV_PCM_RATE_8000_192000, \ .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, \ - .rate_max =3D 176400, \ + .rate_max =3D 192000, \ }, \ .name =3D #did, \ .id =3D did, \ @@ -46,16 +42,14 @@ #define Q6AFE_CDC_DMA_RX_DAI(did) { \ .playback =3D { \ .stream_name =3D #did" Playback", \ - .rates =3D SNDRV_PCM_RATE_8000 | SNDRV_PCM_RATE_16000 |\ - SNDRV_PCM_RATE_32000 | SNDRV_PCM_RATE_48000 |\ - SNDRV_PCM_RATE_176400, \ + .rates =3D SNDRV_PCM_RATE_8000_192000, \ .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, \ - .rate_max =3D 176400, \ + .rate_max =3D 192000, \ }, \ .name =3D #did, \ .id =3D did, \ @@ -64,16 +58,14 @@ #define Q6AFE_CDC_DMA_TX_DAI(did) { \ .capture =3D { \ .stream_name =3D #did" Capture", \ - .rates =3D SNDRV_PCM_RATE_8000 | SNDRV_PCM_RATE_16000 |\ - SNDRV_PCM_RATE_32000 | SNDRV_PCM_RATE_48000 |\ - SNDRV_PCM_RATE_176400, \ + .rates =3D SNDRV_PCM_RATE_8000_192000, \ .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, \ - .rate_max =3D 176400, \ + .rate_max =3D 192000, \ }, \ .name =3D #did, \ .id =3D did, \ @@ -350,118 +342,108 @@ static struct snd_soc_dai_driver q6dsp_audio_fe_dai= s[] =3D { }, { .playback =3D { .stream_name =3D "Primary MI2S Playback", - .rates =3D SNDRV_PCM_RATE_48000 | SNDRV_PCM_RATE_8000 | - SNDRV_PCM_RATE_16000, + .rates =3D SNDRV_PCM_RATE_8000_192000, .formats =3D SNDRV_PCM_FMTBIT_S16_LE | SNDRV_PCM_FMTBIT_S24_LE, .channels_min =3D 1, .channels_max =3D 8, .rate_min =3D 8000, - .rate_max =3D 48000, + .rate_max =3D 192000, }, .id =3D PRIMARY_MI2S_RX, .name =3D "PRI_MI2S_RX", }, { .capture =3D { .stream_name =3D "Primary MI2S Capture", - .rates =3D SNDRV_PCM_RATE_48000 | SNDRV_PCM_RATE_8000 | - SNDRV_PCM_RATE_16000, + .rates =3D SNDRV_PCM_RATE_8000_192000, .formats =3D SNDRV_PCM_FMTBIT_S16_LE | SNDRV_PCM_FMTBIT_S24_LE, .channels_min =3D 1, .channels_max =3D 8, .rate_min =3D 8000, - .rate_max =3D 48000, + .rate_max =3D 192000, }, .id =3D PRIMARY_MI2S_TX, .name =3D "PRI_MI2S_TX", }, { .playback =3D { .stream_name =3D "Secondary MI2S Playback", - .rates =3D SNDRV_PCM_RATE_48000 | SNDRV_PCM_RATE_8000 | - SNDRV_PCM_RATE_16000, + .rates =3D SNDRV_PCM_RATE_8000_192000, .formats =3D SNDRV_PCM_FMTBIT_S16_LE, .channels_min =3D 1, .channels_max =3D 8, .rate_min =3D 8000, - .rate_max =3D 48000, + .rate_max =3D 192000, }, .name =3D "SEC_MI2S_RX", .id =3D SECONDARY_MI2S_RX, }, { .capture =3D { .stream_name =3D "Secondary MI2S Capture", - .rates =3D SNDRV_PCM_RATE_48000 | SNDRV_PCM_RATE_8000 | - SNDRV_PCM_RATE_16000, + .rates =3D SNDRV_PCM_RATE_8000_192000, .formats =3D SNDRV_PCM_FMTBIT_S16_LE | SNDRV_PCM_FMTBIT_S24_LE, .channels_min =3D 1, .channels_max =3D 8, .rate_min =3D 8000, - .rate_max =3D 48000, + .rate_max =3D 192000, }, .id =3D SECONDARY_MI2S_TX, .name =3D "SEC_MI2S_TX", }, { .playback =3D { .stream_name =3D "Tertiary MI2S Playback", - .rates =3D SNDRV_PCM_RATE_48000 | SNDRV_PCM_RATE_8000 | - SNDRV_PCM_RATE_16000, + .rates =3D SNDRV_PCM_RATE_8000_192000, .formats =3D SNDRV_PCM_FMTBIT_S16_LE, .channels_min =3D 1, .channels_max =3D 8, .rate_min =3D 8000, - .rate_max =3D 48000, + .rate_max =3D 192000, }, .name =3D "TERT_MI2S_RX", .id =3D TERTIARY_MI2S_RX, }, { .capture =3D { .stream_name =3D "Tertiary MI2S Capture", - .rates =3D SNDRV_PCM_RATE_48000 | SNDRV_PCM_RATE_8000 | - SNDRV_PCM_RATE_16000, + .rates =3D SNDRV_PCM_RATE_8000_192000, .formats =3D SNDRV_PCM_FMTBIT_S16_LE | SNDRV_PCM_FMTBIT_S24_LE, .channels_min =3D 1, .channels_max =3D 8, .rate_min =3D 8000, - .rate_max =3D 48000, + .rate_max =3D 192000, }, .id =3D TERTIARY_MI2S_TX, .name =3D "TERT_MI2S_TX", }, { .playback =3D { .stream_name =3D "Quaternary MI2S Playback", - .rates =3D SNDRV_PCM_RATE_48000 | SNDRV_PCM_RATE_8000 | - SNDRV_PCM_RATE_16000, + .rates =3D SNDRV_PCM_RATE_8000_192000, .formats =3D SNDRV_PCM_FMTBIT_S16_LE, .channels_min =3D 1, .channels_max =3D 8, .rate_min =3D 8000, - .rate_max =3D 48000, + .rate_max =3D 192000, }, .name =3D "QUAT_MI2S_RX", .id =3D QUATERNARY_MI2S_RX, }, { .capture =3D { .stream_name =3D "Quaternary MI2S Capture", - .rates =3D SNDRV_PCM_RATE_48000 | SNDRV_PCM_RATE_8000 | - SNDRV_PCM_RATE_16000, + .rates =3D SNDRV_PCM_RATE_8000_192000, .formats =3D SNDRV_PCM_FMTBIT_S16_LE | SNDRV_PCM_FMTBIT_S24_LE, .channels_min =3D 1, .channels_max =3D 8, .rate_min =3D 8000, - .rate_max =3D 48000, + .rate_max =3D 192000, }, .id =3D QUATERNARY_MI2S_TX, .name =3D "QUAT_MI2S_TX", }, { .playback =3D { .stream_name =3D "Quinary MI2S Playback", - .rates =3D SNDRV_PCM_RATE_48000 | SNDRV_PCM_RATE_8000 | - SNDRV_PCM_RATE_16000 | SNDRV_PCM_RATE_96000 | - SNDRV_PCM_RATE_192000, + .rates =3D SNDRV_PCM_RATE_8000_192000, .formats =3D SNDRV_PCM_FMTBIT_S16_LE, .channels_min =3D 1, .channels_max =3D 8, @@ -473,13 +455,12 @@ static struct snd_soc_dai_driver q6dsp_audio_fe_dais[= ] =3D { }, { .capture =3D { .stream_name =3D "Quinary MI2S Capture", - .rates =3D SNDRV_PCM_RATE_48000 | SNDRV_PCM_RATE_8000 | - SNDRV_PCM_RATE_16000, + .rates =3D SNDRV_PCM_RATE_8000_192000, .formats =3D SNDRV_PCM_FMTBIT_S16_LE, .channels_min =3D 1, .channels_max =3D 8, .rate_min =3D 8000, - .rate_max =3D 48000, + .rate_max =3D 192000, }, .id =3D QUINARY_MI2S_TX, .name =3D "QUIN_MI2S_TX", --=20 2.34.1 From nobody Sun Dec 14 06:37:37 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