From patchwork Wed Jul 4 09:49:42 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Srinivas Kandagatla X-Patchwork-Id: 141056 Delivered-To: patch@linaro.org Received: by 2002:a2e:9754:0:0:0:0:0 with SMTP id f20-v6csp600875ljj; Wed, 4 Jul 2018 02:52:33 -0700 (PDT) X-Google-Smtp-Source: AAOMgpd0vWiTonNbpiFiCypz53psHuvQSw4xlB8Un5lL6m/bhEWNyooK5Xn4bKJLe6dBZDKWNdp0 X-Received: by 2002:a1c:99c5:: with SMTP id b188-v6mr1052489wme.15.1530697953793; Wed, 04 Jul 2018 02:52:33 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1530697953; cv=none; d=google.com; s=arc-20160816; b=CuHhbES+weYcxiPTDURKilYrHUQbLMRhisURpQmPwm2eF5xwSKXJS3DDFc4kT0B7xF EHdLnz5YOPjVE4pNLhbZAcuRP+RuxgoRQwqhYKzs5sEozHspMHnk6nDa9euYFIjKTMza wgltvPazIgNC76WbwDSI/ynxOeycQl7Z+Qvb46tqILXE+CKyZCJpdYP2uaKvuOoM8Hcl 9SCKAmKrgYD9dU9QOraOQE2D+tgh0hLEIUQPLbnjhJ/dTmkKbOZN2JXLHqyhLAphwto9 Ih/7zlxDfgnuxIpc9tPgZ9AkoARTjKWAnIzMh9xYYglftzpjz01h+igKfHWS6nTT0Uv7 9/zw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:content-transfer-encoding:mime-version :list-subscribe:list-help:list-post:list-archive:list-unsubscribe :list-id:precedence:subject:cc:references:in-reply-to:message-id :date:to:from:dkim-signature:delivered-to:arc-authentication-results; bh=S2M0YD6IKlZtKCFiXhXadHWSpZG5cLMqg2eoZJlDT78=; b=bRUgSGaKmMorOvUYaolRRx0UqJNIqUbEMXK5YhIQv/+RPNTjbMb+oqXw5C0xDcRgFU 6bOSQejQCGKJab5gbiLuJGpUAzQIovAqoBReIcgfVuZe3M1rJNj0Go1Z/aLIwgx6NX++ jrX52sYarzxAhOkJsAEPydhsYuuyCeQceSuWL0Zv0PP3Sb33YnClTHN+IXYG9ZnnS2pZ gXUZUdJ+kR1WeyH5wLekjJ1FCQ3COwSRla9HBRxaaLq6fh6zsAgMphk8kC/ByuGc7UkZ PCysPLD7Id1+CHMD38cRi4ipakAvGgzdStK73J0jOpXU/wgL+FkBmdZmFGZidgpLZ0Q5 mZAg== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@linaro.org header.s=google header.b="NG/Uhmb1"; spf=pass (google.com: domain of alsa-devel-bounces@alsa-project.org designates 77.48.224.243 as permitted sender) smtp.mailfrom=alsa-devel-bounces@alsa-project.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from alsa0.perex.cz (alsa0.perex.cz. [77.48.224.243]) by mx.google.com with ESMTP id b123-v6si2470048wmb.53.2018.07.04.02.52.33; Wed, 04 Jul 2018 02:52:33 -0700 (PDT) Received-SPF: pass (google.com: domain of alsa-devel-bounces@alsa-project.org designates 77.48.224.243 as permitted sender) client-ip=77.48.224.243; Authentication-Results: mx.google.com; dkim=neutral (body hash did not verify) header.i=@linaro.org header.s=google header.b="NG/Uhmb1"; spf=pass (google.com: domain of alsa-devel-bounces@alsa-project.org designates 77.48.224.243 as permitted sender) smtp.mailfrom=alsa-devel-bounces@alsa-project.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from alsa0.perex.cz (localhost [127.0.0.1]) by alsa0.perex.cz (Postfix) with ESMTP id 5910B267783; Wed, 4 Jul 2018 11:52:07 +0200 (CEST) X-Original-To: alsa-devel@alsa-project.org Delivered-To: alsa-devel@alsa-project.org Received: by alsa0.perex.cz (Postfix, from userid 1000) id 2EFE926773A; Wed, 4 Jul 2018 11:51:59 +0200 (CEST) X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on mail1.perex.cz X-Spam-Level: X-Spam-Status: No, score=-0.1 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,RCVD_IN_DNSWL_NONE,RCVD_IN_MSPIKE_H2,SPF_PASS autolearn=disabled version=3.4.0 Received: from mail-wr0-f195.google.com (mail-wr0-f195.google.com [209.85.128.195]) by alsa0.perex.cz (Postfix) with ESMTP id 945D126772D for ; Wed, 4 Jul 2018 11:51:57 +0200 (CEST) Received: by mail-wr0-f195.google.com with SMTP id j33-v6so4678950wrj.5 for ; Wed, 04 Jul 2018 02:51:57 -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:in-reply-to:references; bh=95o/HT/SaGPK83p31aRyZLuV5q5VAPiiNUedqU0bxEA=; b=NG/Uhmb1VwXf9oil929a35cQ3yRSRxfD61nRbD/Afpe2Ufsvbio5CbiDt36J+sM7PX OmqGt8bvtyBMK/eneniYAQSRaePofypPsAtg0jDCAnAQWHr78yOl7iGVoD56+63BryCr T8e8n342sCHco2cL/8dLHspCj5Vs4E9GY3tSg= 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:in-reply-to :references; bh=95o/HT/SaGPK83p31aRyZLuV5q5VAPiiNUedqU0bxEA=; b=da7E7WWeu5ZH0Hz0jfzY9r2gGDuq/gAn2fSnB/HbEYSiuRMX9ZUj+hDQfg9XoTi8u/ FsHHaYvuSO0/JNWSD+moPjwshaUgqcIsmVd80gpO3Of226Q+SjGw44dZgpn9tUJsYKke A4zie/gG8RBDj+ayDNoKftq6GIrj/jHLacC6d5AKor0yJeU8/yt9MTxEf5LLapZwe2K7 kgoYy4sO+wtTqWNN1kUNVG5l6a3ZuUGsXZy1DMoAR48pUdXmCtFDiQFT3a/UYMm+uoEH XvpQnlAbC7vrKyYdyy22y/CnTwaFOZHKUED49+nThc44eo5SUUBgxEhPggb8Y1enVyNN RULA== X-Gm-Message-State: APt69E1UAPKUruPZxR/UMqcuSGwt+tP42/6TsbWLuskCi6SOAdDYjiCX 2ECn/F0yUd6ij2VxTjiwtpmfIg== X-Received: by 2002:adf:a0f3:: with SMTP id n48-v6mr1114940wrn.23.1530697917108; Wed, 04 Jul 2018 02:51:57 -0700 (PDT) Received: from localhost.localdomain (cpc90716-aztw32-2-0-cust92.18-1.cable.virginm.net. [86.26.100.93]) by smtp.gmail.com with ESMTPSA id 125-v6sm6370089wmw.9.2018.07.04.02.51.56 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Wed, 04 Jul 2018 02:51:56 -0700 (PDT) From: Srinivas Kandagatla To: broonie@kernel.org, alsa-devel@alsa-project.org Date: Wed, 4 Jul 2018 10:49:42 +0100 Message-Id: <20180704094944.16440-5-srinivas.kandagatla@linaro.org> X-Mailer: git-send-email 2.16.2 In-Reply-To: <20180704094944.16440-1-srinivas.kandagatla@linaro.org> References: <20180704094944.16440-1-srinivas.kandagatla@linaro.org> Cc: bgoswami@codeaurora.org, linux-arm-msm@vger.kernel.org, tiwai@suse.com, lgirdwood@gmail.com, linux-kernel@vger.kernel.org, Srinivas Kandagatla , linux-arm-kernel@lists.infradead.org Subject: [alsa-devel] [PATCH 4/6] ASoC: qdsp6: q6afe-dai: Do not overwrite slim dai num_channels X-BeenThere: alsa-devel@alsa-project.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: "Alsa-devel mailing list for ALSA developers - http://www.alsa-project.org" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Errors-To: alsa-devel-bounces@alsa-project.org Sender: alsa-devel-bounces@alsa-project.org num_channels for slim dais are aready set int set_channel_map, do not overwrite them in hw_params. Signed-off-by: Srinivas Kandagatla --- sound/soc/qcom/qdsp6/q6afe-dai.c | 1 - 1 file changed, 1 deletion(-) -- 2.16.2 _______________________________________________ Alsa-devel mailing list Alsa-devel@alsa-project.org http://mailman.alsa-project.org/mailman/listinfo/alsa-devel diff --git a/sound/soc/qcom/qdsp6/q6afe-dai.c b/sound/soc/qcom/qdsp6/q6afe-dai.c index 8dd3683eb367..074582afda85 100644 --- a/sound/soc/qcom/qdsp6/q6afe-dai.c +++ b/sound/soc/qcom/qdsp6/q6afe-dai.c @@ -81,7 +81,6 @@ static int q6slim_hw_params(struct snd_pcm_substream *substream, struct q6afe_dai_data *dai_data = dev_get_drvdata(dai->dev); struct q6afe_slim_cfg *slim = &dai_data->port_config[dai->id].slim; - slim->num_channels = params_channels(params); slim->sample_rate = params_rate(params); switch (params_format(params)) {