[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <eb551b0e-4d19-4a8b-b9e6-70199029e8c2@linaro.org>
Date: Wed, 12 Jun 2024 19:19:49 +0100
From: Srinivas Kandagatla <srinivas.kandagatla@...aro.org>
To: Dmitry Baryshkov <dmitry.baryshkov@...aro.org>
Cc: Liam Girdwood <lgirdwood@...il.com>, Mark Brown <broonie@...nel.org>,
Jaroslav Kysela <perex@...ex.cz>, Takashi Iwai <tiwai@...e.com>,
Banajit Goswami <bgoswami@...cinc.com>, neil.armstrong@...aro.org,
linux-arm-msm@...r.kernel.org, krzysztof.kozlowski@...aro.org,
linux-sound@...r.kernel.org, linux-kernel@...r.kernel.org,
alsa-devel@...a-project.org
Subject: Re: [PATCH v3 3/3] ASoC: codec: lpass-rx-macro: add support for 2.5
codec version
On 12/06/2024 19:18, Dmitry Baryshkov wrote:
>> - memcpy(®_defaults[0], rx_defaults, sizeof(rx_defaults));
>> - memcpy(®_defaults[ARRAY_SIZE(rx_defaults)],
>> - rx_pre_2_5_defaults, sizeof(rx_pre_2_5_defaults));
>> + switch (rx->codec_version) {
>> + case LPASS_CODEC_VERSION_2_5 ... LPASS_CODEC_VERSION_2_8:
> I don't like that the next 2.9 version will end up in a default bucket.
> It might be better to have an explicit list of versions instead and then
> return -EINVAL in the default case.
makes sense
--srini
Powered by blists - more mailing lists