aboutsummaryrefslogtreecommitdiffstats
path: root/sound/soc/codecs/wm9712.c
diff options
context:
space:
mode:
authorFabio Estevam <festevam@gmail.com>2012-04-10 17:33:07 -0400
committerMark Brown <broonie@opensource.wolfsonmicro.com>2012-04-10 17:35:18 -0400
commitb46ac308bf4f675cac9caf63c2de22f2a18f9347 (patch)
treecd9c46a64b940d346a9689af874b87e10be9f9ff /sound/soc/codecs/wm9712.c
parent8127bf5529f6a42d20e9e3613643d149e4dbb697 (diff)
ASoC: wm9712: Fix build due to missing definition of "runtime"
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>
Diffstat (limited to 'sound/soc/codecs/wm9712.c')
-rw-r--r--sound/soc/codecs/wm9712.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/sound/soc/codecs/wm9712.c b/sound/soc/codecs/wm9712.c
index 260386365d58..a1541414d904 100644
--- a/sound/soc/codecs/wm9712.c
+++ b/sound/soc/codecs/wm9712.c
@@ -470,6 +470,7 @@ static int ac97_prepare(struct snd_pcm_substream *substream,
470 struct snd_soc_codec *codec = dai->codec; 470 struct snd_soc_codec *codec = dai->codec;
471 int reg; 471 int reg;
472 u16 vra; 472 u16 vra;
473 struct snd_pcm_runtime *runtime = substream->runtime;
473 474
474 vra = ac97_read(codec, AC97_EXTENDED_STATUS); 475 vra = ac97_read(codec, AC97_EXTENDED_STATUS);
475 ac97_write(codec, AC97_EXTENDED_STATUS, vra | 0x1); 476 ac97_write(codec, AC97_EXTENDED_STATUS, vra | 0x1);
@@ -487,6 +488,7 @@ static int ac97_aux_prepare(struct snd_pcm_substream *substream,
487{ 488{
488 struct snd_soc_codec *codec = dai->codec; 489 struct snd_soc_codec *codec = dai->codec;
489 u16 vra, xsle; 490 u16 vra, xsle;
491 struct snd_pcm_runtime *runtime = substream->runtime;
490 492
491 vra = ac97_read(codec, AC97_EXTENDED_STATUS); 493 vra = ac97_read(codec, AC97_EXTENDED_STATUS);
492 ac97_write(codec, AC97_EXTENDED_STATUS, vra | 0x1); 494 ac97_write(codec, AC97_EXTENDED_STATUS, vra | 0x1);