diff options
Diffstat (limited to 'sound/pci/ens1370.c')
-rw-r--r-- | sound/pci/ens1370.c | 12 |
1 files changed, 1 insertions, 11 deletions
diff --git a/sound/pci/ens1370.c b/sound/pci/ens1370.c index d4287338c042..78a81f3912a1 100644 --- a/sound/pci/ens1370.c +++ b/sound/pci/ens1370.c | |||
@@ -2018,21 +2018,11 @@ static int __devinit snd_ensoniq_create(snd_card_t * card, | |||
2018 | if (pci->vendor == es1371_ac97_reset_hack[idx].vid && | 2018 | if (pci->vendor == es1371_ac97_reset_hack[idx].vid && |
2019 | pci->device == es1371_ac97_reset_hack[idx].did && | 2019 | pci->device == es1371_ac97_reset_hack[idx].did && |
2020 | ensoniq->rev == es1371_ac97_reset_hack[idx].rev) { | 2020 | ensoniq->rev == es1371_ac97_reset_hack[idx].rev) { |
2021 | unsigned long tmo; | ||
2022 | signed long tmo2; | ||
2023 | |||
2024 | ensoniq->cssr |= ES_1371_ST_AC97_RST; | 2021 | ensoniq->cssr |= ES_1371_ST_AC97_RST; |
2025 | outl(ensoniq->cssr, ES_REG(ensoniq, STATUS)); | 2022 | outl(ensoniq->cssr, ES_REG(ensoniq, STATUS)); |
2026 | /* need to delay around 20ms(bleech) to give | 2023 | /* need to delay around 20ms(bleech) to give |
2027 | some CODECs enough time to wakeup */ | 2024 | some CODECs enough time to wakeup */ |
2028 | tmo = jiffies + (HZ / 50) + 1; | 2025 | msleep(20); |
2029 | while (1) { | ||
2030 | tmo2 = tmo - jiffies; | ||
2031 | if (tmo2 <= 0) | ||
2032 | break; | ||
2033 | set_current_state(TASK_UNINTERRUPTIBLE); | ||
2034 | schedule_timeout(tmo2); | ||
2035 | } | ||
2036 | break; | 2026 | break; |
2037 | } | 2027 | } |
2038 | /* AC'97 warm reset to start the bitclk */ | 2028 | /* AC'97 warm reset to start the bitclk */ |