[alsa-devel] [PATCH 3/3] pcm_file: in case of failed write clear file buffer variables

Takashi Iwai tiwai at suse.de
Wed Jul 3 14:23:34 CEST 2019


On Mon, 01 Jul 2019 15:25:18 +0200,
Adam Miartus wrote:
> 
> previously, in case of failed write to output file, error is returned
> from snd_pcm_writei/read APIs, user could run pcm_drain as fallback and
> encounter an assert, since drain would try to write remaining file
> buffer to a file
> 
> if failed to write to output file in first place, it makes sense to clear
> current internal pmc_file file buffer variables
> 
> Signed-off-by: Adam Miartus <amiartus at de.adit-jv.com>
> Reviewed-by: Timo Wischer <twischer at de.adit-jv.com>

Applied, thanks.


Takashi


More information about the Alsa-devel mailing list