Hi,

I noticed that audioctl and mixerctl both use /dev/audioctl0 as a default since the reimplementation of the new api.

Shouldn't it use the /dev/audioctl link instead to permit choosing which device we want as the default?



--- audioctl.c.orig    Fri May  1 13:29:01 2020
+++ audioctl.c    Fri May  1 13:29:30 2020
@@ -260,7 +260,7 @@
 int
 main(int argc, char **argv)
 {
-    char *path = "/dev/audioctl0";
+    char *path = "/dev/audioctl";
     int c;

     while ((c = getopt(argc, argv, "anf:q")) != -1) {


--- mixerctl.c.orig    Sat Apr 25 14:17:30 2020
+++ mixerctl.c    Fri May  1 13:20:33 2020
@@ -249,7 +249,7 @@
     int ndev;

     if ((file = getenv("MIXERDEVICE")) == 0 || *file == '\0')
-        file = "/dev/audioctl0";
+        file = "/dev/audioctl";

     while ((ch = getopt(argc, argv, "af:nqtvw")) != -1) {
         switch (ch) {


Regards,
Damien

Reply via email to