ALSA: Fix SNDCTL_DSP_RESET ioctl for OSS emulation
authorTakashi Iwai <tiwai@suse.de>
Tue, 30 Nov 2010 07:14:21 +0000 (08:14 +0100)
committerTakashi Iwai <tiwai@suse.de>
Tue, 30 Nov 2010 07:18:58 +0000 (08:18 +0100)
In OSS emulation, SNDCTL_DSP_RESET ioctl needs the reset of the internal
buffer state in addition to drop of the running streams.  Otherwise the
succeeding access becomes inconsistent.

Tested-by: Amit Nagal <helloin.amit@gmail.com>
Cc: <stable@kernel.org>
Signed-off-by: Takashi Iwai <tiwai@suse.de>

No differences found