@@ -2438,6 +2440,9 @@ static snd_pcm_sframes_t snd_pcm_playback_rewind(struct snd_pcm_substream *subst
if (frames == 0)
return 0;
+ if (runtime->no_rewinds)
+ return 0;
Better to return an error instead?
As the number of frames rewinded is zero, it looks appropriate. Any reason
why returning an error code would help?
The return type is also snd_sframes_t, not sure how a error code would
be returned without additional changes.
_______________________________________________
Alsa-devel mailing list
Alsa-devel@xxxxxxxxxxxxxxxx
http://mailman.alsa-project.org/mailman/listinfo/alsa-devel