summaryrefslogtreecommitdiffstats
path: root/pulse
diff options
context:
space:
mode:
authorTakashi Iwai <tiwai@suse.de>2008-04-22 19:25:05 +0200
committerTakashi Iwai <tiwai@suse.de>2008-06-06 15:54:12 +0200
commitf2b74602c8c30fa6dd793a2477f1ea1ce8a057f2 (patch)
tree3e6995ec1fb12528ebd66d968fdb4358c6d77550 /pulse
parent1a8645a9fe1f85421b3b906bd1fe355432e7c099 (diff)
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 <tiwai@suse.de>
Diffstat (limited to 'pulse')
-rw-r--r--pulse/ctl_pulse.c2
-rw-r--r--pulse/pcm_pulse.c2
2 files changed, 2 insertions, 2 deletions
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) {