diff options
author | Clemens Ladisch <clemens@ladisch.de> | 2009-07-13 13:52:46 +0200 |
---|---|---|
committer | Takashi Iwai <tiwai@suse.de> | 2009-07-15 11:57:20 +0200 |
commit | 2d4b842014dc76a81abced47ef27177eedb9deba (patch) | |
tree | dbc52b4d9a5e78e9ac82da9b31bcd5c5794be53b /sound/core/seq | |
parent | 08d033405a5a537d4197dad0fcb6be47062be2a9 (diff) | |
download | talos-obmc-linux-2d4b842014dc76a81abced47ef27177eedb9deba.tar.gz talos-obmc-linux-2d4b842014dc76a81abced47ef27177eedb9deba.zip |
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 <clemens@ladisch.de>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Diffstat (limited to 'sound/core/seq')
-rw-r--r-- | sound/core/seq/seq_midi.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/sound/core/seq/seq_midi.c b/sound/core/seq/seq_midi.c index 45cf5c144e39..ebaf1b541dcd 100644 --- a/sound/core/seq/seq_midi.c +++ b/sound/core/seq/seq_midi.c @@ -237,6 +237,7 @@ static int midisynth_use(void *private_data, struct snd_seq_port_subscribe *info memset(¶ms, 0, sizeof(params)); params.avail_min = 1; params.buffer_size = output_buffer_size; + params.no_active_sensing = 1; if ((err = snd_rawmidi_output_params(msynth->output_rfile.output, ¶ms)) < 0) { snd_rawmidi_kernel_release(&msynth->output_rfile); return err; |