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

Go to the source code of this file.

Data Structures

struct  mulaw_priv
 

Macros

#define SIGN_BIT   (0x80) /* Sign bit for a u-law byte. */
 
#define QUANT_MASK   (0xf) /* Quantization field mask. */
 
#define NSEGS   (8) /* Number of u-law segments. */
 
#define SEG_SHIFT   (4) /* Left shift for segment number. */
 
#define SEG_MASK   (0x70) /* Segment field mask. */
 
#define BIAS   (0x84) /* Bias for linear code. */
 

Typedefs

typedef void(* mulaw_f )(struct snd_pcm_plugin *plugin, const struct snd_pcm_plugin_channel *src_channels, struct snd_pcm_plugin_channel *dst_channels, snd_pcm_uframes_t frames)
 

Functions

int snd_pcm_plugin_build_mulaw (struct snd_pcm_substream *plug, struct snd_pcm_plugin_format *src_format, struct snd_pcm_plugin_format *dst_format, struct snd_pcm_plugin **r_plugin)
 

Macro Definition Documentation

#define BIAS   (0x84) /* Bias for linear code. */

Definition at line 52 of file mulaw.c.

#define NSEGS   (8) /* Number of u-law segments. */

Definition at line 31 of file mulaw.c.

#define QUANT_MASK   (0xf) /* Quantization field mask. */

Definition at line 30 of file mulaw.c.

#define SEG_MASK   (0x70) /* Segment field mask. */

Definition at line 33 of file mulaw.c.

#define SEG_SHIFT   (4) /* Left shift for segment number. */

Definition at line 32 of file mulaw.c.

#define SIGN_BIT   (0x80) /* Sign bit for a u-law byte. */

Definition at line 29 of file mulaw.c.

Typedef Documentation

typedef void(* mulaw_f)(struct snd_pcm_plugin *plugin, const struct snd_pcm_plugin_channel *src_channels, struct snd_pcm_plugin_channel *dst_channels, snd_pcm_uframes_t frames)

Definition at line 141 of file mulaw.c.

Function Documentation

int snd_pcm_plugin_build_mulaw ( struct snd_pcm_substream plug,
struct snd_pcm_plugin_format *  src_format,
struct snd_pcm_plugin_format *  dst_format,
struct snd_pcm_plugin **  r_plugin 
)

Definition at line 298 of file mulaw.c.