Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Macros
ac97_patch.h File Reference

Go to the source code of this file.

Data Structures

struct  ac97_enum
 

Macros

#define AC97_SINGLE_VALUE(reg, shift, mask, invert)
 
#define AC97_PAGE_SINGLE_VALUE(reg, shift, mask, invert, page)   (AC97_SINGLE_VALUE(reg,shift,mask,invert) | (1<<25) | ((page) << 26))
 
#define AC97_SINGLE(xname, reg, shift, mask, invert)
 
#define AC97_PAGE_SINGLE(xname, reg, shift, mask, invert, page)
 
#define AC97_DOUBLE(xname, reg, shift_left, shift_right, mask, invert)
 
#define AC97_ENUM_DOUBLE(xreg, xshift_l, xshift_r, xmask, xtexts)
 
#define AC97_ENUM_SINGLE(xreg, xshift, xmask, xtexts)   AC97_ENUM_DOUBLE(xreg, xshift, xshift, xmask, xtexts)
 
#define AC97_ENUM(xname, xenum)
 

Macro Definition Documentation

#define AC97_DOUBLE (   xname,
  reg,
  shift_left,
  shift_right,
  mask,
  invert 
)
Value:
{ .iface = SNDRV_CTL_ELEM_IFACE_MIXER, .name = (xname), \
.info = snd_ac97_info_volsw, \
.get = snd_ac97_get_volsw, .put = snd_ac97_put_volsw, \
.private_value = (reg) | ((shift_left) << 8) | ((shift_right) << 12) | ((mask) << 16) | ((invert) << 24) }

Definition at line 40 of file ac97_patch.h.

#define AC97_ENUM (   xname,
  xenum 
)
Value:
{ .iface = SNDRV_CTL_ELEM_IFACE_MIXER, .name = xname, \
.info = snd_ac97_info_enum_double, \
.get = snd_ac97_get_enum_double, .put = snd_ac97_put_enum_double, \
.private_value = (unsigned long)&xenum }

Definition at line 60 of file ac97_patch.h.

#define AC97_ENUM_DOUBLE (   xreg,
  xshift_l,
  xshift_r,
  xmask,
  xtexts 
)
Value:
{ .reg = xreg, .shift_l = xshift_l, .shift_r = xshift_r, \
.mask = xmask, .texts = xtexts }

Definition at line 55 of file ac97_patch.h.

#define AC97_ENUM_SINGLE (   xreg,
  xshift,
  xmask,
  xtexts 
)    AC97_ENUM_DOUBLE(xreg, xshift, xshift, xmask, xtexts)

Definition at line 58 of file ac97_patch.h.

#define AC97_PAGE_SINGLE (   xname,
  reg,
  shift,
  mask,
  invert,
  page 
)
Value:
{ .iface = SNDRV_CTL_ELEM_IFACE_MIXER, .name = xname, \
.info = snd_ac97_info_volsw, \
.get = snd_ac97_get_volsw, .put = snd_ac97_put_volsw, \
.private_value = AC97_PAGE_SINGLE_VALUE(reg, shift, mask, invert, page) }

Definition at line 35 of file ac97_patch.h.

#define AC97_PAGE_SINGLE_VALUE (   reg,
  shift,
  mask,
  invert,
  page 
)    (AC97_SINGLE_VALUE(reg,shift,mask,invert) | (1<<25) | ((page) << 26))

Definition at line 28 of file ac97_patch.h.

#define AC97_SINGLE (   xname,
  reg,
  shift,
  mask,
  invert 
)
Value:
{ .iface = SNDRV_CTL_ELEM_IFACE_MIXER, .name = xname, \
.info = snd_ac97_info_volsw, \
.get = snd_ac97_get_volsw, .put = snd_ac97_put_volsw, \
.private_value = AC97_SINGLE_VALUE(reg, shift, mask, invert) }

Definition at line 30 of file ac97_patch.h.

#define AC97_SINGLE_VALUE (   reg,
  shift,
  mask,
  invert 
)
Value:
((reg) | ((shift) << 8) | ((shift) << 12) | ((mask) << 16) | \
((invert) << 24))

Definition at line 25 of file ac97_patch.h.