Commit 1c63b8a6 authored by Jaroslav Kysela's avatar Jaroslav Kysela

ALSA CVS update

Intel8x0 driver
intel8x0: Fixed a long mdelay()

A long mdelay() call in prepration of 4/6 channels on nForce
is optimized and replaced with msleep().
Signed-off-by: default avatarTakashi Iwai <tiwai@suse.de>
parent c00ddc36
...@@ -1024,8 +1024,10 @@ static void snd_intel8x0_setup_pcm_out(intel8x0_t *chip, ...@@ -1024,8 +1024,10 @@ static void snd_intel8x0_setup_pcm_out(intel8x0_t *chip,
/* reset to 2ch once to keep the 6 channel data in alignment, /* reset to 2ch once to keep the 6 channel data in alignment,
* to start from Front Left always * to start from Front Left always
*/ */
iputdword(chip, ICHREG(GLOB_CNT), (cnt & 0xcfffff)); if (cnt & ICH_PCM_246_MASK) {
mdelay(50); /* grrr... */ iputdword(chip, ICHREG(GLOB_CNT), cnt & ~ICH_PCM_246_MASK);
msleep(50); /* grrr... */
}
} else if (chip->device_type == DEVICE_INTEL_ICH4) { } else if (chip->device_type == DEVICE_INTEL_ICH4) {
if (sample_bits > 16) if (sample_bits > 16)
cnt |= ICH_PCM_20BIT; cnt |= ICH_PCM_20BIT;
......
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