From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (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 39BEB23762; Thu, 18 Jan 2024 10:52:51 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1705575171; cv=none; b=gq1vainnH2VeW+R7Liz5Anr5Iw3poLF37OVLnlu9hn7ZBA7rEVpIS59Py1K+TWhqSkm8IiyN4dodhnVULbGj90ZEeYmT78dCoYnPzEPS/j812Q3VOqfszyhAVhsjnei8+0jF5V8MemwXM4rlGnn2hEdMWrB7Lc3nt7bZVMYnLLA= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1705575171; c=relaxed/simple; bh=UsM2mibWurf9kvkZXukE5ju+H67HJa3tKJVHqO8GBxw=; h=Received:DKIM-Signature:From:To:Cc:Subject:Date:Message-ID: X-Mailer:In-Reply-To:References:User-Agent:X-stable: X-Patchwork-Hint:MIME-Version:Content-Transfer-Encoding; b=MesSw5uK92o3VGlHD7kyJGpFkKhUP/dWaPv0sFpch6g2ABhrw+3y9HggGSYsgo3UCnW0o3gdq1qAImb7e6FiZrg0EHh2T0X8ILwqQvzImyTiS8vAszrZLvlHXYgc0MaKs3DmHWrUoBnZrjEF/UcwGAPk+Xw9Wqz/viVa4d30UHo= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=2B54cO7J; arc=none smtp.client-ip=10.30.226.201 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b="2B54cO7J" Received: by smtp.kernel.org (Postfix) with ESMTPSA id B4B7AC433F1; Thu, 18 Jan 2024 10:52:50 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1705575171; bh=UsM2mibWurf9kvkZXukE5ju+H67HJa3tKJVHqO8GBxw=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=2B54cO7JVeWNP2VQUCy+H6sqqRcrgfcqTmK1CBORZj7Xmyh9MIj99UvrOm+NWbY2Y F3ASGbLjPv+aPcWFnFmJk5eXLYlvE1hBguCfdBB7raRxMa59gyxJSPp73zoarMOLM9 4FhktBw8JkgBI9yaEnj6Tsq7ivcVIlwkYnnSoMsM= From: Greg Kroah-Hartman To: stable@vger.kernel.org Cc: Greg Kroah-Hartman , patches@lists.linux.dev, Shengjiu Wang , Mark Brown , Sasha Levin Subject: [PATCH 6.6 037/150] ASoC: fsl_xcvr: Enable 2 * TX bit clock for spdif only case Date: Thu, 18 Jan 2024 11:47:39 +0100 Message-ID: <20240118104321.816848079@linuxfoundation.org> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20240118104320.029537060@linuxfoundation.org> References: <20240118104320.029537060@linuxfoundation.org> User-Agent: quilt/0.67 X-stable: review X-Patchwork-Hint: ignore Precedence: bulk X-Mailing-List: patches@lists.linux.dev List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit 6.6-stable review patch. If anyone has any objections, please let me know. ------------------ From: Shengjiu Wang [ Upstream commit c33fd110424dfcb544cf55a1b312f43fe1918235 ] The bit 10 in TX_DPTH_CTRL register controls the TX clock rate. If this bit is set, TX datapath clock should be = 2* TX bit rate. If this bit is not set, TX datapath clock should be 10* TX bit rate. As the spdif only case, we always use 2 * TX bit clock, so this bit need to be set. Signed-off-by: Shengjiu Wang Link: https://lore.kernel.org/r/1700617373-6472-1-git-send-email-shengjiu.wang@nxp.com Signed-off-by: Mark Brown Signed-off-by: Sasha Levin --- sound/soc/fsl/fsl_xcvr.c | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/sound/soc/fsl/fsl_xcvr.c b/sound/soc/fsl/fsl_xcvr.c index fa0a15263c66..77f8e2394bf9 100644 --- a/sound/soc/fsl/fsl_xcvr.c +++ b/sound/soc/fsl/fsl_xcvr.c @@ -414,6 +414,16 @@ static int fsl_xcvr_prepare(struct snd_pcm_substream *substream, switch (xcvr->mode) { case FSL_XCVR_MODE_SPDIF: + if (xcvr->soc_data->spdif_only && tx) { + ret = regmap_update_bits(xcvr->regmap, FSL_XCVR_TX_DPTH_CTRL_SET, + FSL_XCVR_TX_DPTH_CTRL_BYPASS_FEM, + FSL_XCVR_TX_DPTH_CTRL_BYPASS_FEM); + if (ret < 0) { + dev_err(dai->dev, "Failed to set bypass fem: %d\n", ret); + return ret; + } + } + fallthrough; case FSL_XCVR_MODE_ARC: if (tx) { ret = fsl_xcvr_en_aud_pll(xcvr, fout); -- 2.43.0