Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Macros | Functions | Variables
pcm_native.c File Reference
#include <linux/mm.h>
#include <linux/module.h>
#include <linux/file.h>
#include <linux/slab.h>
#include <linux/time.h>
#include <linux/pm_qos.h>
#include <linux/uio.h>
#include <linux/dma-mapping.h>
#include <sound/core.h>
#include <sound/control.h>
#include <sound/info.h>
#include <sound/pcm.h>
#include <sound/pcm_params.h>
#include <sound/timer.h>
#include <sound/minors.h>
#include <asm/io.h>

Go to the source code of this file.

Data Structures

struct  snd_pcm_hw_params_old
 
struct  action_ops
 

Macros

#define snd_pcm_ioctl_compat   NULL
 

Functions

 DEFINE_RWLOCK (snd_pcm_link_rwlock)
 
 EXPORT_SYMBOL (snd_pcm_link_rwlock)
 
int snd_pcm_info (struct snd_pcm_substream *substream, struct snd_pcm_info *info)
 
int snd_pcm_info_user (struct snd_pcm_substream *substream, struct snd_pcm_info __user *_info)
 
int snd_pcm_hw_refine (struct snd_pcm_substream *substream, struct snd_pcm_hw_params *params)
 
 EXPORT_SYMBOL (snd_pcm_hw_refine)
 
int snd_pcm_status (struct snd_pcm_substream *substream, struct snd_pcm_status *status)
 
int snd_pcm_start (struct snd_pcm_substream *substream)
 
int snd_pcm_stop (struct snd_pcm_substream *substream, snd_pcm_state_t state)
 
 EXPORT_SYMBOL (snd_pcm_stop)
 
int snd_pcm_drain_done (struct snd_pcm_substream *substream)
 
int snd_pcm_hw_constraints_init (struct snd_pcm_substream *substream)
 
int snd_pcm_hw_constraints_complete (struct snd_pcm_substream *substream)
 
void snd_pcm_release_substream (struct snd_pcm_substream *substream)
 
 EXPORT_SYMBOL (snd_pcm_release_substream)
 
int snd_pcm_open_substream (struct snd_pcm *pcm, int stream, struct file *file, struct snd_pcm_substream **rsubstream)
 
 EXPORT_SYMBOL (snd_pcm_open_substream)
 
int snd_pcm_kernel_ioctl (struct snd_pcm_substream *substream, unsigned int cmd, void *arg)
 
 EXPORT_SYMBOL (snd_pcm_kernel_ioctl)
 
int snd_pcm_lib_default_mmap (struct snd_pcm_substream *substream, struct vm_area_struct *area)
 
 EXPORT_SYMBOL_GPL (snd_pcm_lib_default_mmap)
 
int snd_pcm_mmap_data (struct snd_pcm_substream *substream, struct file *file, struct vm_area_struct *area)
 
 EXPORT_SYMBOL (snd_pcm_mmap_data)
 

Variables

struct snd_pcm_hw_constraint_list snd_pcm_known_rates
 
struct file_operations snd_pcm_f_ops [2]
 

Macro Definition Documentation

#define snd_pcm_ioctl_compat   NULL

Definition at line 3335 of file pcm_native.c.

Function Documentation

DEFINE_RWLOCK ( snd_pcm_link_rwlock  )
EXPORT_SYMBOL ( snd_pcm_link_rwlock  )
EXPORT_SYMBOL ( snd_pcm_hw_refine  )
EXPORT_SYMBOL ( snd_pcm_stop  )
EXPORT_SYMBOL ( snd_pcm_release_substream  )
EXPORT_SYMBOL ( snd_pcm_open_substream  )
EXPORT_SYMBOL ( snd_pcm_kernel_ioctl  )
EXPORT_SYMBOL ( snd_pcm_mmap_data  )
EXPORT_SYMBOL_GPL ( snd_pcm_lib_default_mmap  )
int snd_pcm_drain_done ( struct snd_pcm_substream substream)

snd_pcm_drain_done - stop the DMA only when the given stream is playback : the PCM substream

After stopping, the state is changed to SETUP. Unlike snd_pcm_stop(), this affects only the given stream.

Definition at line 967 of file pcm_native.c.

int snd_pcm_hw_constraints_complete ( struct snd_pcm_substream substream)

Definition at line 1935 of file pcm_native.c.

int snd_pcm_hw_constraints_init ( struct snd_pcm_substream substream)

Definition at line 1811 of file pcm_native.c.

int snd_pcm_hw_refine ( struct snd_pcm_substream substream,
struct snd_pcm_hw_params params 
)

Definition at line 164 of file pcm_native.c.

Definition at line 96 of file pcm_native.c.

int snd_pcm_info_user ( struct snd_pcm_substream substream,
struct snd_pcm_info __user _info 
)

Definition at line 123 of file pcm_native.c.

int snd_pcm_kernel_ioctl ( struct snd_pcm_substream substream,
unsigned int  cmd,
void arg 
)

Definition at line 2797 of file pcm_native.c.

int snd_pcm_lib_default_mmap ( struct snd_pcm_substream substream,
struct vm_area_struct area 
)

Definition at line 3193 of file pcm_native.c.

int snd_pcm_mmap_data ( struct snd_pcm_substream substream,
struct file file,
struct vm_area_struct area 
)

Definition at line 3243 of file pcm_native.c.

int snd_pcm_open_substream ( struct snd_pcm pcm,
int  stream,
struct file file,
struct snd_pcm_substream **  rsubstream 
)

Definition at line 2047 of file pcm_native.c.

void snd_pcm_release_substream ( struct snd_pcm_substream substream)

Definition at line 2023 of file pcm_native.c.

int snd_pcm_start ( struct snd_pcm_substream substream)

snd_pcm_start - start all linked streams : the PCM substream instance

Definition at line 900 of file pcm_native.c.

Definition at line 590 of file pcm_native.c.

int snd_pcm_stop ( struct snd_pcm_substream substream,
snd_pcm_state_t  state 
)

snd_pcm_stop - try to stop all running streams in the substream group : the PCM substream instance : PCM state after stopping the stream

The state of each stream is then changed to the given state unconditionally.

Definition at line 953 of file pcm_native.c.

Variable Documentation

struct file_operations snd_pcm_f_ops[2]
Initial value:
= {
{
.owner = THIS_MODULE,
.write = snd_pcm_write,
.aio_write = snd_pcm_aio_write,
.open = snd_pcm_playback_open,
.release = snd_pcm_release,
.llseek = no_llseek,
.poll = snd_pcm_playback_poll,
.unlocked_ioctl = snd_pcm_playback_ioctl,
.compat_ioctl = snd_pcm_ioctl_compat,
.mmap = snd_pcm_mmap,
.fasync = snd_pcm_fasync,
.get_unmapped_area = snd_pcm_get_unmapped_area,
},
{
.owner = THIS_MODULE,
.read = snd_pcm_read,
.aio_read = snd_pcm_aio_read,
.open = snd_pcm_capture_open,
.release = snd_pcm_release,
.llseek = no_llseek,
.poll = snd_pcm_capture_poll,
.unlocked_ioctl = snd_pcm_capture_ioctl,
.compat_ioctl = snd_pcm_ioctl_compat,
.mmap = snd_pcm_mmap,
.fasync = snd_pcm_fasync,
.get_unmapped_area = snd_pcm_get_unmapped_area,
}
}

Definition at line 3474 of file pcm_native.c.

struct snd_pcm_hw_constraint_list snd_pcm_known_rates
Initial value:
= {
.count = ARRAY_SIZE(rates),
.list = rates,
}

Definition at line 1784 of file pcm_native.c.