diff options
author | Ralf Baechle <ralf@linux-mips.org> | 2001-06-10 16:57:40 +0000 |
---|---|---|
committer | Ralf Baechle <ralf@linux-mips.org> | 2001-06-10 16:57:40 +0000 |
commit | af8dbee9b9ff6357b93e280ab73ed8ab62235561 (patch) | |
tree | 525e62ce5e6900258cef534602a147170009e499 /drivers/sound/i810_audio.c | |
parent | bab55aba4508695975375a8bedca01bc854d2d25 (diff) |
Add support for DDB5477.
Diffstat (limited to 'drivers/sound/i810_audio.c')
-rw-r--r-- | drivers/sound/i810_audio.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/drivers/sound/i810_audio.c b/drivers/sound/i810_audio.c index eaed7d132..69c8c854d 100644 --- a/drivers/sound/i810_audio.c +++ b/drivers/sound/i810_audio.c @@ -457,14 +457,14 @@ static unsigned int i810_set_adc_rate(struct i810_state * state, unsigned int ra rate = ( rate * clocking)/48000; - if(rate != i810_ac97_get(codec, AC97_PCM_LR_DAC_RATE)) + if(rate != i810_ac97_get(codec, AC97_PCM_LR_ADC_RATE)) { /* Power down the ADC */ dacp=i810_ac97_get(codec, AC97_POWER_CONTROL); i810_ac97_set(codec, AC97_POWER_CONTROL, dacp|0x0100); /* Load the rate and read the effective rate */ - i810_ac97_set(codec, AC97_PCM_LR_DAC_RATE, rate); - new_rate=i810_ac97_get(codec, AC97_PCM_LR_DAC_RATE); + i810_ac97_set(codec, AC97_PCM_LR_ADC_RATE, rate); + new_rate=i810_ac97_get(codec, AC97_PCM_LR_ADC_RATE); /* Power it back up */ i810_ac97_set(codec, AC97_POWER_CONTROL, dacp); if(new_rate != rate) { |