Received: by 2002:a17:90a:37a3:0:0:0:0 with SMTP id v32csp13094164pjb; Fri, 26 Jul 2019 05:14:07 -0700 (PDT) X-Google-Smtp-Source: APXvYqxuDk5HAm4iWSwVneaja8srHnfX8OH0zORNqtSRPKdEBMOR+Ts+wWJ/AXsTfvER+D+tMZNb X-Received: by 2002:a17:90a:fe5:: with SMTP id 92mr98984204pjz.35.1564143247370; Fri, 26 Jul 2019 05:14:07 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1564143247; cv=none; d=google.com; s=arc-20160816; b=Tn9R1QkkE/XW3YyQkfxqxwncwXqnnWxhsy+z2BSBW6xC5lybKhIKicvJu3aLK8p+VT TtLETZzCfCeLmhebn3wCQ72zTuRvgn4exMxsZ/GNfws6dtEzz+PugY8pdHUOp8HtWw7R 1QvLFV5/8Y8Ssq2EI88qx6NQHpQbAmiqDHEw2mpeJa46MsGCi/LlnWy+cN1OiUE2PA0P IxjEeUKbV07/BtKXTo5q0tAAELctwJf5vrojwpxwjPfPOBihIpv+EyVZRdO9KpLF0sgd WnzD99yCButSncaG0fSZ1QzBY21hKorOjfRQBvDnWz80yCkHg0mDie9esR6qAD/C92lA /3cw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:date:message-id:in-reply-to:subject:cc:to :from:dkim-signature; bh=ppv6g71055dMnrkMQSdTZpzfu9QPlBAMNF035s+cREw=; b=btWW6xC0NsMy2ArcxIN3MxnKAbJ8RQx1kTpDfIYwEeylce1IAVXI74T5h0QBn/Ihtm 4zj8QhkoGT3a4H6rXC4HJ2E7mY3RVo4rKg8zuJxOdmByKJ2qYTZ5lDJWP+effPCLQFOP g5SD94vdoxQetzlmYW3oIVuPu0Ldbep+IniBX1OG8/Wj8p+fyiDsBJ8in/+v6m1QOHpx iKE45WYlkKYxwZfTE8xxibrZCoF9I4ePgTNyO4weeTbVYPTyhwY73jiCRLIAGLvRD5ta NFqCVrHFdLOoyKa1EFAs/wtq/rUcEJfAY89UcSyYYNH1xrs/0yS5UgnRQurS2yXJ/euY i6hg== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@sirena.org.uk header.s=20170815-heliosphere header.b=uWg3gJmM; 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=fail (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 e13si21932254pfl.279.2019.07.26.05.13.49; Fri, 26 Jul 2019 05:14:07 -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=fail header.i=@sirena.org.uk header.s=20170815-heliosphere header.b=uWg3gJmM; 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=fail (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726979AbfGZMM0 (ORCPT + 99 others); Fri, 26 Jul 2019 08:12:26 -0400 Received: from heliosphere.sirena.org.uk ([172.104.155.198]:36150 "EHLO heliosphere.sirena.org.uk" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726203AbfGZMM0 (ORCPT ); Fri, 26 Jul 2019 08:12:26 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=sirena.org.uk; s=20170815-heliosphere; h=Date:Message-Id:In-Reply-To: Subject:Cc:To:From:Sender:Reply-To:MIME-Version:Content-Type: Content-Transfer-Encoding:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:References: List-Id:List-Help:List-Unsubscribe:List-Subscribe:List-Post:List-Owner: List-Archive; bh=ppv6g71055dMnrkMQSdTZpzfu9QPlBAMNF035s+cREw=; b=uWg3gJmM5dtO 6ZeuoYmRrchMwdzcw3uqtCJhzusDByr17UgU9Z9UNcSEI8LVj8RaraP1KVWGcL+cT7qMNqCdWVbuk ktvAxPC3zArscqgRJvUfBp0fPUtTo8wfqcbXawEA0GSQ4nE4rh5nqvDe+l1jypVH0Ju+sZxZ976Vg NVAS0=; Received: from cpc102320-sgyl38-2-0-cust46.18-2.cable.virginm.net ([82.37.168.47] helo=ypsilon.sirena.org.uk) by heliosphere.sirena.org.uk with esmtpsa (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1hqz58-0001Zr-U7; Fri, 26 Jul 2019 12:12:18 +0000 Received: by ypsilon.sirena.org.uk (Postfix, from userid 1000) id 543B02742B63; Fri, 26 Jul 2019 13:12:18 +0100 (BST) From: Mark Brown To: Cheng-Yi Chiang Cc: alsa-devel@alsa-project.org, dgreid@chromium.org, dianders@chromium.org, Heiko Stuebner , Jaroslav Kysela , Liam Girdwood , linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, linux-rockchip@lists.infradead.org, Mark Brown , mka@chromium.org, Takashi Iwai , tzungbi@chromium.org Subject: Applied "ASoC: rockchip: Fix mono capture" to the asoc tree In-Reply-To: <20190726044202.26866-1-cychiang@chromium.org> X-Patchwork-Hint: ignore Message-Id: <20190726121218.543B02742B63@ypsilon.sirena.org.uk> Date: Fri, 26 Jul 2019 13:12:18 +0100 (BST) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org The patch ASoC: rockchip: Fix mono capture has been applied to the asoc tree at https://git.kernel.org/pub/scm/linux/kernel/git/broonie/sound.git for-5.3 All being well this means that it will be integrated into the linux-next tree (usually sometime in the next 24 hours) and sent to Linus during the next merge window (or sooner if it is a bug fix), however if problems are discovered then the patch may be dropped or reverted. You may get further e-mails resulting from automated or manual testing and review of the tree, please engage with people reporting problems and send followup patches addressing any issues that are reported if needed. If any updates are required or you are submitting further changes they should be sent as incremental updates against current git, existing patches will not be replaced. Please add any relevant lists and maintainers to the CCs when replying to this mail. Thanks, Mark From 789e162a6255325325bd321ab0cd51dc7e285054 Mon Sep 17 00:00:00 2001 From: Cheng-Yi Chiang Date: Fri, 26 Jul 2019 12:42:02 +0800 Subject: [PATCH] ASoC: rockchip: Fix mono capture This reverts commit db51707b9c9aeedd310ebce60f15d5bb006567e0. Revert "ASoC: rockchip: i2s: Support mono capture" Previous discussion in https://patchwork.kernel.org/patch/10147153/ explains the issue of the patch. While device is configured as 1-ch, hardware is still generating a 2-ch stream. When user space reads the data and assumes it is a 1-ch stream, the rate will be slower by 2x. Revert the change so 1-ch is not supported. User space can selectively take one channel data out of two channel if 1-ch is preferred. Currently, both channels record identical data. Signed-off-by: Cheng-Yi Chiang Link: https://lore.kernel.org/r/20190726044202.26866-1-cychiang@chromium.org Signed-off-by: Mark Brown --- sound/soc/rockchip/rockchip_i2s.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/sound/soc/rockchip/rockchip_i2s.c b/sound/soc/rockchip/rockchip_i2s.c index 0a34d0eb8dba..88ebaf6e1880 100644 --- a/sound/soc/rockchip/rockchip_i2s.c +++ b/sound/soc/rockchip/rockchip_i2s.c @@ -326,7 +326,6 @@ static int rockchip_i2s_hw_params(struct snd_pcm_substream *substream, val |= I2S_CHN_4; break; case 2: - case 1: val |= I2S_CHN_2; break; default: @@ -459,7 +458,7 @@ static struct snd_soc_dai_driver rockchip_i2s_dai = { }, .capture = { .stream_name = "Capture", - .channels_min = 1, + .channels_min = 2, .channels_max = 2, .rates = SNDRV_PCM_RATE_8000_192000, .formats = (SNDRV_PCM_FMTBIT_S8 | @@ -659,7 +658,7 @@ static int rockchip_i2s_probe(struct platform_device *pdev) } if (!of_property_read_u32(node, "rockchip,capture-channels", &val)) { - if (val >= 1 && val <= 8) + if (val >= 2 && val <= 8) soc_dai->capture.channels_max = val; } -- 2.20.1