Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Macros | Functions
aw2-saa7146.c File Reference
#include <linux/init.h>
#include <linux/pci.h>
#include <linux/interrupt.h>
#include <linux/delay.h>
#include <asm/io.h>
#include <sound/core.h>
#include <sound/initval.h>
#include <sound/pcm.h>
#include <sound/pcm_params.h>
#include "saa7146.h"
#include "aw2-saa7146.h"
#include "aw2-tsl.c"

Go to the source code of this file.

Macros

#define AW2_SAA7146_M
 
#define WRITEREG(value, addr)   writel((value), chip->base_addr + (addr))
 
#define READREG(addr)   readl(chip->base_addr + (addr))
 

Functions

int snd_aw2_saa7146_free (struct snd_aw2_saa7146 *chip)
 
void snd_aw2_saa7146_setup (struct snd_aw2_saa7146 *chip, void __iomem *pci_base_addr)
 
void snd_aw2_saa7146_pcm_init_playback (struct snd_aw2_saa7146 *chip, int stream_number, unsigned long dma_addr, unsigned long period_size, unsigned long buffer_size)
 
void snd_aw2_saa7146_pcm_init_capture (struct snd_aw2_saa7146 *chip, int stream_number, unsigned long dma_addr, unsigned long period_size, unsigned long buffer_size)
 
void snd_aw2_saa7146_define_it_playback_callback (unsigned int stream_number, snd_aw2_saa7146_it_cb p_it_callback, void *p_callback_param)
 
void snd_aw2_saa7146_define_it_capture_callback (unsigned int stream_number, snd_aw2_saa7146_it_cb p_it_callback, void *p_callback_param)
 
void snd_aw2_saa7146_pcm_trigger_start_playback (struct snd_aw2_saa7146 *chip, int stream_number)
 
void snd_aw2_saa7146_pcm_trigger_stop_playback (struct snd_aw2_saa7146 *chip, int stream_number)
 
void snd_aw2_saa7146_pcm_trigger_start_capture (struct snd_aw2_saa7146 *chip, int stream_number)
 
void snd_aw2_saa7146_pcm_trigger_stop_capture (struct snd_aw2_saa7146 *chip, int stream_number)
 
irqreturn_t snd_aw2_saa7146_interrupt (int irq, void *dev_id)
 
unsigned int snd_aw2_saa7146_get_hw_ptr_playback (struct snd_aw2_saa7146 *chip, int stream_number, unsigned char *start_addr, unsigned int buffer_size)
 
unsigned int snd_aw2_saa7146_get_hw_ptr_capture (struct snd_aw2_saa7146 *chip, int stream_number, unsigned char *start_addr, unsigned int buffer_size)
 
void snd_aw2_saa7146_use_digital_input (struct snd_aw2_saa7146 *chip, int use_digital)
 
int snd_aw2_saa7146_is_using_digital_input (struct snd_aw2_saa7146 *chip)
 

Macro Definition Documentation

#define AW2_SAA7146_M

Definition at line 24 of file aw2-saa7146.c.

#define READREG (   addr)    readl(chip->base_addr + (addr))

Definition at line 42 of file aw2-saa7146.c.

#define WRITEREG (   value,
  addr 
)    writel((value), chip->base_addr + (addr))

Definition at line 41 of file aw2-saa7146.c.

Function Documentation

void snd_aw2_saa7146_define_it_capture_callback ( unsigned int  stream_number,
snd_aw2_saa7146_it_cb  p_it_callback,
void p_callback_param 
)

Definition at line 273 of file aw2-saa7146.c.

void snd_aw2_saa7146_define_it_playback_callback ( unsigned int  stream_number,
snd_aw2_saa7146_it_cb  p_it_callback,
void p_callback_param 
)

Definition at line 260 of file aw2-saa7146.c.

int snd_aw2_saa7146_free ( struct snd_aw2_saa7146 chip)

Definition at line 52 of file aw2-saa7146.c.

unsigned int snd_aw2_saa7146_get_hw_ptr_capture ( struct snd_aw2_saa7146 chip,
int  stream_number,
unsigned char start_addr,
unsigned int  buffer_size 
)

Definition at line 412 of file aw2-saa7146.c.

unsigned int snd_aw2_saa7146_get_hw_ptr_playback ( struct snd_aw2_saa7146 chip,
int  stream_number,
unsigned char start_addr,
unsigned int  buffer_size 
)

Definition at line 387 of file aw2-saa7146.c.

irqreturn_t snd_aw2_saa7146_interrupt ( int  irq,
void dev_id 
)

Definition at line 345 of file aw2-saa7146.c.

int snd_aw2_saa7146_is_using_digital_input ( struct snd_aw2_saa7146 chip)

Definition at line 444 of file aw2-saa7146.c.

void snd_aw2_saa7146_pcm_init_capture ( struct snd_aw2_saa7146 chip,
int  stream_number,
unsigned long  dma_addr,
unsigned long  period_size,
unsigned long  buffer_size 
)

Definition at line 213 of file aw2-saa7146.c.

void snd_aw2_saa7146_pcm_init_playback ( struct snd_aw2_saa7146 chip,
int  stream_number,
unsigned long  dma_addr,
unsigned long  period_size,
unsigned long  buffer_size 
)

Definition at line 154 of file aw2-saa7146.c.

void snd_aw2_saa7146_pcm_trigger_start_capture ( struct snd_aw2_saa7146 chip,
int  stream_number 
)

Definition at line 329 of file aw2-saa7146.c.

void snd_aw2_saa7146_pcm_trigger_start_playback ( struct snd_aw2_saa7146 chip,
int  stream_number 
)

Definition at line 286 of file aw2-saa7146.c.

void snd_aw2_saa7146_pcm_trigger_stop_capture ( struct snd_aw2_saa7146 chip,
int  stream_number 
)

Definition at line 338 of file aw2-saa7146.c.

void snd_aw2_saa7146_pcm_trigger_stop_playback ( struct snd_aw2_saa7146 chip,
int  stream_number 
)

Definition at line 309 of file aw2-saa7146.c.

void snd_aw2_saa7146_setup ( struct snd_aw2_saa7146 chip,
void __iomem pci_base_addr 
)

Definition at line 66 of file aw2-saa7146.c.

void snd_aw2_saa7146_use_digital_input ( struct snd_aw2_saa7146 chip,
int  use_digital 
)

Definition at line 429 of file aw2-saa7146.c.