Update of /cvsroot/alsa/alsa-kernel/pci/ac97 In directory sc8-pr-cvs1:/tmp/cvs-serv25541/ac97
Modified Files: ac97_codec.c Log Message: - added back PCM Playback Switch for c-media chips (but no volumes). Index: ac97_codec.c =================================================================== RCS file: /cvsroot/alsa/alsa-kernel/pci/ac97/ac97_codec.c,v retrieving revision 1.94 retrieving revision 1.95 diff -u -r1.94 -r1.95 --- ac97_codec.c 3 Jun 2003 12:03:17 -0000 1.94 +++ ac97_codec.c 3 Jun 2003 12:25:59 -0000 1.95 @@ -1679,18 +1679,18 @@ ac97->spec.ad18xx.pcmreg[2] = 0x9f1f; } } else { + unsigned int pcm_ctrls = 2; /* FIXME: C-Media chips have no PCM volume!! */ if (/*ac97->id == 0x434d4941 ||*/ ac97->id == 0x434d4942 || ac97->id == 0x434d4961) - goto no_pcm; - for (idx = 0; idx < 2; idx++) + pcm_ctrls = 1; + for (idx = 0; idx < pcm_ctrls; idx++) if ((err = snd_ctl_add(card, snd_ac97_cnew(&snd_ac97_controls_pcm[idx], ac97))) < 0) return err; } snd_ac97_write_cache(ac97, AC97_PCM, 0x9f1f); - no_pcm: /* build Capture controls */ for (idx = 0; idx < 3; idx++) if ((err = snd_ctl_add(card, snd_ac97_cnew(&snd_ac97_controls_capture[idx], ac97))) < 0) ------------------------------------------------------- This SF.net email is sponsored by: eBay Get office equipment for less on eBay! http://adfarm.mediaplex.com/ad/ck/711-11697-6916-5 _______________________________________________ Alsa-cvslog mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/alsa-cvslog