linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 0/1] Documentation update
@ 2020-05-12  9:05 changjoon.lee
  2020-05-12  9:05 ` [PATCH 1/1] Updated negative return values for documentation update changjoon.lee
  0 siblings, 1 reply; 5+ messages in thread
From: changjoon.lee @ 2020-05-12  9:05 UTC (permalink / raw)
  To: tiwai; +Cc: alsa-devel, linux, linux-kernel, ChangJoon Lee

From: ChangJoon Lee <changjoon.lee@lge.com>

ChangJoon Lee (1):
  Updated negative return values for documentation update.

 src/pcm/pcm.c | 57 ++++++++++++++++++++++++++++++++++++++++++++++++---
 1 file changed, 54 insertions(+), 3 deletions(-)

-- 
2.26.2


^ permalink raw reply	[flat|nested] 5+ messages in thread
* [PATCH 0/1] Documentation update
@ 2020-05-14  9:07 changjoon.lee
  2020-05-14  9:07 ` [PATCH 1/1] Updated negative return values for documentation update changjoon.lee
  0 siblings, 1 reply; 5+ messages in thread
From: changjoon.lee @ 2020-05-14  9:07 UTC (permalink / raw)
  To: tiwai; +Cc: alsa-devel, linux, linux-kernel, ChangJoon Lee

From: ChangJoon Lee <changjoon.lee@lge.com>

Hi, ALSA Teams,

This is documentation update purpose patch.
This patch does NOT alter any of operations.

This patch allows an application engineer to understand why they received negative return
such as -EIO, -EBADFD, -ENOSYS, -ESTRPIPE and etc which are not fully documented on documentation site.

This patch also exposes Expected Status of PCM based on bad_pcm_state() with P_STATE to help engineer to understand API behavior to the documentation site.

TODO :
We may need improve consistency of return value especially for snd_pcm_hw_params_current().
It returns -EBADFD when PCM is not setup while other API returns -EIO in this case.


 src/pcm/pcm.c | 57 ++++++++++++++++++++++++++++++++++++++++++++++++---
 1 file changed, 54 insertions(+), 3 deletions(-)

-- 
2.26.2


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

end of thread, other threads:[~2020-05-14  9:07 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-05-12  9:05 [PATCH 0/1] Documentation update changjoon.lee
2020-05-12  9:05 ` [PATCH 1/1] Updated negative return values for documentation update changjoon.lee
2020-05-14  2:47   ` CJ Lee
2020-05-14  7:54     ` Takashi Iwai
2020-05-14  9:07 [PATCH 0/1] Documentation update changjoon.lee
2020-05-14  9:07 ` [PATCH 1/1] Updated negative return values for documentation update changjoon.lee

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).