patch-2.0.4 linux/drivers/sound/pas2_pcm.c

Next file: linux/drivers/sound/sb.h
Previous file: linux/drivers/sound/lowlevel/aci.readme
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v2.0.3/linux/drivers/sound/pas2_pcm.c linux/drivers/sound/pas2_pcm.c
@@ -41,6 +41,9 @@
   int             foo, tmp;
   unsigned long   flags;
 
+  if (arg == 0)
+     return pcm_speed;
+
   if (arg > 44100)
     arg = 44100;
   if (arg < 5000)
@@ -127,6 +130,9 @@
 int
 pcm_set_bits (int arg)
 {
+  if (arg == 0)
+     return pcm_bits;
+
   if ((arg & pcm_bitsok) != arg)
     return pcm_bits;
 

FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen, slshen@lbl.gov