All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] pcm: fix missing return value of snd_pcm_status()
@ 2016-07-13 14:15 Takashi Sakamoto
  2016-07-13 14:35 ` Takashi Iwai
  0 siblings, 1 reply; 2+ messages in thread
From: Takashi Sakamoto @ 2016-07-13 14:15 UTC (permalink / raw)
  To: tiwai; +Cc: alsa-devel

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@sakamocchi.jp>
---
 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

^ permalink raw reply related	[flat|nested] 2+ messages in thread

* Re: [PATCH] pcm: fix missing return value of snd_pcm_status()
  2016-07-13 14:15 [PATCH] pcm: fix missing return value of snd_pcm_status() Takashi Sakamoto
@ 2016-07-13 14:35 ` Takashi Iwai
  0 siblings, 0 replies; 2+ messages in thread
From: Takashi Iwai @ 2016-07-13 14:35 UTC (permalink / raw)
  To: Takashi Sakamoto; +Cc: alsa-devel

On Wed, 13 Jul 2016 16:15:12 +0200,
Takashi Sakamoto wrote:
> 
> 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@sakamocchi.jp>

Thanks, applied now.


Takashi

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2016-07-13 14:35 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-07-13 14:15 [PATCH] pcm: fix missing return value of snd_pcm_status() Takashi Sakamoto
2016-07-13 14:35 ` Takashi Iwai

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.