From: Clemens Ladisch Date: Mon, 13 Jul 2009 11:53:16 +0000 (+0200) Subject: sound: rawmidi: disable active-sensing-on-close by default X-Git-Tag: v1.0.21~18 X-Git-Url: https://git.alsa-project.org/?a=commitdiff_plain;h=76c60af00ae480e84a9ff7774bb983c1ea7f32db;p=alsa-lib.git sound: rawmidi: disable active-sensing-on-close by default Sending an Active Sensing message when closing a port can interfere with the following data if the port is reopened and a note-on is sent before the device's timeout has elapsed. Therefore, it is better to disable this setting by default. Signed-off-by: Clemens Ladisch --- diff --git a/src/rawmidi/rawmidi.c b/src/rawmidi/rawmidi.c index f50cc053..226e65c5 100644 --- a/src/rawmidi/rawmidi.c +++ b/src/rawmidi/rawmidi.c @@ -153,7 +153,7 @@ static int snd_rawmidi_params_default(snd_rawmidi_t *rawmidi, snd_rawmidi_params assert(params); params->buffer_size = page_size(); params->avail_min = 1; - params->no_active_sensing = 0; + params->no_active_sensing = 1; return 0; }