ALSA: hda - Improved position reporting on SKL+
authorTakashi Iwai <tiwai@suse.de>
Wed, 29 Mar 2017 06:46:00 +0000 (08:46 +0200)
committerTakashi Iwai <tiwai@suse.de>
Mon, 3 Apr 2017 06:43:17 +0000 (08:43 +0200)
commitf87e7f25893d7db4da465c6b50882197e518d4af
tree1056926dc8c7862a3f071df4cb810da3131a7928
parent70eafad849f8af3a83e139eda36712d3c1da5b6a
ALSA: hda - Improved position reporting on SKL+

Apply the same methods to obtain the current stream position as ASoC
Intel SKL driver uses.  It reads the position from DPIB for a playback
stream while it still reads from the position buffer for a capture
stream.  For a capture stream, some ugly workaround is needed to
settle down the inconsistent position.

Acked-by: Vinod Koul <vinod.koul@intel.com>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
sound/pci/hda/hda_intel.c