ASoC: wm9712: Fix build due to missing definition of "runtime"
authorFabio Estevam <festevam@gmail.com>
Tue, 10 Apr 2012 21:33:07 +0000 (18:33 -0300)
committerMark Brown <broonie@opensource.wolfsonmicro.com>
Tue, 10 Apr 2012 21:35:18 +0000 (22:35 +0100)
Fix the following build error:

sound/soc/codecs/wm9712.c:482:32: error: 'runtime' undeclared (first use in this function)
sound/soc/codecs/wm9712.c:499:33: error: 'runtime' undeclared (first use in this function)

Signed-off-by: Fabio Estevam <fabio.estevam@freescale.com>
Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
sound/soc/codecs/wm9712.c

index 260386365d5820213b974f9ca6d59772928f7801..a1541414d904d0ac96dd5d9715d6205b941ad614 100644 (file)
@@ -470,6 +470,7 @@ static int ac97_prepare(struct snd_pcm_substream *substream,
        struct snd_soc_codec *codec = dai->codec;
        int reg;
        u16 vra;
+       struct snd_pcm_runtime *runtime = substream->runtime;
 
        vra = ac97_read(codec, AC97_EXTENDED_STATUS);
        ac97_write(codec, AC97_EXTENDED_STATUS, vra | 0x1);
@@ -487,6 +488,7 @@ static int ac97_aux_prepare(struct snd_pcm_substream *substream,
 {
        struct snd_soc_codec *codec = dai->codec;
        u16 vra, xsle;
+       struct snd_pcm_runtime *runtime = substream->runtime;
 
        vra = ac97_read(codec, AC97_EXTENDED_STATUS);
        ac97_write(codec, AC97_EXTENDED_STATUS, vra | 0x1);