Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Macros | Functions
pcm.c File Reference
#include <asm/io.h>
#include <linux/delay.h>
#include <linux/slab.h>
#include <sound/core.h>
#include <asm/macio.h>
#include <linux/pci.h>
#include <linux/module.h>
#include "../soundbus.h"
#include "i2sbus.h"

Go to the source code of this file.

Macros

#define CHECK_RATE(rate)
 

Functions

irqreturn_t i2sbus_tx_intr (int irq, void *devid)
 
irqreturn_t i2sbus_rx_intr (int irq, void *devid)
 
int i2sbus_attach_codec (struct soundbus_dev *dev, struct snd_card *card, struct codec_info *ci, void *data)
 
void i2sbus_detach_codec (struct soundbus_dev *dev, void *data)
 

Macro Definition Documentation

#define CHECK_RATE (   rate)
Value:
do { if (rates & SNDRV_PCM_RATE_ ##rate) { \
int dummy; \
if (clock_and_divisors(sysclock_factor, \
bus_factor, rate, &dummy)) \
rates &= ~SNDRV_PCM_RATE_ ##rate; \
} } while (0)

Definition at line 65 of file pcm.c.

Function Documentation

int i2sbus_attach_codec ( struct soundbus_dev dev,
struct snd_card card,
struct codec_info ci,
void data 
)

Definition at line 881 of file pcm.c.

void i2sbus_detach_codec ( struct soundbus_dev dev,
void data 
)

Definition at line 1044 of file pcm.c.

irqreturn_t i2sbus_rx_intr ( int  irq,
void devid 
)

Definition at line 716 of file pcm.c.

irqreturn_t i2sbus_tx_intr ( int  irq,
void devid 
)

Definition at line 710 of file pcm.c.