makes sense- memcpy(®_defaults[0], rx_defaults, sizeof(rx_defaults));I don't like that the next 2.9 version will end up in a default bucket.
- 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:
It might be better to have an explicit list of versions instead and then
return -EINVAL in the default case.