]> err.no Git - linux-2.6/commit
[ALSA] rawmidi: adjust runtime->avail when changing output buffer size
authorClemens Ladisch <clemens@ladisch.de>
Mon, 21 Nov 2005 06:31:31 +0000 (07:31 +0100)
committerJaroslav Kysela <perex@suse.cz>
Tue, 3 Jan 2006 11:29:25 +0000 (12:29 +0100)
commit1b98ea4791892399d8c23c93e117567eeff38887
tree5128a11d23f34048e7d00f2915326f8e9e32bee5
parent0ef797c5ca8a73853c827cf495caed44676cfe17
[ALSA] rawmidi: adjust runtime->avail when changing output buffer size

Modules: RawMidi Midlevel

When the output buffer size is changed, runtime->avail must be
adjusted to the new size; otherwise, draining of a bigger buffer would
appear to fail because avail does not reach buffer_size.

Signed-off-by: Clemens Ladisch <clemens@ladisch.de>
sound/core/rawmidi.c