Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Macros | Functions
awacs.c File Reference
#include <asm/io.h>
#include <asm/nvram.h>
#include <linux/init.h>
#include <linux/delay.h>
#include <linux/slab.h>
#include <sound/core.h>
#include "pmac.h"

Go to the source code of this file.

Macros

#define screamer_recalibrate(chip)   /* NOP */
 
#define AWACS_VOLUME(xname, xreg, xshift, xinverted)
 
#define AWACS_SWITCH(xname, xreg, xshift, xinvert)
 
#define IS_PM7500
 
#define IS_PM5500   (of_machine_is_compatible("AAPL,e411"))
 
#define IS_BEIGE   (of_machine_is_compatible("AAPL,Gossamer"))
 
#define IS_IMAC1   (of_machine_is_compatible("PowerMac2,1"))
 
#define IS_IMAC2
 
#define IS_G4AGP   (of_machine_is_compatible("PowerMac3,1"))
 
#define IS_LOMBARD   (of_machine_is_compatible("PowerBook1,1"))
 

Functions

int __devinit snd_pmac_awacs_init (struct snd_pmac *chip)
 

Macro Definition Documentation

#define AWACS_SWITCH (   xname,
  xreg,
  xshift,
  xinvert 
)
Value:
{ .iface = SNDRV_CTL_ELEM_IFACE_MIXER, .name = xname, .index = 0, \
.get = snd_pmac_awacs_get_switch, \
.put = snd_pmac_awacs_put_switch, \
.private_value = (xreg) | ((xshift) << 8) | ((xinvert) << 16) }

Definition at line 252 of file awacs.c.

#define AWACS_VOLUME (   xname,
  xreg,
  xshift,
  xinverted 
)
Value:
{ .iface = SNDRV_CTL_ELEM_IFACE_MIXER, .name = xname, .index = 0, \
.info = snd_pmac_awacs_info_volume, \
.get = snd_pmac_awacs_get_volume, \
.put = snd_pmac_awacs_put_volume, \
.private_value = (xreg) | ((xshift) << 8) | ((xinverted) << 16) }

Definition at line 201 of file awacs.c.

#define IS_BEIGE   (of_machine_is_compatible("AAPL,Gossamer"))

Definition at line 787 of file awacs.c.

#define IS_G4AGP   (of_machine_is_compatible("PowerMac3,1"))

Definition at line 791 of file awacs.c.

#define IS_IMAC1   (of_machine_is_compatible("PowerMac2,1"))

Definition at line 788 of file awacs.c.

#define IS_IMAC2
Value:
(of_machine_is_compatible("PowerMac2,2") \
|| of_machine_is_compatible("PowerMac4,1"))

Definition at line 789 of file awacs.c.

#define IS_LOMBARD   (of_machine_is_compatible("PowerBook1,1"))

Definition at line 792 of file awacs.c.

#define IS_PM5500   (of_machine_is_compatible("AAPL,e411"))

Definition at line 786 of file awacs.c.

#define IS_PM7500
Value:
(of_machine_is_compatible("AAPL,7500") \
|| of_machine_is_compatible("AAPL,8500") \
|| of_machine_is_compatible("AAPL,9500"))

Definition at line 783 of file awacs.c.

#define screamer_recalibrate (   chip)    /* NOP */

Definition at line 114 of file awacs.c.

Function Documentation

int __devinit snd_pmac_awacs_init ( struct snd_pmac chip)

Definition at line 876 of file awacs.c.