summaryrefslogtreecommitdiffstats
path: root/sound/soc/codecs/wm9705.c
diff options
context:
space:
mode:
authorFabio Estevam2012-04-11 00:38:24 +0200
committerMark Brown2012-04-11 12:43:19 +0200
commit019ec5059b771cc36fb302a61f0eb08a88beb88b (patch)
tree0cfdba0f1887efa1b71d0dfca25e4d2f4344e6f7 /sound/soc/codecs/wm9705.c
parentASoC: ac97: Fix build due to removal of 'runtime' definition (diff)
downloadkernel-qcow2-linux-019ec5059b771cc36fb302a61f0eb08a88beb88b.tar.gz
kernel-qcow2-linux-019ec5059b771cc36fb302a61f0eb08a88beb88b.tar.xz
kernel-qcow2-linux-019ec5059b771cc36fb302a61f0eb08a88beb88b.zip
ASoC: wm9705: Fix build due to removal of 'runtime' definition
sound/soc/codecs/wm9705.c: In function 'ac97_prepare': sound/soc/codecs/wm9705.c:251: error: 'runtime' undeclared (first use in this function) This was caused by commit e6968a (ASoC: codecs: Remove rtd->codec usage from CODEC drivers), which removed the 'struct snd_pcm_runtime *runtime = substream->runtime' definition. Signed-off-by: Fabio Estevam <fabio.estevam@freescale.com> Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
Diffstat (limited to 'sound/soc/codecs/wm9705.c')
-rw-r--r--sound/soc/codecs/wm9705.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sound/soc/codecs/wm9705.c b/sound/soc/codecs/wm9705.c
index 7c095939c179..e8e782a0c78d 100644
--- a/sound/soc/codecs/wm9705.c
+++ b/sound/soc/codecs/wm9705.c
@@ -248,7 +248,7 @@ static int ac97_prepare(struct snd_pcm_substream *substream,
else
reg = AC97_PCM_LR_ADC_RATE;
- return ac97_write(codec, reg, runtime->rate);
+ return ac97_write(codec, reg, substream->runtime->rate);
}
#define WM9705_AC97_RATES (SNDRV_PCM_RATE_8000 | SNDRV_PCM_RATE_11025 | \