#include <linux/init.h>
#include <linux/slab.h>
#include <linux/time.h>
#include <linux/vmalloc.h>
#include <linux/module.h>
#include <linux/math64.h>
#include <linux/string.h>
#include <sound/core.h>
#include <sound/minors.h>
#include <sound/pcm.h>
#include <sound/pcm_params.h>
#include "pcm_plugin.h"
#include <sound/info.h>
#include <linux/soundcard.h>
#include <sound/initval.h>
#include <sound/mixer_oss.h>
Go to the source code of this file.
|
| MODULE_AUTHOR ("Jaroslav Kysela <[email protected]>, Abramo Bagnara <[email protected]>") |
|
| MODULE_DESCRIPTION ("PCM OSS emulation for ALSA.") |
|
| MODULE_LICENSE ("GPL") |
|
| module_param_array (dsp_map, int, NULL, 0444) |
|
| MODULE_PARM_DESC (dsp_map,"PCM device number assigned to 1st OSS device.") |
|
| module_param_array (adsp_map, int, NULL, 0444) |
|
| MODULE_PARM_DESC (adsp_map,"PCM device number assigned to 2nd OSS device.") |
|
| module_param (nonblock_open, bool, 0644) |
|
| MODULE_PARM_DESC (nonblock_open,"Don't block opening busy PCM devices.") |
|
| MODULE_ALIAS_SNDRV_MINOR (SNDRV_MINOR_OSS_PCM) |
|
| MODULE_ALIAS_SNDRV_MINOR (SNDRV_MINOR_OSS_PCM1) |
|
snd_pcm_sframes_t | snd_pcm_oss_write3 (struct snd_pcm_substream *substream, const char *ptr, snd_pcm_uframes_t frames, int in_kernel) |
|
snd_pcm_sframes_t | snd_pcm_oss_read3 (struct snd_pcm_substream *substream, char *ptr, snd_pcm_uframes_t frames, int in_kernel) |
|
snd_pcm_sframes_t | snd_pcm_oss_writev3 (struct snd_pcm_substream *substream, void **bufs, snd_pcm_uframes_t frames, int in_kernel) |
|
snd_pcm_sframes_t | snd_pcm_oss_readv3 (struct snd_pcm_substream *substream, void **bufs, snd_pcm_uframes_t frames, int in_kernel) |
|
#define AFMT_AC3 0x00000400 |
#define AFMT_FLOAT 0x00004000 |
#define AFMT_S24_BE 0x00010000 |
#define AFMT_S24_LE 0x00008000 |
#define AFMT_S24_PACKED 0x00040000 |
#define AFMT_S32_BE 0x00002000 |
#define AFMT_S32_LE 0x00001000 |
#define AFMT_SPDIF_RAW 0x00020000 |
#define AFMT_VORBIS 0x00000800 |
#define OSS_ALSAEMULVER _SIOR ('M', 249, int) |
#define snd_pcm_oss_ioctl_compat NULL |
#define snd_pcm_oss_proc_done |
( |
|
pcm | ) |
|
#define snd_pcm_oss_proc_init |
( |
|
pcm | ) |
|
MODULE_ALIAS_SNDRV_MINOR |
( |
SNDRV_MINOR_OSS_PCM |
| ) |
|
MODULE_ALIAS_SNDRV_MINOR |
( |
SNDRV_MINOR_OSS_PCM1 |
| ) |
|
MODULE_AUTHOR |
( |
"Jaroslav Kysela <[email protected]> |
, |
|
|
Abramo Bagnara< abramo @alsa-project.org >" |
|
|
) |
| |
MODULE_DESCRIPTION |
( |
"PCM OSS emulation for ALSA." |
| ) |
|
module_param |
( |
nonblock_open |
, |
|
|
bool |
, |
|
|
0644 |
|
|
) |
| |
module_param_array |
( |
dsp_map |
, |
|
|
int |
, |
|
|
NULL |
, |
|
|
0444 |
|
|
) |
| |
module_param_array |
( |
adsp_map |
, |
|
|
int |
, |
|
|
NULL |
, |
|
|
0444 |
|
|
) |
| |
MODULE_PARM_DESC |
( |
dsp_map |
, |
|
|
"PCM device number assigned to 1st OSS device." |
|
|
) |
| |
MODULE_PARM_DESC |
( |
adsp_map |
, |
|
|
"PCM device number assigned to 2nd OSS device." |
|
|
) |
| |
MODULE_PARM_DESC |
( |
nonblock_open |
, |
|
|
"Don't block opening busy PCM devices." |
|
|
) |
| |