mirror of
https://github.com/torvalds/linux.git
synced 2024-11-10 14:11:52 +00:00
ASoC: codecs: lpass-rx-macro: add missing handling of v2.1 codec
We have also v2.1 version of the codec (see 'enum lpass_codec_version'),
so handle it as well in all switch cases.
Fixes: dbacef0589
("ASoC: codec: lpass-rx-macro: prepare driver to accomdate new codec versions")
Signed-off-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
Reviewed-by: Srinivas Kandagatla <srinivas.kandagatla@linaro.org>
Link: https://patch.msgid.link/20240625160614.450506-1-krzysztof.kozlowski@linaro.org
Reviewed-by: Dmitry Baryshkov <dmitry.baryshkov@linaro.org>
Signed-off-by: Mark Brown <broonie@kernel.org>
This commit is contained in:
parent
6f9faf1410
commit
903e850936
@ -1601,6 +1601,7 @@ static bool rx_is_rw_register(struct device *dev, unsigned int reg)
|
||||
case LPASS_CODEC_VERSION_1_1:
|
||||
case LPASS_CODEC_VERSION_1_2:
|
||||
case LPASS_CODEC_VERSION_2_0:
|
||||
case LPASS_CODEC_VERSION_2_1:
|
||||
return rx_pre_2_5_is_rw_register(dev, reg);
|
||||
case LPASS_CODEC_VERSION_2_5:
|
||||
case LPASS_CODEC_VERSION_2_6:
|
||||
@ -3639,6 +3640,7 @@ static int rx_macro_component_probe(struct snd_soc_component *component)
|
||||
case LPASS_CODEC_VERSION_1_1:
|
||||
case LPASS_CODEC_VERSION_1_2:
|
||||
case LPASS_CODEC_VERSION_2_0:
|
||||
case LPASS_CODEC_VERSION_2_1:
|
||||
controls = rx_macro_def_snd_controls;
|
||||
num_controls = ARRAY_SIZE(rx_macro_def_snd_controls);
|
||||
widgets = rx_macro_def_dapm_widgets;
|
||||
@ -3812,6 +3814,7 @@ static int rx_macro_probe(struct platform_device *pdev)
|
||||
case LPASS_CODEC_VERSION_1_1:
|
||||
case LPASS_CODEC_VERSION_1_2:
|
||||
case LPASS_CODEC_VERSION_2_0:
|
||||
case LPASS_CODEC_VERSION_2_1:
|
||||
rx->rxn_reg_stride = 0x80;
|
||||
def_count = ARRAY_SIZE(rx_defaults) + ARRAY_SIZE(rx_pre_2_5_defaults);
|
||||
reg_defaults = kmalloc_array(def_count, sizeof(struct reg_default), GFP_KERNEL);
|
||||
|
Loading…
Reference in New Issue
Block a user