[alsa-devel] [PATCH] ALSA: pcm: Return 0 when size < start_threshold in capture
Takashi Iwai
tiwai at suse.de
Wed Aug 22 09:53:56 CEST 2018
On Tue, 21 Aug 2018 21:46:43 +0200,
Ricardo Biehl Pasquali wrote:
>
> In __snd_pcm_lib_xfer(), when capture, if state is
> PREPARED and size is less than start_threshold nothing
> can be done. As there is no error, 0 is returned.
>
> Am I missing something?
Not really :)
It's just an undefined behavior, so far, and yes, the suggested
behavior makes more sense.
Could you resubmit a proper patch for merging? Please follow
Documentation/process/submitting-patches.rst.
thanks,
Takashi
More information about the Alsa-devel
mailing list