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 <[email protected]>
---
 sound/soc/fsl/fsl_easrc.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/sound/soc/fsl/fsl_easrc.c b/sound/soc/fsl/fsl_easrc.c
index f48e43a0edcf..3086cb758beb 100644
--- a/sound/soc/fsl/fsl_easrc.c
+++ b/sound/soc/fsl/fsl_easrc.c
@@ -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;
 }
-- 
2.34.1


Reply via email to