Received: by 2002:a05:6902:102b:0:0:0:0 with SMTP id x11csp861824ybt; Tue, 7 Jul 2020 02:02:27 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyR98YELISh9FnKqGNB4is7PXM+E9sK5+B11DI8EGiIZYlPNJ3LSI0+k5FWZop/qOxwxOCS X-Received: by 2002:aa7:d7cf:: with SMTP id e15mr60973991eds.236.1594112546854; Tue, 07 Jul 2020 02:02:26 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1594112546; cv=none; d=google.com; s=arc-20160816; b=zCbmNLxRycZD4N4PktAv3jqhyoHEtwst/Q9ao1bY/kaJTaaBlLUYWB+p00FrGx2TFK vW9BWDrRQDGHFqyXUi9c3/lOI7D/4DkGJwml+vkmnFzhzGWwo5XXMd2Y4KYrz0QMRqvX OpJpMcUIrQUqZrdVb747AoZotF0KPd6gu0SVwQqpn8GQ2U9cfErDCNmY8Yk41JJRwgyr LEnfGXgeoDcvQuhX7o7rU2NOoQJo3faXD0KBRbhbAhF8zZmA2D9DNDlQTGhphaZXfZe9 oQ1zNJYxFj1nR1YRwz+gaGKPdvwKQLqx1dZBFRGxW8M9fS2I48c5I2sJZ6P+hsS5WQu7 TCQA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:in-reply-to:message-id:date :subject:cc:to:from; bh=VXmoCfUgXlTWoBEe8MN+7ijbewTsi7B75/znt0GFZAI=; b=Kc1Soid/eKxOWNqPGkq5zl6xgswdsCFfOLA+z34c5MQgW0d8PVJVkZ5pGRuFmNj6tF Ua1KQI3/rPdeGjb1gy0Bu0XR+TRPbpuaw35GBvGbsyBr6WhZwmnMqKhhgSaCRhQ+/GiF Bk2a4lIFu7yBbunoAimmrGd8b3IjubRxaf4VgVcRDFWCEMIATtLXxerCzazj2mWrjP7Z 4l3BOIetVlKjI+2yvmfhyKdgtaa0+E318pIYZ1tbpFTwzdsS6gp/yq2gctBwMUT/zDKu H/cug6Twiz23d7Wb2yZIqzZ1LFyzBvdelPz1N9CKqJGXtLIqRd4+ygK9WCpE32rBWb8z bnQw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=nxp.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id u26si13825894edy.187.2020.07.07.02.02.01; Tue, 07 Jul 2020 02:02:26 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=nxp.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727107AbgGGI6t (ORCPT + 99 others); Tue, 7 Jul 2020 04:58:49 -0400 Received: from inva021.nxp.com ([92.121.34.21]:50484 "EHLO inva021.nxp.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725825AbgGGI6r (ORCPT ); Tue, 7 Jul 2020 04:58:47 -0400 Received: from inva021.nxp.com (localhost [127.0.0.1]) by inva021.eu-rdc02.nxp.com (Postfix) with ESMTP id A5D0E2008CD; Tue, 7 Jul 2020 10:58:45 +0200 (CEST) Received: from invc005.ap-rdc01.nxp.com (invc005.ap-rdc01.nxp.com [165.114.16.14]) by inva021.eu-rdc02.nxp.com (Postfix) with ESMTP id 5E35E2015DF; Tue, 7 Jul 2020 10:58:41 +0200 (CEST) Received: from localhost.localdomain (shlinux2.ap.freescale.net [10.192.224.44]) by invc005.ap-rdc01.nxp.com (Postfix) with ESMTP id BC92C402F0; Tue, 7 Jul 2020 16:58:35 +0800 (SGT) From: Shengjiu Wang To: timur@kernel.org, nicoleotsuka@gmail.com, Xiubo.Lee@gmail.com, festevam@gmail.com, broonie@kernel.org, perex@perex.cz, tiwai@suse.com, alsa-devel@alsa-project.org Cc: linuxppc-dev@lists.ozlabs.org, linux-kernel@vger.kernel.org Subject: [PATCH 1/2] ASoC: fsl_spdif: Clear the validity bit for TX Date: Tue, 7 Jul 2020 16:54:25 +0800 Message-Id: <1594112066-31297-2-git-send-email-shengjiu.wang@nxp.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1594112066-31297-1-git-send-email-shengjiu.wang@nxp.com> References: <1594112066-31297-1-git-send-email-shengjiu.wang@nxp.com> X-Virus-Scanned: ClamAV using ClamSMTP Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org In IEC958 spec, "The validity bit is logical "0" if the information in the main data field is reliable, and it is logical "1" if it is not". The default value of "ValCtrl" is zero, which means "Outgoing Validity always set", then all the data is not reliable, then some spdif sink device will drop the data. So set "ValCtrl" to 1, that is to clear "Outgoing Validity" in default. Signed-off-by: Shengjiu Wang --- sound/soc/fsl/fsl_spdif.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/sound/soc/fsl/fsl_spdif.c b/sound/soc/fsl/fsl_spdif.c index 9fb95c6ee7ba..576370dc6e70 100644 --- a/sound/soc/fsl/fsl_spdif.c +++ b/sound/soc/fsl/fsl_spdif.c @@ -985,6 +985,10 @@ static int fsl_spdif_dai_probe(struct snd_soc_dai *dai) snd_soc_add_dai_controls(dai, fsl_spdif_ctrls, ARRAY_SIZE(fsl_spdif_ctrls)); + /*Clear the val bit for Tx*/ + regmap_update_bits(spdif_private->regmap, REG_SPDIF_SCR, + SCR_VAL_MASK, SCR_VAL_CLEAR); + return 0; } -- 2.21.0