diff options
| -rw-r--r-- | sound/soc/codecs/wm9705.c | 2 | 
1 files changed, 1 insertions, 1 deletions
diff --git a/sound/soc/codecs/wm9705.c b/sound/soc/codecs/wm9705.c index 7c095939c17..e8e782a0c78 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 | \  |