]> git.ipfire.org Git - thirdparty/linux.git/commitdiff
ASoC: fsl_easrc: Fix value type in fsl_easrc_iec958_get_bits()
authorShengjiu Wang <shengjiu.wang@nxp.com>
Wed, 1 Apr 2026 09:42:25 +0000 (17:42 +0800)
committerMark Brown <broonie@kernel.org>
Wed, 1 Apr 2026 17:24:29 +0000 (18:24 +0100)
The value type of controls "Context 0 IEC958 Bits Per Sample" should be
integer, not enumerated, the issue is found by the mixer-test.

Fixes: 955ac624058f ("ASoC: fsl_easrc: Add EASRC ASoC CPU DAI drivers")
Signed-off-by: Shengjiu Wang <shengjiu.wang@nxp.com>
Link: https://patch.msgid.link/20260401094226.2900532-11-shengjiu.wang@nxp.com
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/fsl/fsl_easrc.c

index 6de1e1d3d8dc8de4854df3639ad8efe167615ee9..fbd1ba12aad0d5d9e962f86404428c5f15908f2d 100644 (file)
@@ -73,7 +73,7 @@ static int fsl_easrc_iec958_get_bits(struct snd_kcontrol *kcontrol,
        struct soc_mreg_control *mc =
                (struct soc_mreg_control *)kcontrol->private_value;
 
-       ucontrol->value.enumerated.item[0] = easrc_priv->bps_iec958[mc->regbase];
+       ucontrol->value.integer.value[0] = easrc_priv->bps_iec958[mc->regbase];
 
        return 0;
 }