Received: by 2002:a25:8b12:0:0:0:0:0 with SMTP id i18csp3115132ybl; Mon, 19 Aug 2019 12:27:42 -0700 (PDT) X-Google-Smtp-Source: APXvYqzqc6X1nuDwat+UHt0f8mN4TWie4QjGMKLVjScy0jpQ5SZUnm1H2WEyDpUZnX2AcLXFoH4l X-Received: by 2002:a62:584:: with SMTP id 126mr26047954pff.73.1566242862106; Mon, 19 Aug 2019 12:27:42 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1566242862; cv=none; d=google.com; s=arc-20160816; b=yFLBnXwuVI2ahNl9yTF2XWDTi+jyDPD673Rc7r0Ya6eSomD+sYx9iSTd5hLvQWqmuv HmjnlKFZI+tDR9big1nFr4xSQgPuULJZq465xZdFxXrRXtdp5e2wO0A378kwBDgt+lTk NlndMw33HFkGbfY2S0CTXPbIo/XeUh8pp0WuNkSe0Cl95sl5hRJ+VWEFJKCM7b1fDBQ8 jX64rX6i4KcQ+KMcHBbXurp0bkw0A94wDjqetKr5sZPmOeoWxobGFG3I1sQtsU0DiTnw zWuP/MOmQs7x2OdVezIzCIBBVZvEZ2F2QpIninRQbnCcG/hcyNem3DtiheNQ4RHMcPVw XC5A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=4ZoDXeYbpy91fgEQXxofdFB+Je9KVBQfJGJIf/JGkC0=; b=pVfuPwy2RpPPdff4pcYsD/933uoF77A2sL+NKWWpN2/iM6PSUMdJrFwm/M6+4q4EDC cV26L3jeah3RbYkX5ZcoPj+B18bAGLI+P+8r2yEEJ7pvNCmJSctRpPC+2giXU7NnEoBQ MD1b20uD0RZiDlVSCNtC1zvd+AhUWmd4coLCJOvdafjHiM4tBkcM+0I3wGsiacLjgRit pQJtPTr1ah0c5mAUywfAV9Ne2oBGEQDoKnf3mCOv+jhI28whZR4EudFJm8OAkoP4+17Q piGI6Or0v0Q5XDboLZV1/9Je6MdrCJJCJsPhnjq+VYMEcHXGmukJ36RZwyfVPPp261mc 9mRA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=pIf3gPHH; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id br3si9468207pjb.6.2019.08.19.12.27.27; Mon, 19 Aug 2019 12:27:42 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=pIf3gPHH; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728672AbfHST0L (ORCPT + 99 others); Mon, 19 Aug 2019 15:26:11 -0400 Received: from mail.kernel.org ([198.145.29.99]:41850 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728649AbfHST0H (ORCPT ); Mon, 19 Aug 2019 15:26:07 -0400 Received: from localhost (lfbn-1-10718-76.w90-89.abo.wanadoo.fr [90.89.68.76]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 1C721206C1; Mon, 19 Aug 2019 19:26:05 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1566242766; bh=9kEw9cHE+bCs68Xy5PuK1OYo4Sh8sJwkLQ3Okm4GVxk=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=pIf3gPHHYMaY1X3Db+4FwyD5v4DkbTmTrTcaCASUnizc0O/PJZV9rMlwHntNAu7Pa xIN5Oyk1OW0q8zHwOMTnWxVi7VivC7Kv6J1OD4A/9AV3eVEke95aML5iPiTj8qmrZS f4cqst6iaO3dl0Py/rD4HX+bm0uUONFPDwTzx6Y0= From: Maxime Ripard To: Chen-Yu Tsai , Maxime Ripard , lgirdwood@gmail.com, broonie@kernel.org Cc: alsa-devel@alsa-project.org, linux-arm-kernel@lists.infradead.org, codekipper@gmail.com, linux-kernel@vger.kernel.org Subject: [PATCH 11/21] ASoC: sun4i-i2s: Use the actual format width instead of an hardcoded one Date: Mon, 19 Aug 2019 21:25:18 +0200 Message-Id: X-Mailer: git-send-email 2.21.0 In-Reply-To: References: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Maxime Ripard The LRCK period field in the FMT0 register holds the number of LRCK period for one channel in I2S mode. This has been hardcoded to 32, while it really should be the physical width of the format, which creates an improper clock when using a 16bit format, with the i2s controller as LRCK master. Fixes: 7d2993811a1e ("ASoC: sun4i-i2s: Add support for H3") Signed-off-by: Maxime Ripard --- sound/soc/sunxi/sun4i-i2s.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sound/soc/sunxi/sun4i-i2s.c b/sound/soc/sunxi/sun4i-i2s.c index 08fc04ad3585..2996beb4f092 100644 --- a/sound/soc/sunxi/sun4i-i2s.c +++ b/sound/soc/sunxi/sun4i-i2s.c @@ -357,7 +357,7 @@ static int sun4i_i2s_set_clk_rate(struct snd_soc_dai *dai, if (i2s->variant->has_fmt_set_lrck_period) regmap_update_bits(i2s->regmap, SUN4I_I2S_FMT0_REG, SUN8I_I2S_FMT0_LRCK_PERIOD_MASK, - SUN8I_I2S_FMT0_LRCK_PERIOD(32)); + SUN8I_I2S_FMT0_LRCK_PERIOD(params_physical_width(params))); return 0; } -- git-series 0.9.1