SOUND_PCM_WRITE_CHANNELS -> SNDCTL_DSP_CHANNELS, to match current Linux code.
This commit is contained in:
parent
de69173e77
commit
41bbc3f5b6
@ -1,4 +1,4 @@
|
||||
/* $NetBSD: linux_audio.c,v 1.3 1997/03/19 05:12:13 mycroft Exp $ */
|
||||
/* $NetBSD: linux_audio.c,v 1.4 1997/03/20 04:21:31 mycroft Exp $ */
|
||||
#include <sys/param.h>
|
||||
#include <sys/proc.h>
|
||||
#include <sys/systm.h>
|
||||
@ -88,7 +88,7 @@ linux_ioctl_audio(p, uap, retval)
|
||||
if (error)
|
||||
return error;
|
||||
break;
|
||||
case LINUX_SOUND_PCM_WRITE_CHANNELS:
|
||||
case LINUX_SNDCTL_DSP_CHANNELS:
|
||||
AUDIO_INITINFO(&tmpinfo);
|
||||
error = copyin(SCARG(uap, data), &idat, sizeof idat);
|
||||
if (error)
|
||||
|
@ -17,7 +17,7 @@
|
||||
#define LINUX_SNDCTL_DSP_STEREO _LINUX_IOWR('P', 3, int)
|
||||
#define LINUX_SNDCTL_DSP_GETBLKSIZE _LINUX_IOWR('P', 4, int)
|
||||
#define LINUX_SNDCTL_DSP_SETFMT _LINUX_IOWR('P', 5, int)
|
||||
#define LINUX_SOUND_PCM_WRITE_CHANNELS _LINUX_IOWR('P', 6, int)
|
||||
#define LINUX_SNDCTL_DSP_CHANNELS _LINUX_IOWR('P', 6, int)
|
||||
#define LINUX_SNDCTL_DSP_POST _LINUX_IO('P', 8)
|
||||
#define LINUX_SNDCTL_DSP_SETFRAGMENT _LINUX_IOWR('P', 10, int)
|
||||
#define LINUX_SNDCTL_DSP_GETFMTS _LINUX_IOR('P', 11, int)
|
||||
|
@ -1,4 +1,4 @@
|
||||
/* $NetBSD: ossaudio.c,v 1.3 1997/03/19 05:12:13 mycroft Exp $ */
|
||||
/* $NetBSD: ossaudio.c,v 1.4 1997/03/20 04:21:31 mycroft Exp $ */
|
||||
#include <sys/param.h>
|
||||
#include <sys/proc.h>
|
||||
#include <sys/systm.h>
|
||||
@ -88,7 +88,7 @@ linux_ioctl_audio(p, uap, retval)
|
||||
if (error)
|
||||
return error;
|
||||
break;
|
||||
case LINUX_SOUND_PCM_WRITE_CHANNELS:
|
||||
case LINUX_SNDCTL_DSP_CHANNELS:
|
||||
AUDIO_INITINFO(&tmpinfo);
|
||||
error = copyin(SCARG(uap, data), &idat, sizeof idat);
|
||||
if (error)
|
||||
|
@ -17,7 +17,7 @@
|
||||
#define LINUX_SNDCTL_DSP_STEREO _LINUX_IOWR('P', 3, int)
|
||||
#define LINUX_SNDCTL_DSP_GETBLKSIZE _LINUX_IOWR('P', 4, int)
|
||||
#define LINUX_SNDCTL_DSP_SETFMT _LINUX_IOWR('P', 5, int)
|
||||
#define LINUX_SOUND_PCM_WRITE_CHANNELS _LINUX_IOWR('P', 6, int)
|
||||
#define LINUX_SNDCTL_DSP_CHANNELS _LINUX_IOWR('P', 6, int)
|
||||
#define LINUX_SNDCTL_DSP_POST _LINUX_IO('P', 8)
|
||||
#define LINUX_SNDCTL_DSP_SETFRAGMENT _LINUX_IOWR('P', 10, int)
|
||||
#define LINUX_SNDCTL_DSP_GETFMTS _LINUX_IOR('P', 11, int)
|
||||
|
Loading…
Reference in New Issue
Block a user