Introduce two /dev/audio compat alias names for flushing and draining
the pcaudio device. Now, XBoing sounds much better...
This commit is contained in:
parent
252afb2d7b
commit
80ad4711dc
@ -25,7 +25,7 @@
|
||||
* (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
|
||||
* THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||
*
|
||||
* $Id: pcaudioio.h,v 1.4 1995/05/30 08:00:44 rgrimes Exp $
|
||||
* $Id: pcaudioio.h,v 1.5 1996/01/30 22:54:42 mpp Exp $
|
||||
*/
|
||||
|
||||
#ifndef _PCAUDIOIO_H_
|
||||
@ -73,4 +73,8 @@ typedef struct audio_info {
|
||||
#define AUDIO_DRAIN _IO('A', 3)
|
||||
#define AUDIO_FLUSH _IO('A', 4)
|
||||
|
||||
/* compatibility to /dev/audio */
|
||||
#define AUDIO_COMPAT_DRAIN _IO('P', 1)
|
||||
#define AUDIO_COMPAT_FLUSH _IO('P', 0)
|
||||
|
||||
#endif /*!_PCAUDIOIO_H*/
|
||||
|
@ -25,7 +25,7 @@
|
||||
* (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
|
||||
* THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||
*
|
||||
* $Id: pcaudio.c,v 1.27 1996/03/28 14:28:47 scrappy Exp $
|
||||
* $Id: pcaudio.c,v 1.28 1996/06/09 14:23:13 joerg Exp $
|
||||
*/
|
||||
|
||||
#include "pca.h"
|
||||
@ -444,9 +444,11 @@ pcaioctl(dev_t dev, int cmd, caddr_t data, int flag, struct proc *p)
|
||||
return 0;
|
||||
|
||||
case AUDIO_DRAIN:
|
||||
case AUDIO_COMPAT_DRAIN:
|
||||
return pca_wait();
|
||||
|
||||
case AUDIO_FLUSH:
|
||||
case AUDIO_COMPAT_FLUSH:
|
||||
pca_stop();
|
||||
return 0;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user