From nobody Wed Sep 10 02:05:46 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 B814C2E62A8 for ; Fri, 5 Sep 2025 10:40:55 +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=1757068857; cv=none; b=gFHmeyIvgVkPqkFcvSFMfNgABDlybf8Hvx+rChxi7cvjV0lzvdqcuEZF0Fp8bleWpmV3CVvD3vG+YBJFj6lTUaMmYFWWDJqkPZmobkcEHn0hingu6UM+nxAcybJFb73l1Q9aHF24q0fqrbQQF/6fDaO3hHKfbXDsh5/2mzn0h8k= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1757068857; c=relaxed/simple; bh=R+8y6aC4oGsKszWLbVLiFImQ2iZ4uIW6PWC9HmhFcvE=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: MIME-Version; b=ka7TwIncnHjl+0gFC3PZe8xHxl4A4J7/uxfXdCOyhKu3whHXtYCTNcejcPOzvwl6YEbCULtK+4z7M+hEh2fajwSWMG+UwaJLYKnHCc71jthbvGsypRhzOpCGs0Wcu/ZxIDsEdc3ZduygZ6UG9cc0ZhVIeSy7EpdjR8QB25BOxeQ= 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=WBD4+zFj; 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="WBD4+zFj" Received: from pps.filterd (m0279869.ppops.net [127.0.0.1]) by mx0a-0031df01.pphosted.com (8.18.1.2/8.18.1.2) with ESMTP id 5857QkS8007622 for ; Fri, 5 Sep 2025 10:40:55 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=hcLibYhLr1f 30XIuUz6qkoSEgZUIT3PqmW87KBYUtvU=; b=WBD4+zFjfJZyHVOASHd11Gg5d4H +RBRb2bXcHhFtbNrmE4GcrYXIKFH71ZuEg/4m8YEjjTwewHWhJPuhfc/shNh7FNx kgXJwOPQnFDfDTLoEv5ZI+Fj3P1nwky7PFeyXhRXy5iirFD+Ccyuwd/7DN9RE6/2 uBj9rUZpA88P76LNYi8aDSIwh3aTnjb5mUj8JwV8IPBGyOvdR7piDLbdhSVeyucf +4P/2hfIEI9itEy3zdkIqgI5j5vJWoqPxjySriPcb0Z0fjPzUS6T5hu4GN3p9ytP BlpSshxi3ICV7BUdcdKr6yMulKBJAdEIvfaQ0rCrHg09OTPtSnRLfefrWDA== 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 48ura92q59-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128 verify=NOT) for ; Fri, 05 Sep 2025 10:40:54 +0000 (GMT) Received: by mail-pj1-f71.google.com with SMTP id 98e67ed59e1d1-32b698861d8so2063352a91.2 for ; Fri, 05 Sep 2025 03:40:54 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1757068853; x=1757673653; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=hcLibYhLr1f30XIuUz6qkoSEgZUIT3PqmW87KBYUtvU=; b=Fc46X5DjPGn65RLFcQ1vh9DRLvfA2mwOrnBYPaSc+uQUWFiOZGAGzOdKESpPH4cqbB dP7vGhlOarhIszJgH0clbGO6EDyo405bn5afuG2mqh2N5GHUY5sTI3cPZrn8kAuW8GzZ T8iYdk6u17d0ftxjN5U/uu8GdUqCo7xxKrhAlAWciRK993kwYSxx0QddnavH7MB0KIK9 IuKrSp8uODT7S/S4xKb98EgJKOPq7NKD2WruUtMKz4qub30LwZcs9/JmytRe/CTZq80R bX0Gg6ab2b6jZKxFxe+uGGk4DPxje2+8qmOrCdTQTTLiiVaphYTgdceBXokGJVP5ohtP fTPQ== X-Forwarded-Encrypted: i=1; AJvYcCXNKUjE4X/Yjwpnk46+agXJ1HmL9PmWvfTEyI7TPX2GUNh0VQ2SRrFZnrptYUQ23GIqt2iZX5EA8mGqVi4=@vger.kernel.org X-Gm-Message-State: AOJu0YyTeNldxDWg0n4OqcaPPh9eboKCVDCWM30OY56N/fbjVdhPFTj0 Z+GbeQ2BGcm0/Kv+cpUzW1wc4BP4Pmeaoi8wlwL4cS1i3XA3xk0kg7de2KDYpTp+S7JGWaW829a 4xlYQQ1KJQYUD8H3zBxmGBgTRsz46vEHfzaHQYmmJOBi3Rm57l1shERW+dMw9btFwR50= X-Gm-Gg: ASbGncsIh0kfr7emIojO2ZyJ2EXXJPT+IvC+8QgiB6H1qeiKB6RHQzu0bs2UclQQlgz Bhu+7A6NMSuVrfXadH7Oa6fuJUhxLclf/eC04kdZdDtaQkfQ7W93us5tOUT2Mq4sh6N3FeOQ6qM n+hJJT7nq9YTZj+zMSdZxaYFG5EuBJ8p5nEWR4p1v/CF57fZVGdtdsO/oBHY8bVepTCWZF4A4Up bBmNYlPGy5ZfEii0au88C9ekycnq8TVcGgOiWjjXtsp5npPNbzUQIgnTKwnyPUP8e4LTXCVk2LN VS5wImeG8ZAh33NErhA3X04oNWno1VB6xKX2LHy9u0pNRc2yT3fmkJIFD42yuHFuCw3+CS31K59 P X-Received: by 2002:a17:90a:d408:b0:329:ca48:70b0 with SMTP id 98e67ed59e1d1-329ca487480mr17260546a91.34.1757068853338; Fri, 05 Sep 2025 03:40:53 -0700 (PDT) X-Google-Smtp-Source: AGHT+IE2/aaqRA4AnQ98LMQ6v6f+QE3oCWn+P3lpjqD932yoYZSGs4FktX5k8hwdC3ShO4MNgEgsvQ== X-Received: by 2002:a17:90a:d408:b0:329:ca48:70b0 with SMTP id 98e67ed59e1d1-329ca487480mr17260517a91.34.1757068852886; Fri, 05 Sep 2025 03:40:52 -0700 (PDT) Received: from hu-mohs-hyd.qualcomm.com ([202.46.23.25]) by smtp.gmail.com with ESMTPSA id d2e1a72fcca58-7722a269e9csm21993859b3a.17.2025.09.05.03.40.49 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 05 Sep 2025 03:40:52 -0700 (PDT) From: Mohammad Rafi Shaik To: Srinivas Kandagatla , Liam Girdwood , Mark Brown , Jaroslav Kysela , Takashi Iwai , Pierre-Louis Bossart Cc: linux-sound@vger.kernel.org, linux-arm-msm@vger.kernel.org, linux-kernel@vger.kernel.org, kernel@oss.qualcomm.com, prasad.kumpatla@oss.qualcomm.com, ajay.nandam@oss.qualcomm.com Subject: [PATCH v2 3/3] ASoC: qcom: sc8280xp: Fix DAI format setting for MI2S interfaces Date: Fri, 5 Sep 2025 16:10:20 +0530 Message-Id: <20250905104020.2463473-4-mohammad.rafi.shaik@oss.qualcomm.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20250905104020.2463473-1-mohammad.rafi.shaik@oss.qualcomm.com> References: <20250905104020.2463473-1-mohammad.rafi.shaik@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-ORIG-GUID: kF50fh_xrBkj_1lXzrbYA4qy_st01oiL X-Proofpoint-GUID: kF50fh_xrBkj_1lXzrbYA4qy_st01oiL X-Proofpoint-Spam-Details-Enc: AW1haW4tMjUwODMwMDAyMCBTYWx0ZWRfXzJvmpbP79WCj tpYsTB2lKwCX35SUDYhLh3yWuDj0lsfOzQVUFQEtFSacoWRJ2N0UJdFrcZh9vBcSoatLMi5jaq5 b7isfFZ3f/YOEEpLi1YMGmUp0yxT2F5N9LJUDzIBhzbZyVR3zTAd0QovfScu1cxwpDDiroVuLbO 9rwBJ+tJ+KLBiPAYHXwuItbUn4yA+GxYmlwC8LOqDIyh58Yn5No1wKxKLjxJcqQ7esMJyQKV7bX 51pZLhOX5ZvG12VxRfwEbV1DHFmj7npcPqa9JEdwjNWKG/bqXgH+4AtSlP+wvjWi3g+3LHE15jD dxIcd8GbITF8TDipe6FFP7KfuBUbO4MiYenSE4rQcB04wfpNdIij2/3R/OJ4jLgBdwnBXCPE8Ld yN56FT4S X-Authority-Analysis: v=2.4 cv=VNndn8PX c=1 sm=1 tr=0 ts=68babe36 cx=c_pps a=UNFcQwm+pnOIJct1K4W+Mw==:117 a=ZePRamnt/+rB5gQjfz0u9A==:17 a=yJojWOMRYYMA:10 a=EUspDBNiAAAA:8 a=tfJ7er6LdcoPz7dJv_wA:9 a=uKXjsCUrEbL0IQVhDsJ9:22 X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.293,Aquarius:18.0.1117,Hydra:6.1.9,FMLib:17.12.80.40 definitions=2025-09-05_03,2025-09-04_01,2025-03-28_01 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 suspectscore=0 spamscore=0 impostorscore=0 malwarescore=0 bulkscore=0 clxscore=1015 adultscore=0 priorityscore=1501 phishscore=0 classifier=typeunknown authscore=0 authtc= authcc= route=outbound adjust=0 reason=mlx scancount=1 engine=8.19.0-2507300000 definitions=main-2508300020 Content-Type: text/plain; charset="utf-8" The current implementation does not configure the CPU DAI format for MI2S interfaces, resulting in -EIO errors during audio playback and capture. This prevents the correct clock from being enabled for the MI2S interface. Configure the required DAI format to enable proper clock settings. Tested on Lemans evk platform. Fixes: 295aeea6646ad ("ASoC: qcom: add machine driver for sc8280xp") Signed-off-by: Mohammad Rafi Shaik Reviewed-by: Srinivas Kandagatla --- sound/soc/qcom/sc8280xp.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/sound/soc/qcom/sc8280xp.c b/sound/soc/qcom/sc8280xp.c index 73f9f82c4e25..2fd06354923a 100644 --- a/sound/soc/qcom/sc8280xp.c +++ b/sound/soc/qcom/sc8280xp.c @@ -32,6 +32,9 @@ static int sc8280xp_snd_init(struct snd_soc_pcm_runtime *= rtd) int dp_pcm_id =3D 0; =20 switch (cpu_dai->id) { + case PRIMARY_MI2S_RX...QUATERNARY_MI2S_TX: + snd_soc_dai_set_fmt(cpu_dai, SND_SOC_DAIFMT_BP_FP); + break; case WSA_CODEC_DMA_RX_0: case WSA_CODEC_DMA_RX_1: /* --=20 2.34.1