]> git.alsa-project.org Git - alsa-lib.git/commit
seq: Fix wrong FB direction at snd_seq_create_ump_block()
authorTakashi Iwai <tiwai@suse.de>
Tue, 9 Jul 2024 05:23:23 +0000 (07:23 +0200)
committerTakashi Iwai <tiwai@suse.de>
Tue, 9 Jul 2024 05:23:23 +0000 (07:23 +0200)
commit48101de6fa0dbff83ffbcaafc1a1b8e89806630b
tree581305ca8599ef6f72e4a0ea0506a5c85cfbe413
parent24c7f427339402546f17a2bb6c0624ebb85ec847
seq: Fix wrong FB direction at snd_seq_create_ump_block()

snd_seq_create_ump_block() receives a snd_ump_block_info_t data at the
creation of a FB and updates its associated sequencer port, but it
handled the port direction incorrectly.  The UMP / port direction
means the connectivity, but the current code translated other way
round.  The correct translation should be that input = receiver, i.e.
a writable port for applications, and output = source, a readable port
for applications.

This patch corrects the translation, and add more comments to the
direction definition.

Signed-off-by: Takashi Iwai <tiwai@suse.de>
include/seq.h
src/seq/seqmid.c