/[openvortex]/alsa/pci/au88x0/au88x0_mixer.c
ViewVC logotype

Diff of /alsa/pci/au88x0/au88x0_mixer.c

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.3 by mjander, Fri Jun 13 02:35:12 2003 UTC revision 1.4 by vizard, Mon Jun 16 01:39:00 2003 UTC
# Line 13  Line 13 
13    
14  int __devinit snd_vortex_mixer(vortex_t *vortex) {  int __devinit snd_vortex_mixer(vortex_t *vortex) {
15      ac97_t ac97;      ac97_t ac97;
         int result;  
16      memset(&ac97, 0, sizeof(ac97));      memset(&ac97, 0, sizeof(ac97));
17      // Intialize AC97 codec stuff.      // Intialize AC97 codec stuff.
18      ac97.write = vortex_codec_write;      ac97.write = vortex_codec_write;
19      ac97.read = vortex_codec_read;      ac97.read = vortex_codec_read;
20      ac97.private_data = vortex;      ac97.private_data = vortex;
21                    
22          result = snd_ac97_mixer(vortex->card, &ac97, &vortex->codec);      return snd_ac97_mixer(vortex->card, &ac97, &vortex->codec);
         if (vortex->codec) {  
                 /* Disable -6dB input and output attenuation.  */  
                 vortex_codec_write(vortex->codec, 0x6c, 0x0);  
                 /* Enable external amplifier. This is for STAC9708/11 codecs.  
                   STAC9701/03 dont need this*/  
                 vortex_codec_write(vortex->codec, 0x26, 0x8000);  
         }  
     return result;  
23  }  }

Legend:
Removed from v.1.3  
changed lines
  Added in v.1.4

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26