[PATCH] pcm: fix missing return value of snd_pcm_status()

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

 



In former commits for thread-safe PCM APIs, snd_pcm_status() lost its
return value.

This commit regain it.

Fixes: 54931e5a5455('pcm: Add thread-safety to PCM API')
Signed-off-by: Takashi Sakamoto <o-takashi@xxxxxxxxxxxxx>
---
 src/pcm/pcm.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/src/pcm/pcm.c b/src/pcm/pcm.c
index a66e8af..6c34719 100644
--- a/src/pcm/pcm.c
+++ b/src/pcm/pcm.c
@@ -953,6 +953,8 @@ int snd_pcm_status(snd_pcm_t *pcm, snd_pcm_status_t *status)
 	snd_pcm_lock(pcm);
 	err = pcm->fast_ops->status(pcm->fast_op_arg, status);
 	snd_pcm_unlock(pcm);
+
+	return err;
 }
 
 /**
-- 
2.7.4

_______________________________________________
Alsa-devel mailing list
Alsa-devel@xxxxxxxxxxxxxxxx
http://mailman.alsa-project.org/mailman/listinfo/alsa-devel



[Index of Archives]     [ALSA User]     [Linux Audio Users]     [Kernel Archive]     [Asterisk PBX]     [Photo Sharing]     [Linux Sound]     [Video 4 Linux]     [Gimp]     [Yosemite News]

  Powered by Linux