[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <8059e28b-39c5-d71b-3e22-357d4d121f7e@linaro.org>
Date: Tue, 29 Sep 2020 10:02:04 +0100
From: Srinivas Kandagatla <srinivas.kandagatla@...aro.org>
To: Srinivasa Rao Mandadapu <srivasam@...eaurora.org>,
agross@...nel.org, bjorn.andersson@...aro.org, lgirdwood@...il.com,
broonie@...nel.org, robh+dt@...nel.org, plai@...eaurora.org,
bgoswami@...eaurora.org, perex@...ex.cz, tiwai@...e.com,
rohitkr@...eaurora.org, linux-arm-msm@...r.kernel.org,
alsa-devel@...a-project.org, devicetree@...r.kernel.org,
linux-kernel@...r.kernel.org
Cc: V Sujith Kumar Reddy <vsujithk@...eaurora.org>
Subject: Re: [PATCH v7 4/6] Asoc: qcom: lpass:Update lpaif_dmactl members
order
On 28/09/2020 10:53, Srinivasa Rao Mandadapu wrote:
> From: V Sujith Kumar Reddy <vsujithk@...eaurora.org>
>
> Update the lpaif_dmactl struct members order to match
> HDMI reg map members sequence. Separate Interface reg map
> as it is used for I2S control but not for HDMI control,
> to make use of bulk API, which makes code more readable.
>
> Signed-off-by: V Sujith Kumar Reddy <vsujithk@...eaurora.org>
> Signed-off-by: Srinivasa Rao Mandadapu <srivasam@...eaurora.org>
Reviewed-by: Srinivas Kandagatla <srinivas.kandagatla@...aro.org>
> ---
> sound/soc/qcom/lpass-platform.c | 8 ++++----
> sound/soc/qcom/lpass.h | 6 +++---
> 2 files changed, 7 insertions(+), 7 deletions(-)
>
> diff --git a/sound/soc/qcom/lpass-platform.c b/sound/soc/qcom/lpass-platform.c
> index e7cf4e5..db0d959 100644
> --- a/sound/soc/qcom/lpass-platform.c
> +++ b/sound/soc/qcom/lpass-platform.c
> @@ -71,13 +71,13 @@ static int lpass_platform_alloc_dmactl_fields(struct device *dev,
> rd_dmactl = drvdata->rd_dmactl;
> wr_dmactl = drvdata->wr_dmactl;
>
> - rval = devm_regmap_field_bulk_alloc(dev, map, &rd_dmactl->bursten,
> - &v->rdma_bursten, 6);
> + rval = devm_regmap_field_bulk_alloc(dev, map, &rd_dmactl->intf,
> + &v->rdma_intf, 6);
> if (rval)
> return rval;
>
> - return devm_regmap_field_bulk_alloc(dev, map, &wr_dmactl->bursten,
> - &v->wrdma_bursten, 6);
> + return devm_regmap_field_bulk_alloc(dev, map, &wr_dmactl->intf,
> + &v->wrdma_intf, 6);
> }
>
> static int lpass_platform_pcmops_open(struct snd_soc_component *component,
> diff --git a/sound/soc/qcom/lpass.h b/sound/soc/qcom/lpass.h
> index 51c9991..7089d4c 100644
> --- a/sound/soc/qcom/lpass.h
> +++ b/sound/soc/qcom/lpass.h
> @@ -31,9 +31,9 @@ struct lpaif_i2sctl {
>
>
> struct lpaif_dmactl {
> + struct regmap_field *intf;
> struct regmap_field *bursten;
> struct regmap_field *wpscnt;
> - struct regmap_field *intf;
> struct regmap_field *fifowm;
> struct regmap_field *enable;
> struct regmap_field *dyncclk;
> @@ -110,17 +110,17 @@ struct lpass_variant {
> struct reg_field bitwidth;
>
> /* RD_DMA Register fields */
> + struct reg_field rdma_intf;
> struct reg_field rdma_bursten;
> struct reg_field rdma_wpscnt;
> - struct reg_field rdma_intf;
> struct reg_field rdma_fifowm;
> struct reg_field rdma_enable;
> struct reg_field rdma_dyncclk;
>
> /* WR_DMA Register fields */
> + struct reg_field wrdma_intf;
> struct reg_field wrdma_bursten;
> struct reg_field wrdma_wpscnt;
> - struct reg_field wrdma_intf;
> struct reg_field wrdma_fifowm;
> struct reg_field wrdma_enable;
> struct reg_field wrdma_dyncclk;
>
Powered by blists - more mailing lists