Skip to content

Commit

Permalink
ASoC: wm9712: Fix build due to missing definition of "runtime"
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Fabio Estevam authored and Mark Brown committed Apr 10, 2012
1 parent 8127bf5 commit b46ac30
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions sound/soc/codecs/wm9712.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand All @@ -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);
Expand Down

0 comments on commit b46ac30

Please sign in to comment.