summaryrefslogtreecommitdiff
path: root/sysutils/xentools415/patches/patch-tools_qemu-xen_audio_audio.c
diff options
context:
space:
mode:
Diffstat (limited to 'sysutils/xentools415/patches/patch-tools_qemu-xen_audio_audio.c')
-rw-r--r--sysutils/xentools415/patches/patch-tools_qemu-xen_audio_audio.c12
1 files changed, 12 insertions, 0 deletions
diff --git a/sysutils/xentools415/patches/patch-tools_qemu-xen_audio_audio.c b/sysutils/xentools415/patches/patch-tools_qemu-xen_audio_audio.c
new file mode 100644
index 00000000000..485aadeb70e
--- /dev/null
+++ b/sysutils/xentools415/patches/patch-tools_qemu-xen_audio_audio.c
@@ -0,0 +1,12 @@
+$NetBSD: patch-tools_qemu-xen_audio_audio.c,v 1.1 2021/04/18 12:31:26 bouyer Exp $
+
+--- tools/qemu-xen/audio/audio.c.orig 2020-12-08 16:58:46.000000000 +0100
++++ tools/qemu-xen/audio/audio.c 2020-12-09 16:09:37.068801135 +0100
+@@ -890,6 +890,7 @@
+ if (audio_get_pdo_in(hw->s->dev)->mixing_engine) {
+ return audio_pcm_sw_read(sw, buf, size);
+ } else {
++#undef read
+ return hw->pcm_ops->read(hw, buf, size);
+ }
+ }