Messages in this thread Patch in this message |  | | Subject | [patch] intel8x0 latency fix | From | karl.vogel@seagha ... | Date | Fri, 20 Aug 2004 18:19:12 +0200 |
| |
karl.vogel@seagha.com writes:
> # lspci -s 00:06.0 > 00:06.0 Multimedia audio controller: nVidia Corporation nForce3 Audio (rev a2) > > latency: 50752 us, entries: 267 (267)
Following patch fixes it for 2 channel devices (like my notebook). Although I'm not sure if this is all that useful... if there are workloads other than audio work that need low latency, then this might be useful.
Without this patch, my machine was generating the latency each time artsd (KDE) re-opened the audio device.
--- a/sound/pci/intel8x0.c 2004-08-20 18:05:46.006717144 +0200 +++ b/sound/pci/intel8x0.c 2004-08-20 17:52:02.759869688 +0200 @@ -1021,8 +1021,10 @@ /* reset to 2ch once to keep the 6 channel data in alignment, * to start from Front Left always */ - iputdword(chip, ICHREG(GLOB_CNT), (cnt & 0xcfffff)); - mdelay(50); /* grrr... */ + if (chip->multi4 || chip->multi6) { + iputdword(chip, ICHREG(GLOB_CNT), (cnt & 0xcfffff)); + mdelay(50); /* grrr... */ + } } else if (chip->device_type == DEVICE_INTEL_ICH4) { if (sample_bits > 16) cnt |= ICH_PCM_20BIT; - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
|  |