patch-1.3.71 linux/drivers/sound/sound_switch.c

Next file: linux/drivers/sound/soundvers.h
Previous file: linux/drivers/sound/sound_calls.h
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v1.3.70/linux/drivers/sound/sound_switch.c linux/drivers/sound/sound_switch.c
@@ -115,6 +115,18 @@
 	      "\n");
 #endif
 
+  put_status ("Kernel: ");
+  put_status (system_utsname.sysname);
+  put_status (" ");
+  put_status (system_utsname.nodename);
+  put_status (" ");
+  put_status (system_utsname.release);
+  put_status (" ");
+  put_status (system_utsname.version);
+  put_status (" ");
+  put_status (system_utsname.machine);
+  put_status ("\n");
+
   if (!put_status ("Config options: "))
     return;
   if (!put_status_int (SELECTED_SOUND_OPTIONS, 16))
@@ -139,7 +151,7 @@
 	  return;
       }
 
-  if (!put_status ("\n\nCard config: \n"))
+  if (!put_status ("\nCard config: \n"))
     return;
 
   for (i = 0; i < num_sound_cards; i++)
@@ -418,6 +430,8 @@
       break;
 
     case SND_DEV_CTL:
+      if ((dev & 0xf0) && ((dev & 0xf0) >> 4) >= num_mixers)
+	return -ENXIO;
       return 0;
       break;
 

FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen, slshen@lbl.gov with Sam's (original) version
of this