]> git.kernelconcepts.de Git - karo-tx-linux.git/commit
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)
committerAndi Kleen <ak@linux.intel.com>
Tue, 14 Dec 2010 22:40:10 +0000 (23:40 +0100)
commitbc59d7d4a0c3ab839cd8651ea639702d4d173a4b
treeb791604b40f3948e9aa6d173a8077bfb833371fb
parent48099f895b702f3c13a9828396e6efa29d0b370c
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>
Signed-off-by: Andi Kleen <ak@linux.intel.com>
sound/core/oss/pcm_oss.c