Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Macros | Typedefs | Functions
ctatc.c File Reference
#include "ctatc.h"
#include "ctpcm.h"
#include "ctmixer.h"
#include "ctsrc.h"
#include "ctamixer.h"
#include "ctdaio.h"
#include "cttimer.h"
#include <linux/delay.h>
#include <linux/slab.h>
#include <sound/pcm.h>
#include <sound/control.h>
#include <sound/asoundef.h>

Go to the source code of this file.

Data Structures

struct  src_node_conf_t
 

Macros

#define MONO_SUM_SCALE   0x19a8 /* 2^(-0.5) in 14-bit floating format */
 
#define MAX_MULTI_CHN   8
 
#define IEC958_DEFAULT_CON
 

Typedefs

typedef int(* create_t )(void *, void **)
 
typedef int(* destroy_t )(void *)
 

Functions

int __devinit ct_atc_create_alsa_devs (struct ct_atc *atc)
 
int __devinit ct_atc_create (struct snd_card *card, struct pci_dev *pci, unsigned int rsr, unsigned int msr, int chip_type, unsigned int ssid, struct ct_atc **ratc)
 

Macro Definition Documentation

#define IEC958_DEFAULT_CON
Value:

Definition at line 34 of file ctatc.c.

#define MAX_MULTI_CHN   8

Definition at line 32 of file ctatc.c.

#define MONO_SUM_SCALE   0x19a8 /* 2^(-0.5) in 14-bit floating format */

Copyright (C) 2008, Creative Technology Ltd. All Rights Reserved.

This source file is released under GPL v2 license (no other versions). See the COPYING file included in the main directory of this source distribution for the license terms and conditions.

ctatc.c

This file contains the implementation of the device resource management object.

Liu Chun Mar 28 2008

Definition at line 31 of file ctatc.c.

Typedef Documentation

typedef int(* create_t)(void *, void **)

Definition at line 109 of file ctatc.c.

typedef int(* destroy_t)(void *)

Definition at line 110 of file ctatc.c.

Function Documentation

int __devinit ct_atc_create ( struct snd_card card,
struct pci_dev pci,
unsigned int  rsr,
unsigned int  msr,
int  chip_type,
unsigned int  ssid,
struct ct_atc **  ratc 
)

ct_atc_create - create and initialize a hardware manager : corresponding alsa card object : corresponding kernel pci device object : return created object address in it

Creates and initializes a hardware manager.

Creates kmallocated ct_atc structure. Initializes hardware. Returns 0 if succeeds, or negative error code if fails.

Definition at line 1668 of file ctatc.c.

int __devinit ct_atc_create_alsa_devs ( struct ct_atc atc)

Definition at line 1299 of file ctatc.c.

Variable Documentation

int(* create)(void *hw, void **rmgr)

Definition at line 83 of file ctatc.c.

int(* destroy)(void *mgr)

Definition at line 85 of file ctatc.c.

const char* public_name

Definition at line 86 of file ctatc.c.