cs5535audio.c (57d4bf6d8e965404b82b105ae44ddf137bb7b8e6) cs5535audio.c (3556d18465c6e67c7a8f436428b95671add02f57)
1/*
2 * Driver for audio on multifunction CS5535/6 companion device
3 * Copyright (C) Jaya Kumar
4 *
5 * Based on Jaroslav Kysela and Takashi Iwai's examples.
6 * This work was sponsored by CIS(M) Sdn Bhd.
7 *
8 * This program is free software; you can redistribute it and/or modify

--- 150 unchanged lines hidden (view full) ---

159 return err;
160
161 memset(&ac97, 0, sizeof(ac97));
162 ac97.scaps = AC97_SCAP_AUDIO | AC97_SCAP_SKIP_MODEM
163 | AC97_SCAP_POWER_SAVE;
164 ac97.private_data = cs5535au;
165 ac97.pci = cs5535au->pci;
166
1/*
2 * Driver for audio on multifunction CS5535/6 companion device
3 * Copyright (C) Jaya Kumar
4 *
5 * Based on Jaroslav Kysela and Takashi Iwai's examples.
6 * This work was sponsored by CIS(M) Sdn Bhd.
7 *
8 * This program is free software; you can redistribute it and/or modify

--- 150 unchanged lines hidden (view full) ---

159 return err;
160
161 memset(&ac97, 0, sizeof(ac97));
162 ac97.scaps = AC97_SCAP_AUDIO | AC97_SCAP_SKIP_MODEM
163 | AC97_SCAP_POWER_SAVE;
164 ac97.private_data = cs5535au;
165 ac97.pci = cs5535au->pci;
166
167 /* set any OLPC-specific scaps */
168 olpc_prequirks(card, &ac97);
169
167 if ((err = snd_ac97_mixer(pbus, &ac97, &cs5535au->ac97)) < 0) {
168 snd_printk(KERN_ERR "mixer failed\n");
169 return err;
170 }
171
172 snd_ac97_tune_hardware(cs5535au->ac97, ac97_quirks, ac97_quirk);
173
174 /* olpc_quirks is dummied out if not olpc */

--- 247 unchanged lines hidden ---
170 if ((err = snd_ac97_mixer(pbus, &ac97, &cs5535au->ac97)) < 0) {
171 snd_printk(KERN_ERR "mixer failed\n");
172 return err;
173 }
174
175 snd_ac97_tune_hardware(cs5535au->ac97, ac97_quirks, ac97_quirk);
176
177 /* olpc_quirks is dummied out if not olpc */

--- 247 unchanged lines hidden ---