Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Macros | Functions
pcm_plugin.c File Reference
#include <linux/slab.h>
#include <linux/time.h>
#include <linux/vmalloc.h>
#include <sound/core.h>
#include <sound/pcm.h>
#include <sound/pcm_params.h>
#include "pcm_plugin.h"

Go to the source code of this file.

Macros

#define snd_pcm_plug_first(plug)   ((plug)->runtime->oss.plugin_first)
 
#define snd_pcm_plug_last(plug)   ((plug)->runtime->oss.plugin_last)
 

Functions

int snd_pcm_plug_alloc (struct snd_pcm_substream *plug, snd_pcm_uframes_t frames)
 
snd_pcm_sframes_t snd_pcm_plugin_client_channels (struct snd_pcm_plugin *plugin, snd_pcm_uframes_t frames, struct snd_pcm_plugin_channel **channels)
 
int snd_pcm_plugin_build (struct snd_pcm_substream *plug, const char *name, struct snd_pcm_plugin_format *src_format, struct snd_pcm_plugin_format *dst_format, size_t extra, struct snd_pcm_plugin **ret)
 
int snd_pcm_plugin_free (struct snd_pcm_plugin *plugin)
 
snd_pcm_sframes_t snd_pcm_plug_client_size (struct snd_pcm_substream *plug, snd_pcm_uframes_t drv_frames)
 
snd_pcm_sframes_t snd_pcm_plug_slave_size (struct snd_pcm_substream *plug, snd_pcm_uframes_t clt_frames)
 
snd_pcm_format_t snd_pcm_plug_slave_format (snd_pcm_format_t format, struct snd_mask *format_mask)
 
int snd_pcm_plug_format_plugins (struct snd_pcm_substream *plug, struct snd_pcm_hw_params *params, struct snd_pcm_hw_params *slave_params)
 
snd_pcm_sframes_t snd_pcm_plug_client_channels_buf (struct snd_pcm_substream *plug, char *buf, snd_pcm_uframes_t count, struct snd_pcm_plugin_channel **channels)
 
snd_pcm_sframes_t snd_pcm_plug_write_transfer (struct snd_pcm_substream *plug, struct snd_pcm_plugin_channel *src_channels, snd_pcm_uframes_t size)
 
snd_pcm_sframes_t snd_pcm_plug_read_transfer (struct snd_pcm_substream *plug, struct snd_pcm_plugin_channel *dst_channels_final, snd_pcm_uframes_t size)
 
int snd_pcm_area_silence (const struct snd_pcm_channel_area *dst_area, size_t dst_offset, size_t samples, snd_pcm_format_t format)
 
int snd_pcm_area_copy (const struct snd_pcm_channel_area *src_area, size_t src_offset, const struct snd_pcm_channel_area *dst_area, size_t dst_offset, size_t samples, snd_pcm_format_t format)
 

Macro Definition Documentation

#define snd_pcm_plug_first (   plug)    ((plug)->runtime->oss.plugin_first)

Definition at line 35 of file pcm_plugin.c.

#define snd_pcm_plug_last (   plug)    ((plug)->runtime->oss.plugin_last)

Definition at line 36 of file pcm_plugin.c.

Function Documentation

int snd_pcm_area_copy ( const struct snd_pcm_channel_area *  src_area,
size_t  src_offset,
const struct snd_pcm_channel_area *  dst_area,
size_t  dst_offset,
size_t  samples,
snd_pcm_format_t  format 
)

Definition at line 693 of file pcm_plugin.c.

int snd_pcm_area_silence ( const struct snd_pcm_channel_area *  dst_area,
size_t  dst_offset,
size_t  samples,
snd_pcm_format_t  format 
)

Definition at line 647 of file pcm_plugin.c.

int snd_pcm_plug_alloc ( struct snd_pcm_substream plug,
snd_pcm_uframes_t  frames 
)

Definition at line 104 of file pcm_plugin.c.

snd_pcm_sframes_t snd_pcm_plug_client_channels_buf ( struct snd_pcm_substream plug,
char buf,
snd_pcm_uframes_t  count,
struct snd_pcm_plugin_channel **  channels 
)

Definition at line 545 of file pcm_plugin.c.

snd_pcm_sframes_t snd_pcm_plug_client_size ( struct snd_pcm_substream plug,
snd_pcm_uframes_t  drv_frames 
)

Definition at line 199 of file pcm_plugin.c.

int snd_pcm_plug_format_plugins ( struct snd_pcm_substream plug,
struct snd_pcm_hw_params params,
struct snd_pcm_hw_params slave_params 
)

Definition at line 359 of file pcm_plugin.c.

snd_pcm_sframes_t snd_pcm_plug_read_transfer ( struct snd_pcm_substream plug,
struct snd_pcm_plugin_channel *  dst_channels_final,
snd_pcm_uframes_t  size 
)

Definition at line 616 of file pcm_plugin.c.

snd_pcm_format_t snd_pcm_plug_slave_format ( snd_pcm_format_t  format,
struct snd_mask format_mask 
)

Definition at line 309 of file pcm_plugin.c.

snd_pcm_sframes_t snd_pcm_plug_slave_size ( struct snd_pcm_substream plug,
snd_pcm_uframes_t  clt_frames 
)

Definition at line 229 of file pcm_plugin.c.

snd_pcm_sframes_t snd_pcm_plug_write_transfer ( struct snd_pcm_substream plug,
struct snd_pcm_plugin_channel *  src_channels,
snd_pcm_uframes_t  size 
)

Definition at line 584 of file pcm_plugin.c.

int snd_pcm_plugin_build ( struct snd_pcm_substream plug,
const char name,
struct snd_pcm_plugin_format *  src_format,
struct snd_pcm_plugin_format *  dst_format,
size_t  extra,
struct snd_pcm_plugin **  ret 
)

Definition at line 146 of file pcm_plugin.c.

snd_pcm_sframes_t snd_pcm_plugin_client_channels ( struct snd_pcm_plugin *  plugin,
snd_pcm_uframes_t  frames,
struct snd_pcm_plugin_channel **  channels 
)

Definition at line 138 of file pcm_plugin.c.

int snd_pcm_plugin_free ( struct snd_pcm_plugin *  plugin)

Definition at line 187 of file pcm_plugin.c.