summaryrefslogtreecommitdiffstats
path: root/sound/core/pcm.c
diff options
context:
space:
mode:
authorClemens Ladisch <clemens@ladisch.de>2009-10-21 09:12:26 +0200
committerTakashi Iwai <tiwai@suse.de>2009-11-10 16:32:10 +0100
commit91d12c485b8949cce6c13ab641147c5bc86ce8b9 (patch)
tree2f5d3b031e1a3920561f514f5387890f7b4e1419 /sound/core/pcm.c
parent3f225c07c7d0559f65b41250edd01a577fdba426 (diff)
downloadop-kernel-dev-91d12c485b8949cce6c13ab641147c5bc86ce8b9.zip
op-kernel-dev-91d12c485b8949cce6c13ab641147c5bc86ce8b9.tar.gz
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/pcm.c')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud