]> 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)
commit03fe1e2f9e8886cfefc5e7a4328654ce50218ffb
tree89eae1d4817843f24836b7ed61e93e202587e30e
parentaeb08bd108c9d150d9e37bbe1f75cfa3280bd90b
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