patch-2.3.29 linux/drivers/sound/soundcard.c

Next file: linux/drivers/usb/Config.in
Previous file: linux/drivers/scsi/wd33c93.h
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v2.3.28/linux/drivers/sound/soundcard.c linux/drivers/sound/soundcard.c
@@ -152,7 +152,7 @@
 	return 0;
 }
 
-static int sound_proc_get_info(char *buffer, char **start, off_t offset, int length, int inout)
+static int sound_proc_get_info(char *buffer, char **start, off_t offset, int length)
 {
 	int len, i, drv;
         off_t pos = 0;
@@ -325,7 +325,7 @@
                 count = MIN(PROC_BLOCK_SIZE, nbytes);
 
                 start = NULL;
-		n = sound_proc_get_info(page, &start, *ppos, count, 0);
+		n = sound_proc_get_info(page, &start, *ppos, count);
 		if (n < count)
 			eof = 1;
                         
@@ -382,6 +382,7 @@
 	switch (dev & 0x0f) {
 	case SND_DEV_STATUS:
 		ret = sndstat_file_read(file, buf, count, ppos);
+		break;
 
 #ifdef CONFIG_AUDIO
 	case SND_DEV_DSP:

FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)