Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Macros | Functions | Variables
bf5xx-ac97.c File Reference
#include <linux/init.h>
#include <linux/module.h>
#include <linux/platform_device.h>
#include <linux/interrupt.h>
#include <linux/wait.h>
#include <linux/delay.h>
#include <linux/slab.h>
#include <sound/core.h>
#include <sound/pcm.h>
#include <sound/ac97_codec.h>
#include <sound/initval.h>
#include <sound/soc.h>
#include <asm/irq.h>
#include <asm/portmux.h>
#include <linux/mutex.h>
#include <linux/gpio.h>
#include "bf5xx-sport.h"
#include "bf5xx-ac97.h"

Go to the source code of this file.

Macros

#define bf5xx_ac97_suspend   NULL
 
#define bf5xx_ac97_resume   NULL
 

Functions

void bf5xx_pcm_to_ac97 (struct ac97_frame *dst, const __u16 *src, size_t count, unsigned int chan_mask)
 
 EXPORT_SYMBOL (bf5xx_pcm_to_ac97)
 
void bf5xx_ac97_to_pcm (const struct ac97_frame *src, __u16 *dst, size_t count)
 
 EXPORT_SYMBOL (bf5xx_ac97_to_pcm)
 
void bf5xx_ac97_write (struct snd_ac97 *ac97, unsigned short reg, unsigned short val)
 
 EXPORT_SYMBOL_GPL (soc_ac97_ops)
 
 module_platform_driver (asoc_bfin_ac97_driver)
 
 MODULE_AUTHOR ("Roy Huang")
 
 MODULE_DESCRIPTION ("AC97 driver for ADI Blackfin")
 
 MODULE_LICENSE ("GPL")
 

Variables

struct snd_ac97_bus_ops soc_ac97_ops
 

Macro Definition Documentation

#define bf5xx_ac97_resume   NULL

Definition at line 260 of file bf5xx-ac97.c.

#define bf5xx_ac97_suspend   NULL

Definition at line 259 of file bf5xx-ac97.c.

Function Documentation

void bf5xx_ac97_to_pcm ( const struct ac97_frame src,
__u16 dst,
size_t  count 
)

Definition at line 83 of file bf5xx-ac97.c.

void bf5xx_ac97_write ( struct snd_ac97 ac97,
unsigned short  reg,
unsigned short  val 
)

Definition at line 146 of file bf5xx-ac97.c.

void bf5xx_pcm_to_ac97 ( struct ac97_frame dst,
const __u16 src,
size_t  count,
unsigned int  chan_mask 
)

Definition at line 46 of file bf5xx-ac97.c.

EXPORT_SYMBOL ( bf5xx_pcm_to_ac97  )
EXPORT_SYMBOL ( bf5xx_ac97_to_pcm  )
EXPORT_SYMBOL_GPL ( soc_ac97_ops  )
MODULE_AUTHOR ( "Roy Huang"  )
MODULE_DESCRIPTION ( "AC97 driver for ADI Blackfin"  )
MODULE_LICENSE ( "GPL"  )
module_platform_driver ( asoc_bfin_ac97_driver  )

Variable Documentation

struct snd_ac97_bus_ops soc_ac97_ops
Initial value:
= {
.read = bf5xx_ac97_read,
.write = bf5xx_ac97_write,
.warm_reset = bf5xx_ac97_warm_reset,
.reset = bf5xx_ac97_cold_reset,
}

Definition at line 201 of file bf5xx-ac97.c.