Linux kernel & device driver programming

Cross-Referenced Linux and Device Driver Code

[ source navigation ] [ diff markup ] [ identifier search ] [ freetext search ] [ file search ]
Version: [ 2.6.11.8 ] [ 2.6.25 ] [ 2.6.25.8 ] [ 2.6.31.13 ] Architecture: [ i386 ]

Diff markup

Differences between /linux/sound/pci/ac97/ac97_patch.h (Version 2.6.31.13) and /linux/sound/pci/ac97/ac97_patch.h (Version 2.6.11.8)


  1 /*                                                  1 /*
  2  *  Copyright (c) by Jaroslav Kysela <perex@pe !!   2  *  Copyright (c) by Jaroslav Kysela <perex@suse.cz>
  3  *  Universal interface for Audio Codec '97         3  *  Universal interface for Audio Codec '97
  4  *                                                  4  *
  5  *  For more details look to AC '97 component       5  *  For more details look to AC '97 component specification revision 2.2
  6  *  by Intel Corporation (http://developer.int      6  *  by Intel Corporation (http://developer.intel.com).
  7  *                                                  7  *
  8  *                                                  8  *
  9  *   This program is free software; you can re      9  *   This program is free software; you can redistribute it and/or modify
 10  *   it under the terms of the GNU General Pub     10  *   it under the terms of the GNU General Public License as published by
 11  *   the Free Software Foundation; either vers     11  *   the Free Software Foundation; either version 2 of the License, or
 12  *   (at your option) any later version.           12  *   (at your option) any later version.
 13  *                                                 13  *
 14  *   This program is distributed in the hope t     14  *   This program is distributed in the hope that it will be useful,
 15  *   but WITHOUT ANY WARRANTY; without even th     15  *   but WITHOUT ANY WARRANTY; without even the implied warranty of
 16  *   MERCHANTABILITY or FITNESS FOR A PARTICUL     16  *   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 17  *   GNU General Public License for more detai     17  *   GNU General Public License for more details.
 18  *                                                 18  *
 19  *   You should have received a copy of the GN     19  *   You should have received a copy of the GNU General Public License
 20  *   along with this program; if not, write to     20  *   along with this program; if not, write to the Free Software
 21  *   Foundation, Inc., 59 Temple Place, Suite      21  *   Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA
 22  *                                                 22  *
 23  */                                                23  */
 24                                                    24 
 25 #define AC97_SINGLE_VALUE(reg,shift,mask,inver !!  25 int patch_yamaha_ymf753(ac97_t * ac97);
 26         ((reg) | ((shift) << 8) | ((shift) <<  !!  26 int patch_wolfson00(ac97_t * ac97);
 27          ((invert) << 24))                     !!  27 int patch_wolfson03(ac97_t * ac97);
 28 #define AC97_PAGE_SINGLE_VALUE(reg,shift,mask, !!  28 int patch_wolfson04(ac97_t * ac97);
 29         (AC97_SINGLE_VALUE(reg,shift,mask,inve !!  29 int patch_wolfson05(ac97_t * ac97);
 30 #define AC97_SINGLE(xname, reg, shift, mask, i !!  30 int patch_wolfson11(ac97_t * ac97);
 31 { .iface = SNDRV_CTL_ELEM_IFACE_MIXER, .name = !!  31 int patch_tritech_tr28028(ac97_t * ac97);
 32   .info = snd_ac97_info_volsw,          \      !!  32 int patch_sigmatel_stac9700(ac97_t * ac97);
 33   .get = snd_ac97_get_volsw, .put = snd_ac97_p !!  33 int patch_sigmatel_stac9708(ac97_t * ac97);
 34   .private_value =  AC97_SINGLE_VALUE(reg, shi !!  34 int patch_sigmatel_stac9721(ac97_t * ac97);
 35 #define AC97_PAGE_SINGLE(xname, reg, shift, ma !!  35 int patch_sigmatel_stac9744(ac97_t * ac97);
 36 { .iface = SNDRV_CTL_ELEM_IFACE_MIXER, .name = !!  36 int patch_sigmatel_stac9756(ac97_t * ac97);
 37   .info = snd_ac97_info_volsw,          \      !!  37 int patch_sigmatel_stac9758(ac97_t * ac97);
 38   .get = snd_ac97_get_volsw, .put = snd_ac97_p !!  38 int patch_cirrus_cs4299(ac97_t * ac97);
 39   .private_value =  AC97_PAGE_SINGLE_VALUE(reg !!  39 int patch_cirrus_spdif(ac97_t * ac97);
 40 #define AC97_DOUBLE(xname, reg, shift_left, sh !!  40 int patch_conexant(ac97_t * ac97);
 41 { .iface = SNDRV_CTL_ELEM_IFACE_MIXER, .name = !!  41 int patch_ad1819(ac97_t * ac97);
 42   .info = snd_ac97_info_volsw,          \      !!  42 int patch_ad1881(ac97_t * ac97);
 43   .get = snd_ac97_get_volsw, .put = snd_ac97_p !!  43 int patch_ad1885(ac97_t * ac97);
 44   .private_value = (reg) | ((shift_left) << 8) !!  44 int patch_ad1886(ac97_t * ac97);
 45                                                !!  45 int patch_ad1888(ac97_t * ac97);
 46 /* enum control */                             !!  46 int patch_ad1980(ac97_t * ac97);
 47 struct ac97_enum {                             !!  47 int patch_ad1981a(ac97_t * ac97);
 48         unsigned char reg;                     !!  48 int patch_ad1981b(ac97_t * ac97);
 49         unsigned char shift_l;                 !!  49 int patch_ad1985(ac97_t * ac97);
 50         unsigned char shift_r;                 !!  50 int patch_alc650(ac97_t * ac97);
 51         unsigned short mask;                   !!  51 int patch_alc655(ac97_t * ac97);
 52         const char **texts;                    !!  52 int patch_alc850(ac97_t * ac97);
 53 };                                             !!  53 int patch_cm9738(ac97_t * ac97);
 54                                                !!  54 int patch_cm9739(ac97_t * ac97);
 55 #define AC97_ENUM_DOUBLE(xreg, xshift_l, xshif !!  55 int patch_cm9761(ac97_t * ac97);
 56 { .reg = xreg, .shift_l = xshift_l, .shift_r = !!  56 int patch_vt1616(ac97_t * ac97);
 57   .mask = xmask, .texts = xtexts }             !!  57 int patch_it2646(ac97_t * ac97);
 58 #define AC97_ENUM_SINGLE(xreg, xshift, xmask,  !!  58 int mpatch_si3036(ac97_t * ac97);
 59         AC97_ENUM_DOUBLE(xreg, xshift, xshift, << 
 60 #define AC97_ENUM(xname, xenum) \              << 
 61 { .iface = SNDRV_CTL_ELEM_IFACE_MIXER, .name = << 
 62   .info = snd_ac97_info_enum_double,           << 
 63   .get = snd_ac97_get_enum_double, .put = snd_ << 
 64   .private_value = (unsigned long)&xenum }     << 
 65                                                << 
 66 /* ac97_codec.c */                             << 
 67 static const struct snd_kcontrol_new snd_ac97_ << 
 68 static const struct snd_kcontrol_new snd_ac97_ << 
 69 static struct snd_kcontrol *snd_ac97_cnew(cons << 
 70                                           stru << 
 71 static int snd_ac97_info_volsw(struct snd_kcon << 
 72                                struct snd_ctl_ << 
 73 static int snd_ac97_get_volsw(struct snd_kcont << 
 74                               struct snd_ctl_e << 
 75 static int snd_ac97_put_volsw(struct snd_kcont << 
 76                               struct snd_ctl_e << 
 77 static int snd_ac97_try_bit(struct snd_ac97 *  << 
 78 static int snd_ac97_remove_ctl(struct snd_ac97 << 
 79                                const char *suf << 
 80 static int snd_ac97_rename_ctl(struct snd_ac97 << 
 81                                const char *dst << 
 82 static int snd_ac97_swap_ctl(struct snd_ac97 * << 
 83                              const char *s2, c << 
 84 static void snd_ac97_rename_vol_ctl(struct snd << 
 85                                     const char << 
 86 #ifdef CONFIG_PM                               << 
 87 static void snd_ac97_restore_status(struct snd << 
 88 static void snd_ac97_restore_iec958(struct snd << 
 89 #endif                                         << 
 90 static int snd_ac97_info_enum_double(struct sn << 
 91                                      struct sn << 
 92 static int snd_ac97_get_enum_double(struct snd << 
 93                                     struct snd << 
 94 static int snd_ac97_put_enum_double(struct snd << 
 95                                     struct snd << 
 96                                                    59 
  This page was automatically generated by the LXR engine.