From: Aldrin Martoq Date: Fri, 22 Feb 2008 16:50:01 +0000 (+0100) Subject: use snd_seq_client_info_event_filter_*() functions X-Git-Tag: v1.0.17rc1~26 X-Git-Url: https://git.alsa-project.org/?a=commitdiff_plain;h=72ffc6db77fc03ea445755149c9003640511e578;p=alsa-lib.git use snd_seq_client_info_event_filter_*() functions Change snd_seq_set_client_event_filter to use the new snd_seq_client_info_event_filter_* API Signed-off-by: Aldrin Martoq --- diff --git a/src/seq/seqmid.c b/src/seq/seqmid.c index b4160827..3b0960d6 100644 --- a/src/seq/seqmid.c +++ b/src/seq/seqmid.c @@ -251,8 +251,7 @@ int snd_seq_set_client_event_filter(snd_seq_t *seq, int event_type) if ((err = snd_seq_get_client_info(seq, &info)) < 0) return err; - info.filter |= SNDRV_SEQ_FILTER_USE_EVENT; - snd_seq_set_bit(event_type, info.event_filter); + snd_seq_client_info_event_filter_add(&info, event_type); return snd_seq_set_client_info(seq, &info); }