]> git.karo-electronics.de Git - karo-tx-linux.git/commit
ALSA: hda - use LPIB for delay estimation
authorPierre-Louis Bossart <pierre-louis.bossart@linux.intel.com>
Fri, 21 Sep 2012 23:39:06 +0000 (18:39 -0500)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 12 Oct 2012 20:50:28 +0000 (05:50 +0900)
commitfbd15b54708f20d25e70d40c4035db37fa7c6c2a
tree7982086a5e79d03638d71c2e004aee91c09265a0
parent7bf3c0a63f177629f36106050cfc58000f12a235
ALSA: hda - use LPIB for delay estimation

commit 90accc58a6946e7245993da6079f88d8c29cb731 upstream.

DMA Position in Buffer (DPIB) should be used for
ring buffer management, while LPIB register provides
information on the number of samples transfered on
the link. The difference between the two pieces of
information corresponds to hardware/DMA buffering.

This patch reports this difference in runtime->delay, and
removes the use of the COMBO mode on recent Intel hardware.

Credits to Takashi Iwai for an initial patch.

[rebased to for-next branch and replaced snd_printk() with
 snd_printdd() by tiwai]

Signed-off-by: Pierre-Louis Bossart <pierre-louis.bossart@linux.intel.com>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
sound/pci/hda/hda_intel.c