]> git.alsa-project.org Git - alsa-plugins.git/commitdiff
Various plugins don't support "hint" sections
authorTakashi Iwai <tiwai@suse.de>
Tue, 22 Apr 2008 17:25:05 +0000 (19:25 +0200)
committerTakashi Iwai <tiwai@suse.de>
Fri, 6 Jun 2008 13:54:12 +0000 (15:54 +0200)
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>
a52/pcm_a52.c
jack/pcm_jack.c
maemo/alsa-dsp.c
maemo/dsp-ctl.c
mix/pcm_upmix.c
mix/pcm_vdownmix.c
oss/ctl_oss.c
oss/pcm_oss.c
pulse/ctl_pulse.c
pulse/pcm_pulse.c

index 573912fd5b8ddc76fb46ae6feae5ba3cb04639a8..97acfe7913530050beaa399f6087feb1f049df32 100644 (file)
@@ -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) {
index c1e7a3afa2d6dfbbde0050ec0efd347522af5638..3370a26aa4ee2c6e56df3864db6f71a09fbf7e64 100644 (file)
@@ -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) {
index 50ffb00625934914af8cfc575313ff5906b914c4..0c75b9550d6e4c91a2ce7433c6ea1566af7c9d91 100644 (file)
@@ -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){
index da00c1aa47ee43d5e8b678bb64ec88307be6effb..6aac273048bb1e1d50b1f5493d59f0c2264f7645 100644 (file)
@@ -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){
index 9ca5bf4e4b7485ecf7186cb33e237cec04ca1d0a..66e66047f259bcd5225c60ae3418ab4ee0732ff6 100644 (file)
@@ -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;
index a083ae2cc70716fedd4ae82f2d48b42ee672e7f5..d5648cf072630352682ce6c53c335b675d87362c 100644 (file)
@@ -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;
index f3c30f965c31b9fc2be42afb626357e598dd4f3e..716ab64cae87888802a0f071780adee9f8295ee5 100644 (file)
@@ -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) {
index 847721b6addd0e46f04bd6bd18f0ce7e370e3997..16ba1f074bcab47ef36f09ad86524eb763ce80d2 100644 (file)
@@ -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) {
index d1ac325802a3d3e33b1ab59dbdd4aeb9cc1f7da9..dcf2769a8f7ec1b8d56879dcb3bf83179b003313 100644 (file)
@@ -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) {
index cfa81219861532ca163d6e6d29f72656366fbacc..e4a6232475b29a5e3eccba642010607e7cd29cc2 100644 (file)
@@ -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) {