Browse Source

Revert "Do a better job of finding default ALSA devices"

This reverts commit d65861f0496a58b2c2642c249f03ac3a08e820c3.

The default device is the one with the name "default"
Sam Lantinga 1 year ago
parent
commit
251f8fa272
1 changed files with 1 additions and 3 deletions
  1. 1 3
      src/audio/alsa/SDL_alsa_audio.c

+ 1 - 3
src/audio/alsa/SDL_alsa_audio.c

@@ -773,9 +773,7 @@ static void ALSA_HotplugIteration(SDL_bool *has_default_output, SDL_bool *has_de
                 continue;
             }
 
-            if (SDL_strcmp(name, "default") == 0 ||
-                SDL_strncmp(name, "default:", 8 ) == 0 ||
-                SDL_strncmp(name, "sysdefault:", 11 ) == 0 ) {
+            if (SDL_strcmp(name, "default") == 0) {
                 if (has_default < 0) {
                     has_default = i;
                 }