Update of /cvsroot/alsa/alsa-driver/pci/au88x0 In directory sc8-pr-cvs1:/tmp/cvs-serv3064/alsa-driver/pci/au88x0
Modified Files: au88x0_mixer.c Log Message: - AC97 code - introduced ac97_bus_t structure - moved attached codecs to /proc/asound/card?/codec97#? directory - merged snd_ac97_modem() to snd_ac97_mixer() - proc cleanups - removed already initialized variables - enhanced snd_info_set_text_ops() syntax Index: au88x0_mixer.c =================================================================== RCS file: /cvsroot/alsa/alsa-driver/pci/au88x0/au88x0_mixer.c,v retrieving revision 1.1 retrieving revision 1.2 diff -u -r1.1 -r1.2 --- au88x0_mixer.c 6 Oct 2003 14:01:05 -0000 1.1 +++ au88x0_mixer.c 23 Oct 2003 14:34:51 -0000 1.2 @@ -12,12 +12,17 @@ #include "au88x0.h" int __devinit snd_vortex_mixer(vortex_t *vortex) { + ac97_bus_t bus, *pbus; ac97_t ac97; + int err; + memset(&bus, 0, sizeof(bus)); + bus.write = vortex_codec_write; + bus.read = vortex_codec_read; + if ((err = snd_ac97_bus(vortex->card, &bus, &pbus)) < 0) + return err; memset(&ac97, 0, sizeof(ac97)); // Intialize AC97 codec stuff. - ac97.write = vortex_codec_write; - ac97.read = vortex_codec_read; ac97.private_data = vortex; - return snd_ac97_mixer(vortex->card, &ac97, &vortex->codec); + return snd_ac97_mixer(pbus, &ac97, &vortex->codec); } ------------------------------------------------------- This SF.net email is sponsored by: The SF.net Donation Program. Do you like what SourceForge.net is doing for the Open Source Community? Make a contribution, and help us add new features and functionality. Click here: http://sourceforge.net/donate/ _______________________________________________ Alsa-cvslog mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/alsa-cvslog