Re: [PATCH] soundwire: qcom: cleanup internal port config indexing

2021-04-05 Thread Vinod Koul
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

[PATCH] soundwire: qcom: cleanup internal port config indexing

2021-04-01 Thread Srinivas Kandagatla
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 con