OSDN Git Service
(root)
/
android-x86
/
external-alsa-lib.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
6979732
)
Fixed stream info for info ioctl in open()
author
Jaroslav Kysela
<perex@perex.cz>
Tue, 22 Oct 2002 14:21:49 +0000
(14:21 +0000)
committer
Jaroslav Kysela
<perex@perex.cz>
Tue, 22 Oct 2002 14:21:49 +0000
(14:21 +0000)
src/rawmidi/rawmidi_hw.c
patch
|
blob
|
history
diff --git
a/src/rawmidi/rawmidi_hw.c
b/src/rawmidi/rawmidi_hw.c
index
94fb6db
..
0abe909
100644
(file)
--- a/
src/rawmidi/rawmidi_hw.c
+++ b/
src/rawmidi/rawmidi_hw.c
@@
-242,6
+242,7
@@
int snd_rawmidi_hw_open(snd_rawmidi_t **inputp, snd_rawmidi_t **outputp,
}
if (subdevice >= 0) {
memset(&info, 0, sizeof(info));
+ info.stream = outputp ? SNDRV_RAWMIDI_STREAM_OUTPUT : SNDRV_RAWMIDI_STREAM_INPUT;
if (ioctl(fd, SNDRV_RAWMIDI_IOCTL_INFO, &info) < 0) {
SYSERR("SNDRV_RAWMIDI_IOCTL_INFO failed");
ret = -errno;