]> git.ipfire.org Git - thirdparty/qemu.git/commit
intel-hda: fix position buffer
authorGerd Hoffmann <kraxel@redhat.com>
Fri, 29 Nov 2013 13:25:33 +0000 (14:25 +0100)
committerMichael Roth <mdroth@linux.vnet.ibm.com>
Fri, 21 Feb 2014 03:59:17 +0000 (21:59 -0600)
commit97f74de48cbedeb2555ddf85c2cfe822ef8eadb2
treebe4d80dd424e50751b7d55962de0de1eea1690c0
parent30a08ab4e15a5fc810c9b4541456d2ebac68c646
intel-hda: fix position buffer

Fix position buffer updates to use the correct stream offset.

Without this patch both IN (record) and OUT (playback) streams
will update the IN buffer positions.  The linux kernel notices
and complains:
  hda-intel: Invalid position buffer, using LPIB read method instead.

The bug may also lead to glitches when recording and playing
at the same time:
  https://bugzilla.redhat.com/show_bug.cgi?id=947785

Cc: qemu-stable@nongnu.org
Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
(cherry picked from commit d58ce68a454e5ae9cbde0308def379e272f13b10)

Signed-off-by: Michael Roth <mdroth@linux.vnet.ibm.com>
hw/audio/intel-hda.c