From f2b74602c8c30fa6dd793a2477f1ea1ce8a057f2 Mon Sep 17 00:00:00 2001 From: Takashi Iwai Date: Tue, 22 Apr 2008 19:25:05 +0200 Subject: Various plugins don't support "hint" sections Ignore hint sections defined by hand. Those are heplful to get listed in various places, such as aplay -L ALSA bug#3834: https://bugtrack.alsa-project.org/alsa-bug/view.php?id=3834 Signed-off-by: Takashi Iwai --- maemo/alsa-dsp.c | 2 +- maemo/dsp-ctl.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'maemo') diff --git a/maemo/alsa-dsp.c b/maemo/alsa-dsp.c index 50ffb00..0c75b95 100644 --- a/maemo/alsa-dsp.c +++ b/maemo/alsa-dsp.c @@ -664,7 +664,7 @@ SND_PCM_PLUGIN_DEFINE_FUNC(alsa_dsp) const char *id; if (snd_config_get_id(n, &id) < 0) continue; - if (strcmp(id, "comment") == 0 || strcmp(id, "type") == 0) + if (strcmp(id, "comment") == 0 || strcmp(id, "type") == 0 || strcmp(id, "hint") == 0) continue; if (strcmp(id, "playback_device_file") == 0) { if (snd_config_get_type(n) == SND_CONFIG_TYPE_COMPOUND){ diff --git a/maemo/dsp-ctl.c b/maemo/dsp-ctl.c index da00c1a..6aac273 100644 --- a/maemo/dsp-ctl.c +++ b/maemo/dsp-ctl.c @@ -545,7 +545,7 @@ SND_CTL_PLUGIN_DEFINE_FUNC(dsp_ctl) const char *id; if (snd_config_get_id(n, &id) < 0) continue; - if (strcmp(id, "comment") == 0 || strcmp(id, "type") == 0) + if (strcmp(id, "comment") == 0 || strcmp(id, "type") == 0 || strcmp(id, "hint") == 0) continue; if (strcmp(id, "playback_devices") == 0) { if (snd_config_get_type(n) == SND_CONFIG_TYPE_COMPOUND){ -- cgit