aboutsummaryrefslogtreecommitdiffstats
path: root/sound/isa/cs423x/cs4231_lib.c
diff options
context:
space:
mode:
authorRene Herman <rene.herman@gmail.com>2007-09-10 17:22:55 -0400
committerJaroslav Kysela <perex@perex.cz>2007-10-16 10:49:26 -0400
commitd44df2d0f22a688f4f3af3e0d6cbcf9a4516e1b5 (patch)
tree07e1c78a89cf1e2741529a573f4acc59bb495217 /sound/isa/cs423x/cs4231_lib.c
parentbc962efa6cd864d8bd29d2634da4ef14873d020c (diff)
[ALSA] ad1848/cs4231: replace commented out debug code with snd-printd{,d}
While I'm at it another 'while I'm there' -- replace commented out debug code with snd-printd{,d}. Signed-off-by: Rene Herman <rene.herman@gmail.com> Signed-off-by: Takashi Iwai <tiwai@suse.de> Signed-off-by: Jaroslav Kysela <perex@suse.cz>
Diffstat (limited to 'sound/isa/cs423x/cs4231_lib.c')
-rw-r--r--sound/isa/cs423x/cs4231_lib.c23
1 files changed, 10 insertions, 13 deletions
diff --git a/sound/isa/cs423x/cs4231_lib.c b/sound/isa/cs423x/cs4231_lib.c
index 0e604bf6bbee..c0ffb20da996 100644
--- a/sound/isa/cs423x/cs4231_lib.c
+++ b/sound/isa/cs423x/cs4231_lib.c
@@ -316,9 +316,7 @@ void snd_cs4231_mce_down(struct snd_cs4231 *chip)
316 int timeout; 316 int timeout;
317 317
318 snd_cs4231_busy_wait(chip); 318 snd_cs4231_busy_wait(chip);
319#if 0 319
320 printk("(1) timeout = %i\n", timeout);
321#endif
322#ifdef CONFIG_SND_DEBUG 320#ifdef CONFIG_SND_DEBUG
323 if (cs4231_inb(chip, CS4231P(REGSEL)) & CS4231_INIT) 321 if (cs4231_inb(chip, CS4231P(REGSEL)) & CS4231_INIT)
324 snd_printk("mce_down [0x%lx] - auto calibration time out (0)\n", (long)CS4231P(REGSEL)); 322 snd_printk("mce_down [0x%lx] - auto calibration time out (0)\n", (long)CS4231P(REGSEL));
@@ -342,9 +340,9 @@ void snd_cs4231_mce_down(struct snd_cs4231 *chip)
342 * which at the slowest possible rate of 5.5125 kHz means 907 us. 340 * which at the slowest possible rate of 5.5125 kHz means 907 us.
343 */ 341 */
344 msleep(1); 342 msleep(1);
345#if 0 343
346 printk("(2) jiffies = %li\n", jiffies); 344 snd_printdd("(1) jiffies = %lu\n", jiffies);
347#endif 345
348 /* in 10 ms increments, check condition, up to 250 ms */ 346 /* in 10 ms increments, check condition, up to 250 ms */
349 timeout = 25; 347 timeout = 25;
350 while (snd_cs4231_in(chip, CS4231_TEST_INIT) & CS4231_CALIB_IN_PROGRESS) { 348 while (snd_cs4231_in(chip, CS4231_TEST_INIT) & CS4231_CALIB_IN_PROGRESS) {
@@ -354,9 +352,9 @@ void snd_cs4231_mce_down(struct snd_cs4231 *chip)
354 } 352 }
355 msleep(10); 353 msleep(10);
356 } 354 }
357#if 0 355
358 printk("(3) jiffies = %li\n", jiffies); 356 snd_printdd("(2) jiffies = %lu\n", jiffies);
359#endif 357
360 /* in 10 ms increments, check condition, up to 100 ms */ 358 /* in 10 ms increments, check condition, up to 100 ms */
361 timeout = 10; 359 timeout = 10;
362 while (cs4231_inb(chip, CS4231P(REGSEL)) & CS4231_INIT) { 360 while (cs4231_inb(chip, CS4231P(REGSEL)) & CS4231_INIT) {
@@ -366,10 +364,9 @@ void snd_cs4231_mce_down(struct snd_cs4231 *chip)
366 } 364 }
367 msleep(10); 365 msleep(10);
368 } 366 }
369#if 0 367
370 printk("(4) jiffies = %li\n", jiffies); 368 snd_printdd("(3) jiffies = %lu\n", jiffies);
371 snd_printk("mce_down - exit = 0x%x\n", cs4231_inb(chip, CS4231P(REGSEL))); 369 snd_printd("mce_down - exit = 0x%x\n", cs4231_inb(chip, CS4231P(REGSEL)));
372#endif
373} 370}
374 371
375static unsigned int snd_cs4231_get_count(unsigned char format, unsigned int size) 372static unsigned int snd_cs4231_get_count(unsigned char format, unsigned int size)