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 <amartoq@dcc.uchile.cl>
This commit is contained in:
Aldrin Martoq 2008-02-22 17:50:01 +01:00 committed by Takashi Iwai
parent 83c5a60778
commit 72ffc6db77

View file

@ -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) if ((err = snd_seq_get_client_info(seq, &info)) < 0)
return err; return err;
info.filter |= SNDRV_SEQ_FILTER_USE_EVENT; snd_seq_client_info_event_filter_add(&info, event_type);
snd_seq_set_bit(event_type, info.event_filter);
return snd_seq_set_client_info(seq, &info); return snd_seq_set_client_info(seq, &info);
} }