Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Macros | Functions
pcm_oss.c File Reference
#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.

Macros

#define OSS_ALSAEMULVER   _SIOR ('M', 249, int)
 
#define AFMT_S32_LE   0x00001000
 
#define AFMT_S32_BE   0x00002000
 
#define AFMT_S24_LE   0x00008000
 
#define AFMT_S24_BE   0x00010000
 
#define AFMT_S24_PACKED   0x00040000
 
#define AFMT_FLOAT   0x00004000
 
#define AFMT_SPDIF_RAW   0x00020000
 
#define AFMT_AC3   0x00000400
 
#define AFMT_VORBIS   0x00000800
 
#define snd_pcm_oss_ioctl_compat   NULL
 
#define snd_pcm_oss_proc_init(pcm)
 
#define snd_pcm_oss_proc_done(pcm)
 

Functions

 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)
 

Macro Definition Documentation

#define AFMT_AC3   0x00000400

Definition at line 656 of file pcm_oss.c.

#define AFMT_FLOAT   0x00004000

Definition at line 652 of file pcm_oss.c.

#define AFMT_S24_BE   0x00010000

Definition at line 648 of file pcm_oss.c.

#define AFMT_S24_LE   0x00008000

Definition at line 647 of file pcm_oss.c.

#define AFMT_S24_PACKED   0x00040000

Definition at line 649 of file pcm_oss.c.

#define AFMT_S32_BE   0x00002000

Definition at line 646 of file pcm_oss.c.

#define AFMT_S32_LE   0x00001000

Definition at line 645 of file pcm_oss.c.

#define AFMT_SPDIF_RAW   0x00020000

Definition at line 653 of file pcm_oss.c.

#define AFMT_VORBIS   0x00000800

Definition at line 657 of file pcm_oss.c.

#define OSS_ALSAEMULVER   _SIOR ('M', 249, int)

Definition at line 46 of file pcm_oss.c.

#define snd_pcm_oss_ioctl_compat   NULL

Definition at line 2658 of file pcm_oss.c.

#define snd_pcm_oss_proc_done (   pcm)

Definition at line 2987 of file pcm_oss.c.

#define snd_pcm_oss_proc_init (   pcm)

Definition at line 2986 of file pcm_oss.c.

Function Documentation

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_LICENSE ( "GPL"  )
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."   
)
snd_pcm_sframes_t snd_pcm_oss_read3 ( struct snd_pcm_substream substream,
char ptr,
snd_pcm_uframes_t  frames,
int  in_kernel 
)

Definition at line 1207 of file pcm_oss.c.

snd_pcm_sframes_t snd_pcm_oss_readv3 ( struct snd_pcm_substream substream,
void **  bufs,
snd_pcm_uframes_t  frames,
int  in_kernel 
)

Definition at line 1294 of file pcm_oss.c.

snd_pcm_sframes_t snd_pcm_oss_write3 ( struct snd_pcm_substream substream,
const char ptr,
snd_pcm_uframes_t  frames,
int  in_kernel 
)

Definition at line 1170 of file pcm_oss.c.

snd_pcm_sframes_t snd_pcm_oss_writev3 ( struct snd_pcm_substream substream,
void **  bufs,
snd_pcm_uframes_t  frames,
int  in_kernel 
)

Definition at line 1256 of file pcm_oss.c.