]> git.alsa-project.org Git - alsa-lib.git/commitdiff
sound: rawmidi: disable active-sensing-on-close by default
authorClemens Ladisch <clemens@ladisch.de>
Mon, 13 Jul 2009 11:53:16 +0000 (13:53 +0200)
committerClemens Ladisch <clemens@ladisch.de>
Mon, 13 Jul 2009 11:53:16 +0000 (13:53 +0200)
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 <clemens@ladisch.de>
src/rawmidi/rawmidi.c

index f50cc0532107221d9da183795718c026ff9e47af..226e65c5dda1c0789bd289df7c2fb52008dbb0bb 100644 (file)
@@ -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;
 }