aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--sound/isa/ad1848/ad1848_lib.c15
-rw-r--r--sound/isa/cs423x/cs4231_lib.c16
2 files changed, 14 insertions, 17 deletions
diff --git a/sound/isa/ad1848/ad1848_lib.c b/sound/isa/ad1848/ad1848_lib.c
index f01e564b1238..d454d11989f0 100644
--- a/sound/isa/ad1848/ad1848_lib.c
+++ b/sound/isa/ad1848/ad1848_lib.c
@@ -229,16 +229,15 @@ static void snd_ad1848_mce_down(struct snd_ad1848 *chip)
229 spin_unlock_irqrestore(&chip->reg_lock, flags); 229 spin_unlock_irqrestore(&chip->reg_lock, flags);
230 return; 230 return;
231 } 231 }
232 /* calibration process */
233 232
234 for (timeout = 500; timeout > 0 && (snd_ad1848_in(chip, AD1848_TEST_INIT) & AD1848_CALIB_IN_PROGRESS) == 0; timeout--); 233 /*
235 if ((snd_ad1848_in(chip, AD1848_TEST_INIT) & AD1848_CALIB_IN_PROGRESS) == 0) { 234 * Wait for (possible -- during init auto-calibration may not be set)
236 snd_printd("mce_down - auto calibration time out (1)\n"); 235 * calibration process to start. Needs upto 5 sample periods on AD1848
237 spin_unlock_irqrestore(&chip->reg_lock, flags); 236 * which at the slowest possible rate of 5.5125 kHz means 907 us.
238 return; 237 */
239 } 238 msleep(1);
240#if 0 239#if 0
241 printk("(2) timeout = %i, jiffies = %li\n", timeout, jiffies); 240 printk("(2) jiffies = %li\n", jiffies);
242#endif 241#endif
243 time = HZ / 4; 242 time = HZ / 4;
244 while (snd_ad1848_in(chip, AD1848_TEST_INIT) & AD1848_CALIB_IN_PROGRESS) { 243 while (snd_ad1848_in(chip, AD1848_TEST_INIT) & AD1848_CALIB_IN_PROGRESS) {
diff --git a/sound/isa/cs423x/cs4231_lib.c b/sound/isa/cs423x/cs4231_lib.c
index db9bba130b28..0e604bf6bbee 100644
--- a/sound/isa/cs423x/cs4231_lib.c
+++ b/sound/isa/cs423x/cs4231_lib.c
@@ -336,16 +336,14 @@ void snd_cs4231_mce_down(struct snd_cs4231 *chip)
336 } 336 }
337 snd_cs4231_busy_wait(chip); 337 snd_cs4231_busy_wait(chip);
338 338
339 /* calibration process */ 339 /*
340 340 * Wait for (possible -- during init auto-calibration may not be set)
341 for (timeout = 500; timeout > 0 && (snd_cs4231_in(chip, CS4231_TEST_INIT) & CS4231_CALIB_IN_PROGRESS) == 0; timeout--) 341 * calibration process to start. Needs upto 5 sample periods on AD1848
342 udelay(10); 342 * which at the slowest possible rate of 5.5125 kHz means 907 us.
343 if ((snd_cs4231_in(chip, CS4231_TEST_INIT) & CS4231_CALIB_IN_PROGRESS) == 0) { 343 */
344 snd_printd("cs4231_mce_down - auto calibration time out (1)\n"); 344 msleep(1);
345 return;
346 }
347#if 0 345#if 0
348 printk("(2) timeout = %i, jiffies = %li\n", timeout, jiffies); 346 printk("(2) jiffies = %li\n", jiffies);
349#endif 347#endif
350 /* in 10 ms increments, check condition, up to 250 ms */ 348 /* in 10 ms increments, check condition, up to 250 ms */
351 timeout = 25; 349 timeout = 25;