From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-9.8 required=3.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_PATCH,MAILING_LIST_MULTI, SIGNED_OFF_BY,SPF_HELO_NONE,SPF_PASS,USER_AGENT_GIT autolearn=unavailable autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 451C1C742B9 for ; Fri, 12 Jul 2019 12:38:54 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 1AAEA2080A for ; Fri, 12 Jul 2019 12:38:54 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1562935134; bh=z3yB6vqmd/mP1npOTi1va07TKGhms6kIf6c+LKnEj9o=; h=From:To:Cc:Subject:Date:In-Reply-To:References:List-ID:From; b=zSvHmJmwlQarVrEiFpWb6sAkE4GQOZ1MA97YLbCx5bahodq/9yWVpVHQm1zra7NrT dr6cSaLVn0/I2FcJSkn7twRxzL902/5O4fa5f94NKnhLbjsHL2IewwrZtvAqqSSj5o Nk/hlnTCtD9VwwZ/+kw3nPV6PBKL5MeRgtcWlNJY= Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728804AbfGLM2X (ORCPT ); Fri, 12 Jul 2019 08:28:23 -0400 Received: from mail.kernel.org ([198.145.29.99]:42214 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728801AbfGLM2X (ORCPT ); Fri, 12 Jul 2019 08:28:23 -0400 Received: from localhost (83-86-89-107.cable.dynamic.v4.ziggo.nl [83.86.89.107]) (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 374C421019; Fri, 12 Jul 2019 12:28:22 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1562934502; bh=z3yB6vqmd/mP1npOTi1va07TKGhms6kIf6c+LKnEj9o=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=IaIRwmkTIGg68x3D3I5xMsplNfynmfKx8nk2uMF0HTR7zFpiwVybMcahuC/gGuhJA pcZnIPX8ZaJ8mPJdPCyP3QVFdFP/FLzHUWTklPwkQ+5V8hMm47s7+lIB82tmRcTmnP 6eqnlLdOHl4tjPF9wCbYpBpAVR2lqJEV2G9miiNY= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Srinivas Kandagatla , Vinod Koul , Sasha Levin Subject: [PATCH 5.1 032/138] soundwire: intel: set dai min and max channels correctly Date: Fri, 12 Jul 2019 14:18:16 +0200 Message-Id: <20190712121629.929996120@linuxfoundation.org> X-Mailer: git-send-email 2.22.0 In-Reply-To: <20190712121628.731888964@linuxfoundation.org> References: <20190712121628.731888964@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Sender: stable-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: stable@vger.kernel.org [ Upstream commit 39194128701bf2af9bbc420ffe6e3cb5d2c16061 ] Looks like there is a copy paste error. This patch fixes it! Signed-off-by: Srinivas Kandagatla Signed-off-by: Vinod Koul Signed-off-by: Sasha Levin --- drivers/soundwire/intel.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/soundwire/intel.c b/drivers/soundwire/intel.c index fd8d034cfec1..5ba641858e21 100644 --- a/drivers/soundwire/intel.c +++ b/drivers/soundwire/intel.c @@ -714,8 +714,8 @@ static int intel_create_dai(struct sdw_cdns *cdns, return -ENOMEM; } - dais[i].playback.channels_min = 1; - dais[i].playback.channels_max = max_ch; + dais[i].capture.channels_min = 1; + dais[i].capture.channels_max = max_ch; dais[i].capture.rates = SNDRV_PCM_RATE_48000; dais[i].capture.formats = SNDRV_PCM_FMTBIT_S16_LE; } -- 2.20.1