Open Sound System |
Do you have problems with sound/audio application development? Don't panic! Click here for help! |
void (*adrv_halt_io) (int dev);
The first paramater (dev
) is anways the audio engine number which is an index to the audio_engines table. The driver can use the audio_engines entry to find out some of the current parameters. In particular the devc, portc, portc_play and portc_record fields can be used to locate the driver defined structures for the audio engine.
Purpose of this entry point function is to stop the audio recording and playback operations currently active on the device. Typically this is done by calling the adrv_trigger method (of the driver itself) with the last parameter set to 0.
In addition to this function the driver should also define the adrv_halt_input and/or adrv_halt_output methods if it can stop recording and playback independently.
This function was known as adrv_reset in the early OSS versions.
Audio driver entry point should return 0 if the call was successful. Negative return value (-errno) means that an error has occurred. However some of the functions have void type and they don't return any value.
audio/oss_audio_core.c | Audio core functionality of OSS |
include/ossddk.h | Source file oss-current/kernel/framework/include/ossddk/ossddk.h |