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 --- a52/pcm_a52.c | 2 +- jack/pcm_jack.c | 2 +- maemo/alsa-dsp.c | 2 +- maemo/dsp-ctl.c | 2 +- mix/pcm_upmix.c | 2 +- mix/pcm_vdownmix.c | 2 +- oss/ctl_oss.c | 2 +- oss/pcm_oss.c | 2 +- pulse/ctl_pulse.c | 2 +- pulse/pcm_pulse.c | 2 +- 10 files changed, 10 insertions(+), 10 deletions(-) diff --git a/a52/pcm_a52.c b/a52/pcm_a52.c index 573912f..97acfe7 100644 --- a/a52/pcm_a52.c +++ b/a52/pcm_a52.c @@ -581,7 +581,7 @@ SND_PCM_PLUGIN_DEFINE_FUNC(a52) 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, "card") == 0) { if (snd_config_get_string(n, &card) < 0) { diff --git a/jack/pcm_jack.c b/jack/pcm_jack.c index c1e7a3a..3370a26 100644 --- a/jack/pcm_jack.c +++ b/jack/pcm_jack.c @@ -403,7 +403,7 @@ SND_PCM_PLUGIN_DEFINE_FUNC(jack) 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_ports") == 0) { if (snd_config_get_type(n) != SND_CONFIG_TYPE_COMPOUND) { 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){ diff --git a/mix/pcm_upmix.c b/mix/pcm_upmix.c index 9ca5bf4..66e6604 100644 --- a/mix/pcm_upmix.c +++ b/mix/pcm_upmix.c @@ -338,7 +338,7 @@ SND_PCM_PLUGIN_DEFINE_FUNC(upmix) 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, "slave") == 0) { sconf = n; diff --git a/mix/pcm_vdownmix.c b/mix/pcm_vdownmix.c index a083ae2..d5648cf 100644 --- a/mix/pcm_vdownmix.c +++ b/mix/pcm_vdownmix.c @@ -295,7 +295,7 @@ SND_PCM_PLUGIN_DEFINE_FUNC(vdownmix) 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, "slave") == 0) { sconf = n; diff --git a/oss/ctl_oss.c b/oss/ctl_oss.c index f3c30f9..716ab64 100644 --- a/oss/ctl_oss.c +++ b/oss/ctl_oss.c @@ -357,7 +357,7 @@ SND_CTL_PLUGIN_DEFINE_FUNC(oss) 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, "device") == 0) { if (snd_config_get_string(n, &device) < 0) { diff --git a/oss/pcm_oss.c b/oss/pcm_oss.c index 847721b..16ba1f0 100644 --- a/oss/pcm_oss.c +++ b/oss/pcm_oss.c @@ -364,7 +364,7 @@ SND_PCM_PLUGIN_DEFINE_FUNC(oss) 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, "device") == 0) { if (snd_config_get_string(n, &device) < 0) { diff --git a/pulse/ctl_pulse.c b/pulse/ctl_pulse.c index d1ac325..dcf2769 100644 --- a/pulse/ctl_pulse.c +++ b/pulse/ctl_pulse.c @@ -599,7 +599,7 @@ SND_CTL_PLUGIN_DEFINE_FUNC(pulse) 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, "server") == 0) { if (snd_config_get_string(n, &server) < 0) { diff --git a/pulse/pcm_pulse.c b/pulse/pcm_pulse.c index cfa8121..e4a6232 100644 --- a/pulse/pcm_pulse.c +++ b/pulse/pcm_pulse.c @@ -706,7 +706,7 @@ SND_PCM_PLUGIN_DEFINE_FUNC(pulse) 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, "server") == 0) { if (snd_config_get_string(n, &server) < 0) { -- cgit