Linux Kernel
3.7.1
|
#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) |
#define IEC958_DEFAULT_CON |
#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
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.