Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
View | Details | Raw Unified | Return to bug 218641 | Differences between
and this patch

Collapse All | Expand All

(-)a/src/pcm/pcm_dmix.c (-2 / +2 lines)
Lines 311-319 static void snd_pcm_dmix_sync_area(snd_p Link Here
311
	if (size >= pcm->boundary / 2)
311
	if (size >= pcm->boundary / 2)
312
		size = pcm->boundary - size;
312
		size = pcm->boundary - size;
313
313
314
	/* the slave_app_ptr can be far behing the slave_hw_ptr */
314
	/* the slave_app_ptr can be far behind the slave_hw_ptr */
315
	/* reduce mixing and errors here - just skip not catched writes */
315
	/* reduce mixing and errors here - just skip not catched writes */
316
	if (dmix->slave_hw_ptr < dmix->slave_appl_ptr)
316
	if (dmix->slave_hw_ptr <= dmix->slave_appl_ptr)
317
		slave_size = dmix->slave_appl_ptr - dmix->slave_hw_ptr;
317
		slave_size = dmix->slave_appl_ptr - dmix->slave_hw_ptr;
318
	else
318
	else
319
		slave_size = dmix->slave_appl_ptr + (dmix->slave_boundary - dmix->slave_hw_ptr);
319
		slave_size = dmix->slave_appl_ptr + (dmix->slave_boundary - dmix->slave_hw_ptr);

Return to bug 218641