From nobody Fri Apr 10 02:37:42 2026 Received: from mail-m3283.qiye.163.com (mail-m3283.qiye.163.com [220.197.32.83]) (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 5C7E3246778; Thu, 5 Mar 2026 06:23:59 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=220.197.32.83 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1772691843; cv=none; b=adpFhepxJZFfPL5hJcpWSDmjtpuZfpIKpRnGcXDtAsBo9QrNgwSkYc0b14kvyUD9ahkVexK07G84SbR9H8M4INJuyaSWhhFgb05L6/ZMQ+FwDdwINo2j/pABlz/kBWrQ9gEVAbpa1Y9wCfIWVgEg9rcTtKHYG84JVKnNIQH2Mz8= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1772691843; c=relaxed/simple; bh=Iht1r+yVIjhbmgorwffY/WZG4fvWpt012DxOBQaeKic=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=OPOFIlmmoWKQjgJPozkdbYfT1N6wnIOHaSR1XT4bbI7Gg30FbqpgpqRjseNA4ysCCa2u4g50zPB8Jto2K2seNmdk0XT7yKHqUUekg+d34BXrnMwlZq05Vd6GqVHRmR2bDx1oIdFdQf7St0B8yp1jgOu19JhHTxRkmSbYmOXaysU= 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=VcZYJInK; arc=none smtp.client-ip=220.197.32.83 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="VcZYJInK" Received: from [127.0.1.1] (unknown [36.129.139.90]) by smtp.qiye.163.com (Hmail) with ESMTP id 35d4e47dc; Thu, 5 Mar 2026 13:48:25 +0800 (GMT+08:00) From: Hongyang Zhao Date: Thu, 05 Mar 2026 13:47:46 +0800 Subject: [PATCH 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: <20260305-rubikpi-next-20260304-v1-5-327595a4528a@thundersoft.com> References: <20260305-rubikpi-next-20260304-v1-0-327595a4528a@thundersoft.com> In-Reply-To: <20260305-rubikpi-next-20260304-v1-0-327595a4528a@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 , Hongyang Zhao X-Mailer: b4 0.14.3 X-Developer-Signature: v=1; a=ed25519-sha256; t=1772689696; l=1340; i=hongyang.zhao@thundersoft.com; s=20260127; h=from:subject:message-id; bh=Iht1r+yVIjhbmgorwffY/WZG4fvWpt012DxOBQaeKic=; b=RtpwU1OF/ulbTYhGoY/Rtg+Jc8GxAwlQQNL0MwQoj3b3KyJUECb6iGaAL+THI4hHIHJ8aUVqR yvB+Bk8JfhdA78Bh7/aVB47vybGH0G6ovHDAIec9vfGO2d8s3vq0fw9 X-Developer-Key: i=hongyang.zhao@thundersoft.com; a=ed25519; pk=D9yL5W9Zj0lPBDAq9gzY++1849VlXuTWAkROzZ88J/4= X-HM-Tid: 0a9cbc8a4ac009d5kunma04077fcc8569d X-HM-MType: 1 X-HM-Spam-Status: e1kfGhgUHx5ZQUpXWQgPGg8OCBgUHx5ZQUlOS1dZFg8aDwILHllBWSg2Ly tZV1koWUFITzdXWS1ZQUlXWQ8JGhUIEh9ZQVkaHR9LVhlDGR9PGE9NHR9PTlYVFAkWGhdVEwETFh oSFyQUDg9ZV1kYEgtZQVlITVVKSUJVSkhCVUJLWVdZFhoPEhUdFFlBWU9LSFVKS0lPT09IVUpLS1 VKQktLWQY+ DKIM-Signature: a=rsa-sha256; b=VcZYJInK1v3dPENNRAruuYoyHjwiLEY+4yiBbEjADutk89V7FOQdfRMkihQXK1D7qRemcguSX9IgdcxaIqnr4ZI5PBpALi49eT8jNJwh6cVtzU8ioPYHQhON9qpXB7wHaPShFjlH/Ved+pTG0EY0oIJvy2h/MTp+t1BabEeahTc=; 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