summaryrefslogtreecommitdiff
path: root/lib/pm-notifier-error-inject.c
diff options
context:
space:
mode:
authorJoshua Frkuska <joshua_frkuska@mentor.com>2018-06-21 17:22:48 +0200
committerAjay Agarwal <ajaya@codeaurora.org>2019-01-09 10:16:59 +0530
commitf30d9c4d16847c0ce989b3f9629349c17c871ea6 (patch)
tree76a13ffb908e258ae36c4a18a4aaf0a36be16514 /lib/pm-notifier-error-inject.c
parent13d7ef745dca152b2222fc5ed09d5280ccbe5cef (diff)
usb: gadget: u_audio: update hw_ptr in iso_complete after data copied
In u_audio_iso_complete, the runtime hw_ptr is updated before the data is actually copied over to/from the buffer/dma area. When ALSA uses this hw_ptr, the data may not actually be available to be used. This causes trash/stale audio to play/record. This patch updates the hw_ptr after the data has been copied to avoid this. Change-Id: Ia2dffdbb6fd1c9412e0b7c5cd483bfb0fe032943 Fixes: 132fcb460839 ("usb: gadget: Add Audio Class 2.0 Driver") Signed-off-by: Joshua Frkuska <joshua_frkuska@mentor.com> Signed-off-by: Eugeniu Rosca <erosca@de.adit-jv.com> Signed-off-by: Felipe Balbi <felipe.balbi@linux.intel.com> Git-commit: 6b37bd78d30c890e575a1bda22978d1d2a233362 Git-repo: https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git Signed-off-by: Ajay Agarwal <ajaya@codeaurora.org>
Diffstat (limited to 'lib/pm-notifier-error-inject.c')
0 files changed, 0 insertions, 0 deletions