• Jeffery Miller's avatar
    ALSA: pcm: Return negative delays from SNDRV_PCM_IOCTL_DELAY. · 912e4c33
    Jeffery Miller authored
    The commit c2c86a97 ("ALSA: pcm: Remove set_fs() in PCM core code")
    changed SNDRV_PCM_IOCTL_DELAY to return an inconsistent error instead of a
    negative delay.  Originally the call would succeed and return the negative
    delay.  The Chromium OS Audio Server (CRAS) gets confused and hangs when
    the error is returned instead of the negative delay.
    
    Help CRAS avoid the issue by rolling back the behavior to return a
    negative delay instead of an error.
    
    Fixes: c2c86a97 ("ALSA: pcm: Remove set_fs() in PCM core code")
    Signed-off-by: default avatarJeffery Miller <jmiller@neverware.com>
    Cc: <stable@vger.kernel.org> # v4.13+
    Signed-off-by: default avatarTakashi Iwai <tiwai@suse.de>
    912e4c33
pcm_compat.c 21.6 KB