diff options
-rw-r--r-- | sound/pci/ens1370.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/sound/pci/ens1370.c b/sound/pci/ens1370.c index d4cd6451fdca..39f79a6b5283 100644 --- a/sound/pci/ens1370.c +++ b/sound/pci/ens1370.c | |||
@@ -732,7 +732,7 @@ static void snd_es1371_codec_wait(struct snd_ac97 *ac97) | |||
732 | 732 | ||
733 | static void snd_es1371_adc_rate(struct ensoniq * ensoniq, unsigned int rate) | 733 | static void snd_es1371_adc_rate(struct ensoniq * ensoniq, unsigned int rate) |
734 | { | 734 | { |
735 | unsigned int n, truncm, freq, result; | 735 | unsigned int n, truncm, freq; |
736 | 736 | ||
737 | mutex_lock(&ensoniq->src_mutex); | 737 | mutex_lock(&ensoniq->src_mutex); |
738 | n = rate / 3000; | 738 | n = rate / 3000; |
@@ -740,7 +740,6 @@ static void snd_es1371_adc_rate(struct ensoniq * ensoniq, unsigned int rate) | |||
740 | n--; | 740 | n--; |
741 | truncm = (21 * n - 1) | 1; | 741 | truncm = (21 * n - 1) | 1; |
742 | freq = ((48000UL << 15) / rate) * n; | 742 | freq = ((48000UL << 15) / rate) * n; |
743 | result = (48000UL << 15) / (freq / n); | ||
744 | if (rate >= 24000) { | 743 | if (rate >= 24000) { |
745 | if (truncm > 239) | 744 | if (truncm > 239) |
746 | truncm = 239; | 745 | truncm = 239; |