From patchwork Thu Jun 6 11:23:04 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Srinivas Kandagatla X-Patchwork-Id: 165976 Delivered-To: patch@linaro.org Received: by 2002:a92:9e1a:0:0:0:0:0 with SMTP id q26csp8651825ili; Thu, 6 Jun 2019 04:23:10 -0700 (PDT) X-Google-Smtp-Source: APXvYqxoRvv0Fw0MUHc2pGmOFmVT8r3nIkL6mkpQptJSMkllLXuvV/MwUOfwv2Q3b63XUC3gslcP X-Received: by 2002:a17:90a:3463:: with SMTP id o90mr6327540pjb.15.1559820190135; Thu, 06 Jun 2019 04:23:10 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1559820190; cv=none; d=google.com; s=arc-20160816; b=OVbSEp1QZJAdhpiUT7xSEjVc6helXVC2KXbgOwjAg5Pq9f8Cjn5h+/rrZtIpg/4rkt LN69Zlp3foZhES5w/2cAa0sQB6LB+UjnV0GFGaCZnUROoK5rkT3d7akQvN0nFG+YYy7K dPQ/NWYKVJKlSZmSJ8aV9jpSFmloO6f+uAz9AA57zae9+QodzQ+ReJBnyIHP2GSNwUh9 5uArF60GUzCFFTWpozfQdXeaJkLcAg3fag+VLxMrakIDdvxR518AzrhOtFFak6cx2dXj 7ryVPy9Wq53LsepuYrO2utev3Ln8zG1Yx5ioaJIG7F2BLS3b6/Lfo934LRtQo0EOop87 W92w== 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 :message-id:date:subject:cc:to:from:dkim-signature; bh=pr9e4dK0lnGJ2yEy2umbpZ8NBL7aMcK376HEwfKTTSg=; b=X8qATCkz4OGXC9xBxWpIzJyltuN86XRLZxs4DPSdydvqY1q9co19JTNnk0LM0N9NFh SQPsrFaZwRmKzou83m8eCgscRyHsdsKvAt/w4qswffbkOJMQOQ2rDTQVGHCldvduaJbf ztYZJKRHuMc3kKeRUdROsYZ/e/6zyL5TXZpt3gtoJfsaVYhslXkJrkx4fOW6JfHVtYaL elDxEiyT2VTXH7L8obOtd++zc5/jEdzMuHcodbDHzdfdA4dMgQQVxUQFDkOOsanxzPjt WFigkQ+100spxDBYOGYEkzwnXDCJhk7k00OU5WKlkMU0GmlpninzU17wAgROJmyEqWGE hNlA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=EwkWNm95; 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=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id a4si1571868plm.209.2019.06.06.04.23.09; Thu, 06 Jun 2019 04:23:10 -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=@linaro.org header.s=google header.b=EwkWNm95; 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=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728227AbfFFLXJ (ORCPT + 30 others); Thu, 6 Jun 2019 07:23:09 -0400 Received: from mail-wr1-f68.google.com ([209.85.221.68]:46879 "EHLO mail-wr1-f68.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726066AbfFFLXI (ORCPT ); Thu, 6 Jun 2019 07:23:08 -0400 Received: by mail-wr1-f68.google.com with SMTP id n4so1973468wrw.13 for ; Thu, 06 Jun 2019 04:23:07 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=pr9e4dK0lnGJ2yEy2umbpZ8NBL7aMcK376HEwfKTTSg=; b=EwkWNm95uFdLdM6RVx3Tj6uT8um7i0aQEk1uRiVUv6JiohjUK7uiq6SBosLxySlReZ w4+rqFTLDLLwOXiyiaTuRODHY2MCzFPoj4wGmCszy3QpM4x3VDY0toxgqWrOg5qgDiBy Wf0JxWZ0DuyF8axVyO7cJknAe+UoMA5tKaVllx1TOlExCep8ehzJtmLPY3MCL4OHXj0U ZpZITzyhYsNsYtt1HZVVGAarS8nclV9zhm43p1sT3GBHR4IL8n0Y9KsOy5SEOZDdIiPD uexzGvIpYaO2St7WwsvcujbC56A8JY9lH2lIb0tGY5YqwTBNRRKf9xdwlic898Xi7qqc fW2Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=pr9e4dK0lnGJ2yEy2umbpZ8NBL7aMcK376HEwfKTTSg=; b=eONiJaAh2whPYXGatguzWcJ0T2voG6gdX+i9gverhVlD1/4a0CzLwaiuLfisA2E5lh LXXYU2zcc4m9BY4fSjRYJIT/YmL2/etvExig+RkBcq68i+ChQwrhut/Vi28uPAzjIQCW 1mBhUmG3XAwAgizogZ8/ndpryXAchQ21OlzrE3kUfPPiHte7yFp8Wa83/J5MBT95D/+9 dNWUzcTyZvdcDn4WVU8WfEMl940Qlp5Fx6BShFK0h0+G/aWkk37F+IUoMK+vmFLTh68l ketVBji36dj7PTovrwp1x4weiSsaVJcqNOZPdoGe85AhzUiZkp38jsGuQkKsetpv5LkI 1l8g== X-Gm-Message-State: APjAAAUblCTatiiwqEsdD+F9i++yL/CGlu2CE75ZjSFT22Eb440yANnf ll1eHsH8Pc4yus4o06xHhrAaLw== X-Received: by 2002:a5d:5342:: with SMTP id t2mr12198131wrv.126.1559820187229; Thu, 06 Jun 2019 04:23:07 -0700 (PDT) Received: from srini-hackbox.lan (cpc89974-aztw32-2-0-cust43.18-1.cable.virginm.net. [86.30.250.44]) by smtp.gmail.com with ESMTPSA id f21sm1558333wmb.2.2019.06.06.04.23.06 (version=TLS1_3 cipher=AEAD-AES256-GCM-SHA384 bits=256/256); Thu, 06 Jun 2019 04:23:06 -0700 (PDT) From: Srinivas Kandagatla To: vkoul@kernel.org Cc: pierre-louis.bossart@linux.intel.com, alsa-devel@alsa-project.org, linux-kernel@vger.kernel.org, Srinivas Kandagatla Subject: [PATCH] soundwire: intel: set dai min and max channels correctly Date: Thu, 6 Jun 2019 12:23:04 +0100 Message-Id: <20190606112304.16560-1-srinivas.kandagatla@linaro.org> X-Mailer: git-send-email 2.21.0 MIME-Version: 1.0 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Looks like there is a copy paste error. This patch fixes it! Signed-off-by: Srinivas Kandagatla --- drivers/soundwire/intel.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) -- 2.21.0 diff --git a/drivers/soundwire/intel.c b/drivers/soundwire/intel.c index 92be6ad84e8d..317873bc0555 100644 --- a/drivers/soundwire/intel.c +++ b/drivers/soundwire/intel.c @@ -721,8 +721,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; }