From nobody Tue Apr 7 02:36:14 2026 Received: from mail-m15578.qiye.163.com (mail-m15578.qiye.163.com [101.71.155.78]) (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 D24B738F234; Tue, 17 Mar 2026 08:36:30 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=101.71.155.78 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1773736593; cv=none; b=KgKfRAc60FbiMaWtPIr0HDU87YUvfZETt+QdqTmkRn6KMPUDyi3V4rYk9l4m/I1qxRgbNlClNemlVbRYvjCZDsOqCcAPOf7Q5iO6KVG9Rx235SC7MHzvRl8ztSb2Es2cjRYmVmJhyvQ1fpgZqVkzJ8B313RTZGh16iwUau7Vik0= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1773736593; c=relaxed/simple; bh=Iht1r+yVIjhbmgorwffY/WZG4fvWpt012DxOBQaeKic=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=BjjjnlKWAmsoy5OXWkWby/fmEGZUNZTmo4Irre44E3fmvK4cVNVyAJFNXkJcylktpgFqTOArymJqn5yhXn6oGyF+M5zi0reWnP1D4g6zHZhpgwIQxFY5FCT2HejEDRxAGCkorgYV7j39/nFHDYc8kD2O+/C1u2DbiXhfYLnWnVk= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=thundersoft.com; spf=pass smtp.mailfrom=thundersoft.com; dkim=pass (1024-bit key) header.d=thundersoft.com header.i=@thundersoft.com header.b=VRkRXzFk; arc=none smtp.client-ip=101.71.155.78 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=thundersoft.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=thundersoft.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=thundersoft.com header.i=@thundersoft.com header.b="VRkRXzFk" Received: from [127.0.1.1] (unknown [36.129.139.90]) by smtp.qiye.163.com (Hmail) with ESMTP id 373e3b4ad; Tue, 17 Mar 2026 16:36:20 +0800 (GMT+08:00) From: Hongyang Zhao Date: Tue, 17 Mar 2026 16:35:44 +0800 Subject: [PATCH v2 5/6] ASoC: qcom: sc8280xp: Set codec DAI format for MI2S links Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Message-Id: <20260317-rubikpi-next-20260304-v2-5-5634fabe0c43@thundersoft.com> References: <20260317-rubikpi-next-20260304-v2-0-5634fabe0c43@thundersoft.com> In-Reply-To: <20260317-rubikpi-next-20260304-v2-0-5634fabe0c43@thundersoft.com> To: Liam Girdwood , Mark Brown , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Daniel Drake , Katsuhiro Suzuki , Matteo Martelli , Binbin Zhou , Jaroslav Kysela , Takashi Iwai , Srinivas Kandagatla , Bjorn Andersson , Konrad Dybcio Cc: linux-sound@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-msm@vger.kernel.org, Roger Shimizu , Neil Armstrong , Hongyang Zhao X-Mailer: b4 0.14.3 X-Developer-Signature: v=1; a=ed25519-sha256; t=1773736570; l=1340; i=hongyang.zhao@thundersoft.com; s=20260127; h=from:subject:message-id; bh=Iht1r+yVIjhbmgorwffY/WZG4fvWpt012DxOBQaeKic=; b=QHFdteYvFqMthYd4HjQZx8pZ91R0Q8QM3+BI85lLZVKeU/y3A3uc8vtOri8rvp2i6supWdGN6 CaAtUvf4AE7CL3a0vxvzZvauy0j+0yNNVyNTjaY/R2LPohupPryEmEO X-Developer-Key: i=hongyang.zhao@thundersoft.com; a=ed25519; pk=D9yL5W9Zj0lPBDAq9gzY++1849VlXuTWAkROzZ88J/4= X-HM-Tid: 0a9cfaf0568f09d5kunm8391965e39c9e7 X-HM-MType: 1 X-HM-Spam-Status: e1kfGhgUHx5ZQUpXWQgPGg8OCBgUHx5ZQUlOS1dZFg8aDwILHllBWSg2Ly tZV1koWUFITzdXWS1ZQUlXWQ8JGhUIEh9ZQVkaGBgaVhkdTB0fTENLS0sZSFYVFAkWGhdVEwETFh oSFyQUDg9ZV1kYEgtZQVlITVVKSUJVSkhCVUJLWVdZFhoPEhUdFFlBWU9LSFVKS0lPT09IVUpLS1 VKQktLWQY+ DKIM-Signature: a=rsa-sha256; b=VRkRXzFkvpwIhXmGl7j+zHB1EOzY73dpqdH8CQGtJzq5OOFb0jAZLgJDhIpq3cnFx55+sPd4K6Mq0+cu6XMI5ZjFldPUktF/B9ahFTy/p30PerQL0SymYS1bQoGr3DurvLsayz+OpV+sdGGiMGlcqwxOhHMe3hkV+6kwdG0VTs8=; c=relaxed/relaxed; s=default; d=thundersoft.com; v=1; bh=uD1bDfoNoFCDj51HBerfeeYEewmuLu8oZRNJDSFssSo=; h=date:mime-version:subject:message-id:from; Set the codec DAI format to I2S consumer mode (BC_FC) with normal bit and frame clocks (NB_NF) for MI2S backend links. This is required for external codecs connected via MI2S to work properly. Signed-off-by: Hongyang Zhao --- sound/soc/qcom/sc8280xp.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/sound/soc/qcom/sc8280xp.c b/sound/soc/qcom/sc8280xp.c index 7925aa3f63ba..04e15c85a145 100644 --- a/sound/soc/qcom/sc8280xp.c +++ b/sound/soc/qcom/sc8280xp.c @@ -27,6 +27,7 @@ static int sc8280xp_snd_init(struct snd_soc_pcm_runtime *= rtd) { struct sc8280xp_snd_data *data =3D snd_soc_card_get_drvdata(rtd->card); struct snd_soc_dai *cpu_dai =3D snd_soc_rtd_to_cpu(rtd, 0); + struct snd_soc_dai *codec_dai =3D snd_soc_rtd_to_codec(rtd, 0); struct snd_soc_card *card =3D rtd->card; struct snd_soc_jack *dp_jack =3D NULL; int dp_pcm_id =3D 0; @@ -35,6 +36,9 @@ static int sc8280xp_snd_init(struct snd_soc_pcm_runtime *= rtd) case PRIMARY_MI2S_RX...QUATERNARY_MI2S_TX: case QUINARY_MI2S_RX...QUINARY_MI2S_TX: snd_soc_dai_set_fmt(cpu_dai, SND_SOC_DAIFMT_BP_FP); + snd_soc_dai_set_fmt(codec_dai, SND_SOC_DAIFMT_BC_FC | + SND_SOC_DAIFMT_NB_NF | + SND_SOC_DAIFMT_I2S); break; case WSA_CODEC_DMA_RX_0: case WSA_CODEC_DMA_RX_1: --=20 2.43.0