All the mail mirrored from lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 0/2] pcm_file write file assert case handling
@ 2019-06-07 12:23 Adam Miartus
  2019-06-07 12:23 ` [PATCH 1/2] pcm_file: do not disrupt playback on output file write fail Adam Miartus
  2019-06-07 12:23 ` [PATCH 2/2] pcm_file: report write output file error to api user Adam Miartus
  0 siblings, 2 replies; 7+ messages in thread
From: Adam Miartus @ 2019-06-07 12:23 UTC (permalink / raw
  To: patch; +Cc: alsa-devel

patched possible case where failed file write can cause assert in pcm_file
plugin, by reporting error EPIPE and printing debug message.

reporting an error with debug hint message is preferred to assert, user
may have a way to recover in upper API level. providing a debug message
makes it easier to debug the issue from logs. previously, reaching assert
did not provide useful message to API level user.

Adam Miartus (2):
  pcm_file: do not disrupt playback on output file write fail
  pcm_file: report write output file error to api user

 src/pcm/pcm_file.c | 63 +++++++++++++++++++++++++++++++++++++++---------------
 1 file changed, 46 insertions(+), 17 deletions(-)

-- 
2.7.4

^ permalink raw reply	[flat|nested] 7+ messages in thread
* [PATCH 0/2] v2 pcm_file propagate write error instead of an assert
@ 2019-06-12  6:48 Adam Miartus
  2019-06-12  6:48 ` [PATCH 1/2] pcm_file: do not disrupt playback on output file write fail Adam Miartus
  0 siblings, 1 reply; 7+ messages in thread
From: Adam Miartus @ 2019-06-12  6:48 UTC (permalink / raw
  To: patch; +Cc: alsa-devel

patch possible case whenre file write causes assert in pcm_file
plugin, by reporting error to user and printing a message

user has a chance to recover error state, or capture
correct logs before assert happens, and may have an idea how
to recover

Adam Miartus (2):
  pcm_file: do not disrupt playback on output file write fail
  pcm_file: report write output file error to api user

 src/pcm/pcm_file.c | 61 ++++++++++++++++++++++++++++++++++++++----------------
 1 file changed, 43 insertions(+), 18 deletions(-)

-- 
2.7.4

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

end of thread, other threads:[~2019-06-12  6:48 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2019-06-07 12:23 [PATCH 0/2] pcm_file write file assert case handling Adam Miartus
2019-06-07 12:23 ` [PATCH 1/2] pcm_file: do not disrupt playback on output file write fail Adam Miartus
2019-06-08 18:38   ` Cezary Rojewski
2019-06-11  7:52     ` Miartus, Adam (Arion Recruitment; ADITG/ESM)
2019-06-11 16:03       ` Takashi Iwai
2019-06-07 12:23 ` [PATCH 2/2] pcm_file: report write output file error to api user Adam Miartus
  -- strict thread matches above, loose matches on Subject: below --
2019-06-12  6:48 [PATCH 0/2] v2 pcm_file propagate write error instead of an assert Adam Miartus
2019-06-12  6:48 ` [PATCH 1/2] pcm_file: do not disrupt playback on output file write fail Adam Miartus

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.