]> git.baikalelectronics.ru Git - kernel.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)
committerTakashi Iwai <tiwai@suse.de>
Sat, 22 Sep 2012 07:31:09 +0000 (09:31 +0200)
commitcead72894ab63f86f8275b7cd6f2009a17432cf3
tree89eae1d4817843f24836b7ed61e93e202587e30e
parent329d3e35267ab684f4bf134b827599ae7263c6ae
ALSA: hda - use LPIB for delay estimation

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>
sound/pci/hda/hda_intel.c