summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorVolker RĂ¼melin <vr_qemu@t-online.de>2020-01-23 08:49:35 +0100
committerGerd Hoffmann <kraxel@redhat.com>2020-01-31 08:48:03 +0100
commitd3ed0996712900161ef2ae7fab6b41616086ad30 (patch)
treea2edee39217dc829c364301e283014b241f4badb
parent7a4ede0047a8613b0e3b72c9d351038f013dd357 (diff)
downloadfocaccia-qemu-d3ed0996712900161ef2ae7fab6b41616086ad30.tar.gz
focaccia-qemu-d3ed0996712900161ef2ae7fab6b41616086ad30.zip
audio: fix audio_generic_write
The pcm_ops function put_buffer_out expects the returned pointer
of function get_buffer_out as argument. Fix this.

Signed-off-by: Volker RĂ¼melin <vr_qemu@t-online.de>
Message-Id: <20200123074943.6699-1-vr_qemu@t-online.de>
Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
-rw-r--r--audio/audio.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/audio/audio.c b/audio/audio.c
index f63f39769a..7226aa64ff 100644
--- a/audio/audio.c
+++ b/audio/audio.c
@@ -1476,7 +1476,7 @@ size_t audio_generic_write(HWVoiceOut *hw, void *buf, size_t size)
     copy_size = MIN(size, dst_size);
 
     memcpy(dst, buf, copy_size);
-    return hw->pcm_ops->put_buffer_out(hw, buf, copy_size);
+    return hw->pcm_ops->put_buffer_out(hw, dst, copy_size);
 }
 
 size_t audio_generic_read(HWVoiceIn *hw, void *buf, size_t size)