mirror of
https://github.com/alsa-project/alsa-utils
synced 2024-11-09 17:05:41 +01:00
arecordmidi2: Correct the MIDI FB direction
The direction was wrongly passed to the FB setup. It has to be
"OUTPUT" instead of "INPUT, so that other applications can write to
arecordmidi2 port.
Fixes: 2cdf5ebedb
("arecordmidi2: Add initial version")
Signed-off-by: Takashi Iwai <tiwai@suse.de>
This commit is contained in:
parent
16533f81de
commit
e609d66807
1 changed files with 1 additions and 1 deletions
|
@ -124,7 +124,7 @@ static void create_ump_client(void)
|
||||||
|
|
||||||
sprintf(blkname, "Group %d", i + 1);
|
sprintf(blkname, "Group %d", i + 1);
|
||||||
snd_ump_block_info_set_name(blk, blkname);
|
snd_ump_block_info_set_name(blk, blkname);
|
||||||
snd_ump_block_info_set_direction(blk, SND_UMP_DIR_INPUT);
|
snd_ump_block_info_set_direction(blk, SND_UMP_DIR_OUTPUT);
|
||||||
snd_ump_block_info_set_first_group(blk, i);
|
snd_ump_block_info_set_first_group(blk, i);
|
||||||
snd_ump_block_info_set_num_groups(blk, 1);
|
snd_ump_block_info_set_num_groups(blk, 1);
|
||||||
snd_ump_block_info_set_ui_hint(blk, SND_UMP_BLOCK_UI_HINT_RECEIVER);
|
snd_ump_block_info_set_ui_hint(blk, SND_UMP_BLOCK_UI_HINT_RECEIVER);
|
||||||
|
|
Loading…
Reference in a new issue