patch-2.1.120 linux/drivers/sound/sound_core.c

Next file: linux/fs/Config.in
Previous file: linux/drivers/sound/sonicvibes.c
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v2.1.119/linux/drivers/sound/sound_core.c linux/drivers/sound/sound_core.c
@@ -168,7 +168,7 @@
  *	6	--		sndstat (obsolete)
  *	7	*16		unused
  *	8	--		alternate sequencer (see above)
- *	9	*16		unused
+ *	9	*16		raw synthesizer access
  *	10	*16		unused
  *	11	*16		unused
  *	12	*16		unused
@@ -212,6 +212,13 @@
 
 EXPORT_SYMBOL(register_sound_dsp);
 
+int register_sound_synth(struct file_operations *fops)
+{
+	return sound_insert_unit(&chains[9], fops, 9, 137);
+}
+
+EXPORT_SYMBOL(register_sound_synth);
+
 void unregister_sound_special(int unit)
 {
 	sound_remove_unit(&chains[unit&15], unit);
@@ -240,6 +247,12 @@
 
 EXPORT_SYMBOL(unregister_sound_dsp);
 
+void unregister_sound_synth(int unit)
+{
+	return sound_remove_unit(&chains[9], unit);
+}
+
+EXPORT_SYMBOL(unregister_sound_synth);
 
 /*
  *	Now our file operations

FUNET's LINUX-ADM group, [email protected]
TCL-scripts by Sam Shen, [email protected]