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: 10506415 X-Patchwork-Delegate: agross@codeaurora.org Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id 933A4603D7 for ; Wed, 4 Jul 2018 09:53:27 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 92B4928D0D for ; Wed, 4 Jul 2018 09:53:27 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 86E4928D1A; Wed, 4 Jul 2018 09:53:27 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-7.8 required=2.0 tests=BAYES_00,DKIM_SIGNED, MAILING_LIST_MULTI, RCVD_IN_DNSWL_HI, T_DKIM_INVALID autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 315D428D0D for ; Wed, 4 Jul 2018 09:53:27 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932499AbeGDJwi (ORCPT ); Wed, 4 Jul 2018 05:52:38 -0400 Received: from mail-wr0-f195.google.com ([209.85.128.195]:43072 "EHLO mail-wr0-f195.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932864AbeGDJv6 (ORCPT ); Wed, 4 Jul 2018 05:51:58 -0400 Received: by mail-wr0-f195.google.com with SMTP id f18-v6so4663256wre.10 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=QRLMo7taZ2r6jJKoQSMWfsf1ZcJ5lqRhL/eyeear/Srx72stfA6zRpmnuNw7vh0yAC pXxvjXDRye0gp80TUD5M9eeeyuatP6rnp96VSRYilST4eDfwjHlQDAyRej5HDyDjwBsT swIWe3EoUttM01puTvPafJ/Ln39/xJN7xaHruDR0jEENDFmnHi7WgLwQpjyAOF1nOcRB P2jV54Araxuw2pIJiQzfzJxqH9YtSbjgkVKH/ye1V9gPfnnlzCMwDIg6XxziJxcxqeG/ sdQ+Rv4MvybpAlwz/437VGVUnZdSbhosmOsG0yXWzYcePMu6W6z2/cSgQWAz15MD1onS 0Ppg== X-Gm-Message-State: APt69E2etsWl8BlrXbreO6w9zB6QW77Jzt/HDBdKYIjsa3XgcgRn0Akt itHTcqExQiUhj/gixNRrJDqPdg== X-Google-Smtp-Source: AAOMgpfEskBCW1rl1Fh/EXnSWlNVX6nnh2ppLFYz5UlS5luPBXS6UghxPp7gu3T6kJp0uJyxW3QGCA== 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 Cc: linux-arm-msm@vger.kernel.org, lgirdwood@gmail.com, bgoswami@codeaurora.org, tiwai@suse.com, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, Srinivas Kandagatla Subject: [PATCH 4/6] ASoC: qdsp6: q6afe-dai: Do not overwrite slim dai num_channels 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> Sender: linux-arm-msm-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-arm-msm@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP 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(-) 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)) {