Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp5242552pxj; Wed, 9 Jun 2021 12:35:54 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwJdDxX9TA0ekSbKwGe4Ng7drH/PaBOiPnOamhZiwkRZ7xR7NArn5+lpeOyQHfYMwyuJmsk X-Received: by 2002:aa7:d294:: with SMTP id w20mr982511edq.229.1623267353957; Wed, 09 Jun 2021 12:35:53 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1623267353; cv=none; d=google.com; s=arc-20160816; b=tR972BaS4eNPo7pXWWrHeBCQU3pWfrxMS5tWNY3p+rJt1HcDQYY39xmPifPUnAsnpp +J5+IvvOgLrKOS1tycuOhRsSd+gyYAy1itrm41li7cp0Z6y2FtBKEbhoH+eF3yRtpeC7 rtjU/3WBK8NetKYwFqxwtwvKv9b3LFqdm11nYRRV/F3MxwiFNa+QZ9xJdq1giOuzrQvd x/VQnpfy1lm0CAx986KCEOQjVYOApcCRF8n5UeQNRxkE22mar3qtEdFKKvkG+5M7DRiF Lg4gcq8bM4k+HllaRBMRYuP/VCeNkkDrKhTyMj/AYueSQVizIuh8QrfuZ+HZ3i3nAeYK 4xZA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:to:subject:message-id:date:user-agent:from :references:in-reply-to:mime-version:dkim-signature; bh=/5hRR3JhxA61/7kGbJ52XF4Id3fG9uBeIzCvCACHPQw=; b=gyPx+PzT/vMUAANMAEPcba4nNXSCRgJxz4zlndrRpSNtavb6ECZjTQpc94P1zyBLYZ EgsrvdtuRhHIxEhV/79p8uC6HfOvEaaXjeG6YPskyMJaiVInJ786qimZvWmjDqzcrm4k QflncF1kBRkcJ2grbaXcm07fmUvjtOLw96peZK2hjyBk7kN6Mr1oJv0qAAFmNKWn9k/3 fbJJoe6BDydjhcOF5ALWkV3IZSShnHZv0bp8ANJGO0AsajiNNScZPSJiEb7yxiEiWKYD aSVPh0g1RCsLCtIq6qrREq/StsuchqnvrUUP/UeM5yqqu65BvN2s+n5Uc1hbLcpi/LoY o1ZA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=MMFEzs5U; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=chromium.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id ck28si442118edb.315.2021.06.09.12.35.21; Wed, 09 Jun 2021 12:35:53 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=MMFEzs5U; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=chromium.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229770AbhFITdr (ORCPT + 99 others); Wed, 9 Jun 2021 15:33:47 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:49520 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229536AbhFITdq (ORCPT ); Wed, 9 Jun 2021 15:33:46 -0400 Received: from mail-ot1-x32c.google.com (mail-ot1-x32c.google.com [IPv6:2607:f8b0:4864:20::32c]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 56EC3C061574 for ; Wed, 9 Jun 2021 12:31:35 -0700 (PDT) Received: by mail-ot1-x32c.google.com with SMTP id l15-20020a05683016cfb02903fca0eacd15so1175775otr.7 for ; Wed, 09 Jun 2021 12:31:35 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; h=mime-version:in-reply-to:references:from:user-agent:date:message-id :subject:to; bh=/5hRR3JhxA61/7kGbJ52XF4Id3fG9uBeIzCvCACHPQw=; b=MMFEzs5U6IDNKqGfwXrix6STIsbRevLZaidgF9ycrqSfLwnZd2nH5WPjEDTby0ZOMT 8mSMBVUXuPyJIo4vUqhf5ZC9cfz4dg6jelk7kAgdMPS1kHmslrmOtoqpiLM/7/f0b9tk 3nPQf+T5651vsSqqm8Tz1nlX7vFJ6ukPeraZY= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:in-reply-to:references:from :user-agent:date:message-id:subject:to; bh=/5hRR3JhxA61/7kGbJ52XF4Id3fG9uBeIzCvCACHPQw=; b=R08Pbu0w/Ddo7q7C6ReHUf0aW5QECfWJjz4wWa+fg+ntoniuMMHTbgJjZ2PHlAcOsM 6E4R6PHJT3jRym24fpcpj9idOG7tfuGOqfWjPMQrG9ur9qx76j1YBpcH+3reDhe5iTZv YqlQOl4kncACASWJW58m9rvNcuMR4lSsN8vBJdxZoLAfw2qAAvradPHXdtUT3C8+bGRO MV4lyGvisz6dWXr2jn+shYlEbmXq8mkzW1OsavZI/or8lDPgCXHYyxCZozUgVBOHjGat Jips8V3l/562FjshE5wpl0wBLxg+XloMi+GfqgoEo6ZFZkfJ/b3XI+JkiID2AiBk5BXR Dlzg== X-Gm-Message-State: AOAM530sPVHrmPHNzEX/n3yfzgGE7FEGkw6TsgHmMfDf52lTZ0aPULXT kjvvWt3uMghZy3m0VBT/7CYX1wetMQUxs/NcgUeaOw== X-Received: by 2002:a05:6830:190:: with SMTP id q16mr865886ota.34.1623267094752; Wed, 09 Jun 2021 12:31:34 -0700 (PDT) Received: from 753933720722 named unknown by gmailapi.google.com with HTTPREST; Wed, 9 Jun 2021 12:31:33 -0700 MIME-Version: 1.0 In-Reply-To: <20210609133039.4648-1-srivasam@codeaurora.org> References: <20210609133039.4648-1-srivasam@codeaurora.org> From: Stephen Boyd User-Agent: alot/0.9.1 Date: Wed, 9 Jun 2021 12:31:33 -0700 Message-ID: Subject: Re: [PATCH v3] ASoC: qcom: Add four speaker support on MI2S secondary To: Srinivasa Rao Mandadapu , agross@kernel.org, alsa-devel@alsa-project.org, bgoswami@codeaurora.org, bjorn.andersson@linaro.org, broonie@kernel.org, devicetree@vger.kernel.org, judyhsiao@chromium.org, lgirdwood@gmail.com, linux-arm-msm@vger.kernel.org, linux-kernel@vger.kernel.org, perex@perex.cz, plai@codeaurora.org, robh+dt@kernel.org, rohitkr@codeaurora.org, srinivas.kandagatla@linaro.org, tiwai@suse.com Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Quoting Srinivasa Rao Mandadapu (2021-06-09 06:30:39) > diff --git a/sound/soc/qcom/lpass-cpu.c b/sound/soc/qcom/lpass-cpu.c > index c62d2612e8f5..aff39c9f6326 100644 > --- a/sound/soc/qcom/lpass-cpu.c > +++ b/sound/soc/qcom/lpass-cpu.c > @@ -29,6 +29,15 @@ > #define LPASS_CPU_I2S_SD0_1_2_MASK GENMASK(2, 0) > #define LPASS_CPU_I2S_SD0_1_2_3_MASK GENMASK(3, 0) > > +/* > + * Channel maps for Quad channel playbacks on MI2S Secondary > + */ > +static struct snd_pcm_chmap_elem lpass_quad_chmaps[] = { Can this be const? > + { .channels = 4, > + .map = { SNDRV_CHMAP_FL, SNDRV_CHMAP_RL, > + SNDRV_CHMAP_FR, SNDRV_CHMAP_RR } }, > + { } > +}; > static int lpass_cpu_init_i2sctl_bitfields(struct device *dev, > struct lpaif_i2sctl *i2sctl, struct regmap *map) > {