diff options
author | Clemens Ladisch <clemens@ladisch.de> | 2009-10-21 09:12:26 +0200 |
---|---|---|
committer | Takashi Iwai <tiwai@suse.de> | 2009-11-10 16:32:10 +0100 |
commit | 91d12c485b8949cce6c13ab641147c5bc86ce8b9 (patch) | |
tree | 2f5d3b031e1a3920561f514f5387890f7b4e1419 /sound/core/sound.c | |
parent | 3f225c07c7d0559f65b41250edd01a577fdba426 (diff) |
sound: rawmidi: fix opened substreams count
The substream_opened field is to count the number of opened substreams,
not the number of times that any substreams have been opened.
Furthermore, all substreams being opened does not imply that the next
open would fail, due to the possibility of O_APPEND. With this wrong
check, opening a substream multiple times would succeed only if the
device had more unopened substreams.
Signed-off-by: Clemens Ladisch <clemens@ladisch.de>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Diffstat (limited to 'sound/core/sound.c')
0 files changed, 0 insertions, 0 deletions