Commit 79ba34b9 authored by Takashi Iwai's avatar Takashi Iwai Committed by Jaroslav Kysela

[ALSA] intel8x0 - Suppress the codec warnings during probing

Modules: Intel8x0 driver

Suppress the codec warnings during probing of codecs.
Signed-off-by: default avatarTakashi Iwai <tiwai@suse.de>
parent b7fe4622
...@@ -600,6 +600,7 @@ static int snd_intel8x0_ali_codec_ready(intel8x0_t *chip, int mask) ...@@ -600,6 +600,7 @@ static int snd_intel8x0_ali_codec_ready(intel8x0_t *chip, int mask)
if (val & mask) if (val & mask)
return 0; return 0;
} }
if (! chip->in_ac97_init)
snd_printd(KERN_WARNING "intel8x0: AC97 codec ready timeout.\n"); snd_printd(KERN_WARNING "intel8x0: AC97 codec ready timeout.\n");
return -EBUSY; return -EBUSY;
} }
...@@ -607,9 +608,11 @@ static int snd_intel8x0_ali_codec_ready(intel8x0_t *chip, int mask) ...@@ -607,9 +608,11 @@ static int snd_intel8x0_ali_codec_ready(intel8x0_t *chip, int mask)
static int snd_intel8x0_ali_codec_semaphore(intel8x0_t *chip) static int snd_intel8x0_ali_codec_semaphore(intel8x0_t *chip)
{ {
int time = 100; int time = 100;
if (chip->buggy_semaphore)
return 0; /* just ignore ... */
while (time-- && (igetdword(chip, ICHREG(ALI_CAS)) & ALI_CAS_SEM_BUSY)) while (time-- && (igetdword(chip, ICHREG(ALI_CAS)) & ALI_CAS_SEM_BUSY))
udelay(1); udelay(1);
if (! time) if (! time && ! chip->in_ac97_init)
snd_printk(KERN_WARNING "ali_codec_semaphore timeout\n"); snd_printk(KERN_WARNING "ali_codec_semaphore timeout\n");
return snd_intel8x0_ali_codec_ready(chip, ALI_CSPSR_CODEC_READY); return snd_intel8x0_ali_codec_ready(chip, ALI_CSPSR_CODEC_READY);
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment