[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[PULL 02/12] audio: fix audio_generic_write

From: Gerd Hoffmann
Subject: [PULL 02/12] audio: fix audio_generic_write
Date: Fri, 7 Feb 2020 08:45:47 +0100

From: Volker RĂ¼melin <address@hidden>

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 <address@hidden>
Message-Id: <address@hidden>
Signed-off-by: Gerd Hoffmann <address@hidden>
 audio/audio.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/audio/audio.c b/audio/audio.c
index f63f39769a9f..7226aa64ff93 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)

reply via email to

[Prev in Thread] Current Thread [Next in Thread]