ASoC: wm_adsp: Fix support for firmware switching on DSP2 and higher
authorMark Brown <broonie@opensource.wolfsonmicro.com>
Wed, 30 Jan 2013 12:11:01 +0000 (20:11 +0800)
committerMark Brown <broonie@opensource.wolfsonmicro.com>
Wed, 30 Jan 2013 12:11:01 +0000 (20:11 +0800)
Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
sound/soc/codecs/wm_adsp.c

index f3a9b55..5487a94 100644 (file)
@@ -196,7 +196,7 @@ static int wm_adsp_fw_put(struct snd_kcontrol *kcontrol,
        if (adsp[e->shift_l].running)
                return -EBUSY;
 
-       adsp->fw = ucontrol->value.integer.value[0];
+       adsp[e->shift_l].fw = ucontrol->value.integer.value[0];
 
        return 0;
 }