• L
    ALSA: pcm - Tell user that stream to be rewound is suspended · 51840409
    Lubomir Rintel 提交于
    Return STRPIPE instead of EBADF when userspace attempts to rewind
    of forward a stream that was suspended in meanwhile, so that it
    can be recovered by snd_pcm_recover().
    
    This was causing Pulseaudio to unload the ALSA sink module under a race
    condition when it attempted to rewind the stream right after resume from
    suspend, before writing to the stream which would cause it to revive the
    stream otherwise. Tested to work with Pulseaudio patched to attempt to
    snd_pcm_recover() upon receiving an error from snd_pcm_rewind().
    Signed-off-by: NLubomir Rintel <lkundrak@v3.sk>
    Signed-off-by: NTakashi Iwai <tiwai@suse.de>
    51840409
pcm_native.c 91.6 KB