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)
committerGreg Kroah-Hartman <gregkh@suse.de>
Thu, 9 Dec 2010 21:32:51 +0000 (13:32 -0800)
commitd740410ce72f7fbfc1053bc216bbd45fda79aff6
tree5404b8b8474816cbe4376bfc6f4f38faf77dd46b
parentace516638acb9a6987886ab805de276e8adea9a4
ALSA: Fix SNDCTL_DSP_RESET ioctl for OSS emulation

commit 60686aa0086a14f8b15c83a09f3df1eebe3aab3c upstream.

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>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
sound/core/oss/pcm_oss.c