Skip to content

Commit

Permalink
arecordmidi2: Correct the MIDI FB direction
Browse files Browse the repository at this point in the history
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: 2cdf5eb ("arecordmidi2: Add initial version")
Signed-off-by: Takashi Iwai <[email protected]>
  • Loading branch information
tiwai committed Jul 8, 2024
1 parent 16533f8 commit e609d66
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion seq/aplaymidi2/arecordmidi2.c
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,7 @@ static void create_ump_client(void)

sprintf(blkname, "Group %d", i + 1);
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_num_groups(blk, 1);
snd_ump_block_info_set_ui_hint(blk, SND_UMP_BLOCK_UI_HINT_RECEIVER);
Expand Down

0 comments on commit e609d66

Please sign in to comment.