MFP4 (109713):

Add OSS_GETVERSION ioctl for compatibility.

Some ports expect this and fail to compile on -current ATM.

Submitted by:	ryanb
This commit is contained in:
Alexander Leidinger 2006-11-26 11:55:48 +00:00
parent a5d7a1aed7
commit 4bc4dc4c4b
2 changed files with 8 additions and 0 deletions

View File

@ -830,6 +830,9 @@ mixer_ioctl(struct cdev *i_dev, u_long cmd, caddr_t arg, int mode, struct thread
case SNDCTL_DSP_SET_RECSRC:
ret = mixer_set_recroute(m, *arg_i);
break;
case OSS_GETVERSION:
*arg_i = SOUND_VERSION;
break;
default:
ret = ENXIO;
}

View File

@ -1608,6 +1608,11 @@ typedef unsigned short oss_peaks_t[MAX_PEAK_CHANNELS];
#define SNDCTL_DSP_GETOPEAKS _IOR('P', 44, oss_peaks_t)
#define SNDCTL_DSP_POLICY _IOW('P', 45, int) /* See the manual */
/*
* OSS_SYSIFO is obsolete. Use SNDCTL_SYSINFO insteads.
*/
#define OSS_GETVERSION _IOR ('M', 118, int)
/**
* @brief Argument for SNDCTL_SYSINFO ioctl.
*