[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <YGvpcAcOGWiOFWim@vkoul-mobl.Dlink>
Date: Tue, 6 Apr 2021 10:24:08 +0530
From: Vinod Koul <vkoul@...nel.org>
To: Srinivas Kandagatla <srinivas.kandagatla@...aro.org>
Cc: yung-chuan.liao@...ux.intel.com,
pierre-louis.bossart@...ux.intel.com, sanyog.r.kale@...el.com,
alsa-devel@...a-project.org, linux-kernel@...r.kernel.org,
robh@...nel.org, devicetree@...r.kernel.org
Subject: Re: [PATCH] soundwire: qcom: cleanup internal port config indexing
On 01-04-21, 10:24, Srinivas Kandagatla wrote:
> Internally used portconfig array for storing port bandwidth
> params starts from offset zero. However port zero is not really
> used and we also copy the bus parameters to offset zero.
> So basically we endup with a code which has to subtract 1 from port
> number to get to port parameters.
>
> This is bit confusing to the reader so, make this bit more obvious by only
> copying the parameters to offset 1 instead of zero. This will avoid doing
> -1 every time when we try to get port params.
>
> Similar thing has been recently done with din/dout_port_mask.
Applied, thanks
--
~Vinod
Powered by blists - more mailing lists