Main Page | Modules | Class List | File List | Class Members | File Members | Related Pages

Linux DDE Soundcore
[Linux DDE Libraries]

Linux soundcore emulation. More...


Modules

group Linux DDE Soundcore Helpers
 Linux soundcore emulation helpers.


Functions

int register_sound_dsp (struct file_operations *fops, int dev)
 Register a DSP Device.

int register_sound_mixer (struct file_operations *fops, int dev)
 Register a Mixer Device.

int register_sound_midi (struct file_operations *fops, int dev)
 Register a MIDI Device.

int register_sound_special (struct file_operations *fops, int unit)
 Register a Special Sound Node.

int register_sound_synth (struct file_operations *fops, int dev)
 Register a synth Device.

void unregister_sound_dsp (int unit)
 Unregister a DSP Device.

void unregister_sound_mixer (int unit)
 Unregister a Mixer Device.

void unregister_sound_midi (int unit)
 Unregister a MIDI Device.

void unregister_sound_special (int unit)
 Unregister a Special Node.

void unregister_sound_synth (int unit)
 Unregister a synth Device.

file_operations * soundcore_req_fops (int type, int num)
 Query for device operations structure.


Detailed Description

Linux soundcore emulation.


Function Documentation

int register_sound_dsp struct file_operations *  fops,
int  dev
 

Register a DSP Device.

Parameters:
fops interface
dev unit number
Returns:
allocated number or negative error value
This function allocates both the audio and dsp device entries together and will always allocate them as a matching pair - eg dsp3/audio3 (Linux)

Definition at line 175 of file soundcore.c.

References DEBUG_MSG, dsp, and sound_insert_unit().

int register_sound_midi struct file_operations *  fops,
int  dev
 

Register a MIDI Device.

Parameters:
fops interface
dev unit number
Returns:
allocated number or negative error value

Definition at line 231 of file soundcore.c.

References DEBUG_MSG, and sound_insert_unit().

int register_sound_mixer struct file_operations *  fops,
int  dev
 

Register a Mixer Device.

Parameters:
fops interface
dev unit number
Returns:
allocated number or negative error value
Unit number has to be -1 for find first free or we panic.

Definition at line 204 of file soundcore.c.

References DEBUG_MSG, and sound_insert_unit().

int register_sound_special struct file_operations *  fops,
int  unit
 

Register a Special Sound Node.

Parameters:
fops interface
unit unit number
Returns:
allocated number or negative error value
For now no special nodes are supported. Only OSS/Free (old ISA) and dmasound use this feature.

Definition at line 264 of file soundcore.c.

References DEBUG_MSG.

int register_sound_synth struct file_operations *  fops,
int  dev
 

Register a synth Device.

Parameters:
fops interface
dev unit number
Returns:
allocated number or negative error value
For now no raw synthesizer nodes are supported. Only wavefront.c uses this feature.

Definition at line 336 of file soundcore.c.

References DEBUG_MSG.

struct file_operations* soundcore_req_fops int  type,
int  num
 

Query for device operations structure.

Parameters:
type desired device type
num desired device number
Returns:
fops pointer; NULL on error

Definition at line 427 of file soundcore.c.

References __look_for_unit(), and dsp.

Referenced by snd_open_dev().

void unregister_sound_dsp int  unit  ) 
 

Unregister a DSP Device.

Parameters:
unit unit number

Definition at line 349 of file soundcore.c.

References DEBUG_MSG, dsp, and sound_remove_unit().

void unregister_sound_midi int  unit  ) 
 

Unregister a MIDI Device.

Parameters:
unit unit number

Definition at line 377 of file soundcore.c.

References DEBUG_MSG, and sound_remove_unit().

void unregister_sound_mixer int  unit  ) 
 

Unregister a Mixer Device.

Parameters:
unit unit number

Definition at line 363 of file soundcore.c.

References DEBUG_MSG, and sound_remove_unit().

void unregister_sound_special int  unit  ) 
 

Unregister a Special Node.

Parameters:
unit unit number
For now no special nodes are supported. Only OSS/Free (old ISA) and dmasound use this feature.

Definition at line 396 of file soundcore.c.

References DEBUG_MSG.

void unregister_sound_synth int  unit  ) 
 

Unregister a synth Device.

Parameters:
unit unit number
For now no raw synthesizer nodes are supported. Only wavefront.c uses this feature.

Definition at line 411 of file soundcore.c.

References DEBUG_MSG.


Linux DDE, written by Christian Helmuth  © 2003 Technische Universitaet Dresden