diff options
Diffstat (limited to 'sound/pci/via82xx_modem.c')
-rw-r--r-- | sound/pci/via82xx_modem.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/sound/pci/via82xx_modem.c b/sound/pci/via82xx_modem.c index bc7330ace96a..011f0fb63bf9 100644 --- a/sound/pci/via82xx_modem.c +++ b/sound/pci/via82xx_modem.c | |||
@@ -968,8 +968,7 @@ static int snd_via82xx_chip_init(via82xx_t *chip) | |||
968 | pci_read_config_byte(chip->pci, VIA_ACLINK_STAT, &pval); | 968 | pci_read_config_byte(chip->pci, VIA_ACLINK_STAT, &pval); |
969 | if (pval & VIA_ACLINK_C00_READY) /* primary codec ready */ | 969 | if (pval & VIA_ACLINK_C00_READY) /* primary codec ready */ |
970 | break; | 970 | break; |
971 | set_current_state(TASK_UNINTERRUPTIBLE); | 971 | schedule_timeout_uninterruptible(1); |
972 | schedule_timeout(1); | ||
973 | } while (time_before(jiffies, end_time)); | 972 | } while (time_before(jiffies, end_time)); |
974 | 973 | ||
975 | if ((val = snd_via82xx_codec_xread(chip)) & VIA_REG_AC97_BUSY) | 974 | if ((val = snd_via82xx_codec_xread(chip)) & VIA_REG_AC97_BUSY) |
@@ -987,8 +986,7 @@ static int snd_via82xx_chip_init(via82xx_t *chip) | |||
987 | chip->ac97_secondary = 1; | 986 | chip->ac97_secondary = 1; |
988 | goto __ac97_ok2; | 987 | goto __ac97_ok2; |
989 | } | 988 | } |
990 | set_current_state(TASK_INTERRUPTIBLE); | 989 | schedule_timeout_interruptible(1); |
991 | schedule_timeout(1); | ||
992 | } while (time_before(jiffies, end_time)); | 990 | } while (time_before(jiffies, end_time)); |
993 | /* This is ok, the most of motherboards have only one codec */ | 991 | /* This is ok, the most of motherboards have only one codec */ |
994 | 992 | ||