Received: by 10.192.165.148 with SMTP id m20csp5130714imm; Tue, 8 May 2018 23:05:49 -0700 (PDT) X-Google-Smtp-Source: AB8JxZolC6JO+c7XvrvLGxQ9cWT0AR+afv6dztm/qOnO7TtLzRyPIEdXLXyodWYjFi8iLRBMz+KU X-Received: by 2002:a65:4c4f:: with SMTP id l15-v6mr35178614pgr.61.1525845949059; Tue, 08 May 2018 23:05:49 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1525845949; cv=none; d=google.com; s=arc-20160816; b=Y6XK+sJge5OnH58L4SZSrYBGs/yNfmNNyjz/ISwk+IMV2RMj4zWh3krQi5pIBvuNGn cC5SdtZ9W3v3l3ylqEOimYzkA7cA3+oO9aM9POsFzp0e+OxdRHdtwOs9sF4e/9sagr0Y GpuT6/wBjM1SoWeORzOwjbu7o4uJFlKM7v/YMYYBcbngjWxtoHU907a7xak7yetLI9Kl Llg21Ejs13lgKzvtcS1DExYPYuVdmExOfAqCBCmgfETntaw2jAnP4QN4GGl3uvdYZwEC ESQkIviyhLsf8eDbkz5BeIbNXYqdsP/ilvHJCeCNZuHSMesvUUmKY+Yp7SXJwWQhLAzQ AJOA== 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 :content-language:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject:dkim-signature :arc-authentication-results; bh=TeuPKYQYzWySnkBJdWdpU4HuaOMRB0bMQIIslvv7Ws0=; b=AuZnC+eoqJ4biVlKw3rMyiazG5mQ2EEnlOk9wvyw1XuNbB3IM1MugklljQUqQK+L7b hjJJ9zCqIohBi65k8ezD48+bzM8EdhwzicYDX3weXGA3S2o8ozWUcoLM2vbW2TbkDtn/ 2QB6RpAoJxZKk9tSqoWhELVxZ4JmselhAyXTc5t1RbUcebIPpc04qxYv6U+9xkO1y6ig 3qOKx9uhtx1WLmJhOZtX/8kEXGGorIhN42UqvoAQio0JPJNVrakE+ViHOGkczwJWh25h TfswbMECylDz07T6TuHyLtem6dVAeydbJj3L+6jkDv43pOnIuYhSlOzjkAIUV3fhZzGW ui8w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=OiRSU2tS; 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 t5-v6si4506622ply.598.2018.05.08.23.05.34; Tue, 08 May 2018 23:05:49 -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=OiRSU2tS; 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 S1756116AbeEIGFR (ORCPT + 99 others); Wed, 9 May 2018 02:05:17 -0400 Received: from mail-wm0-f68.google.com ([74.125.82.68]:39178 "EHLO mail-wm0-f68.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1755694AbeEIGFO (ORCPT ); Wed, 9 May 2018 02:05:14 -0400 Received: by mail-wm0-f68.google.com with SMTP id f8-v6so25350801wmc.4 for ; Tue, 08 May 2018 23:05:13 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=subject:to:cc:references:from:message-id:date:user-agent :mime-version:in-reply-to:content-language:content-transfer-encoding; bh=TeuPKYQYzWySnkBJdWdpU4HuaOMRB0bMQIIslvv7Ws0=; b=OiRSU2tS2MEA9GuHj14Nwbu8PszCDOixsxuv51cl6CPsxulBKWBg42lHpBg7trXEKn +Fpo7FEzhJ7Ulo36GUdfUPC9foksSxP0acCmiWIZcT3Noyuoibxbc3qAD5SaRyN1NeaK 6DvsYf//E5i5WT6YwbSSdbLW0QN9Y1e7zh4R0= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:cc:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=TeuPKYQYzWySnkBJdWdpU4HuaOMRB0bMQIIslvv7Ws0=; b=MukdMR1bhjGT2SiQ8a9q4a2cVz9Z6r54CHcVrPZiI9SCSKULW7Ts7h6Q03oHg17CWp OYtV8D8OydKjB69BOZi7vxNdU8oSnd/qOjdbk45E/yKeTZJnOc++Pa+TC/SgYO2+lYqR ed4b/2L6KL2MqvFDbT6m/eQ2vyP2CyHI1vqL8p0KzLIjfuaKkltcE83Sf11sDpMDVIqf kHgjEE7BXh+JnPr7P6TPE8BD4jDfuw7FsAjiipvrfluymYgAAPAXkUhmNjB6F0ir8rzn Dh+BTWa3bkBccjRsyfbSDRWE5KaIBVmHURM1kuVdXeoG+Uh1/AtdrWtSd4OF7AinOICQ zA8Q== X-Gm-Message-State: ALQs6tDITd38uXAjj4mRLyHBcn5zjxLowI5uLa+paYXrZRyKHoPsR/F+ LVTxBfhI/ePICz73ZUBMen3F2g== X-Received: by 2002:aa7:c384:: with SMTP id k4-v6mr58304872edq.149.1525845913057; Tue, 08 May 2018 23:05:13 -0700 (PDT) Received: from [192.168.0.18] (cpc90716-aztw32-2-0-cust92.18-1.cable.virginm.net. [86.26.100.93]) by smtp.googlemail.com with ESMTPSA id d29-v6sm8119413eda.52.2018.05.08.23.05.11 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 08 May 2018 23:05:12 -0700 (PDT) Subject: Re: [PATCH v7 11/24] ASoC: qdsp6: q6afe: Add support to MI2S ports To: Banajit Goswami , andy.gross@linaro.org, broonie@kernel.org, linux-arm-msm@vger.kernel.org, alsa-devel@alsa-project.org, robh+dt@kernel.org Cc: gregkh@linuxfoundation.org, david.brown@linaro.org, mark.rutland@arm.com, lgirdwood@gmail.com, plai@codeaurora.org, tiwai@suse.com, perex@perex.cz, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, rohkumar@qti.qualcomm.com, spatakok@qti.qualcomm.com References: <20180501120820.11016-1-srinivas.kandagatla@linaro.org> <20180501120820.11016-12-srinivas.kandagatla@linaro.org> <2d1e7dfd-b65a-4297-f98b-15c2dd54c61a@codeaurora.org> From: Srinivas Kandagatla Message-ID: <3e8b4622-81b9-2091-dfd9-22ea035a8b52@linaro.org> Date: Wed, 9 May 2018 07:05:11 +0100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.2.1 MIME-Version: 1.0 In-Reply-To: <2d1e7dfd-b65a-4297-f98b-15c2dd54c61a@codeaurora.org> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Thanks Banajit for review! On 09/05/18 04:21, Banajit Goswami wrote: > > On 5/1/2018 5:08 AM, Srinivas Kandagatla wrote: >> This patch adds support to 4 MI2S ports on LPASS. >> >> Signed-off-by: Srinivas Kandagatla >> Reviewed-and-tested-by: Rohit kumar >> --- >> sound/soc/qcom/qdsp6/q6afe.c | 224 >> +++++++++++++++++++++++++++++++++++++++++++ >> sound/soc/qcom/qdsp6/q6afe.h | 13 +++ >> 2 files changed, 237 insertions(+) >> >> diff --git a/sound/soc/qcom/qdsp6/q6afe.c b/sound/soc/qcom/qdsp6/q6afe.c >> index be55b3ab045f..ceb18aaa5af4 100644 >> --- a/sound/soc/qcom/qdsp6/q6afe.c >> +++ b/sound/soc/qcom/qdsp6/q6afe.c >> @@ -14,6 +14,10 @@ >> #include >> #include >> #include >> +#include >> +#include >> +#include > > >> union afe_port_config { >> struct afe_param_id_hdmi_multi_chan_audio_cfg hdmi_multi_ch; >> struct afe_param_id_slimbus_cfg slim_cfg; >> + struct afe_param_id_i2s_cfg i2s_cfg; >> } __packed; >> struct q6afe_port { >> @@ -210,6 +264,22 @@ static struct afe_port_map >> port_maps[AFE_PORT_MAX] = { >> SLIMBUS_4_RX, 1, 1}, >> [SLIMBUS_5_RX] = { AFE_PORT_ID_SLIMBUS_MULTI_CHAN_5_RX, >> SLIMBUS_5_RX, 1, 1}, >> + [QUATERNARY_MI2S_RX] = { AFE_PORT_ID_QUATERNARY_MI2S_RX, >> + QUATERNARY_MI2S_RX, 1, 1}, >> + [QUATERNARY_MI2S_TX] = { AFE_PORT_ID_QUATERNARY_MI2S_TX, >> + QUATERNARY_MI2S_TX, 0, 1}, >> + [SECONDARY_MI2S_RX] = { AFE_PORT_ID_SECONDARY_MI2S_RX, >> + SECONDARY_MI2S_RX, 1, 1}, >> + [SECONDARY_MI2S_TX] = { AFE_PORT_ID_SECONDARY_MI2S_TX, >> + SECONDARY_MI2S_TX, 0, 1}, >> + [TERTIARY_MI2S_RX] = { AFE_PORT_ID_TERTIARY_MI2S_RX, >> + TERTIARY_MI2S_RX, 1, 1}, >> + [TERTIARY_MI2S_TX] = { AFE_PORT_ID_TERTIARY_MI2S_TX, >> + TERTIARY_MI2S_TX, 0, 1}, >> + [PRIMARY_MI2S_RX] = { AFE_PORT_ID_PRIMARY_MI2S_RX, >> + PRIMARY_MI2S_RX, 1, 1}, >> + [PRIMARY_MI2S_TX] = { AFE_PORT_ID_PRIMARY_MI2S_TX, >> + PRIMARY_MI2S_RX, 0, 1}, > Can these be added after SLIMBUS_6_RX? > Also, for better arrangement, please add the port_maps from > PRIMARY_MI2S_RX to QUATERNARY_MI2S_TX in the same sequence of definition > of AFE ports. > Otherwise LGTM. Yep, I have reordered this now! > Once fixed the above comment add- > Acked-by: Banajit Goswami >