mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-08-26 19:00:25 +00:00
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>
This commit is contained in:
parent
7a0a289c5f
commit
019ec5059b
1 changed files with 1 additions and 1 deletions
|
@ -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 | \
|
||||
|
|
Loading…
Reference in a new issue