diff options
Diffstat (limited to 'sound/soc/codecs/ac97.c')
-rw-r--r-- | sound/soc/codecs/ac97.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sound/soc/codecs/ac97.c b/sound/soc/codecs/ac97.c index a99a1b304e1c..2023c749f232 100644 --- a/sound/soc/codecs/ac97.c +++ b/sound/soc/codecs/ac97.c | |||
@@ -30,7 +30,7 @@ static int ac97_prepare(struct snd_pcm_substream *substream, | |||
30 | 30 | ||
31 | int reg = (substream->stream == SNDRV_PCM_STREAM_PLAYBACK) ? | 31 | int reg = (substream->stream == SNDRV_PCM_STREAM_PLAYBACK) ? |
32 | AC97_PCM_FRONT_DAC_RATE : AC97_PCM_LR_ADC_RATE; | 32 | AC97_PCM_FRONT_DAC_RATE : AC97_PCM_LR_ADC_RATE; |
33 | return snd_ac97_set_rate(codec->ac97, reg, runtime->rate); | 33 | return snd_ac97_set_rate(codec->ac97, reg, substream->runtime->rate); |
34 | } | 34 | } |
35 | 35 | ||
36 | #define STD_AC97_RATES (SNDRV_PCM_RATE_8000 | SNDRV_PCM_RATE_11025 |\ | 36 | #define STD_AC97_RATES (SNDRV_PCM_RATE_8000 | SNDRV_PCM_RATE_11025 |\ |