1 |
#define __NO_VERSION__ |
/* |
2 |
#include "../../alsa-kernel/pci/au88x0/au88x0_mixer.c" |
* Vortex Mixer support. |
3 |
|
* |
4 |
|
* There is much more than just the AC97 mixer... |
5 |
|
* |
6 |
|
*/ |
7 |
|
|
8 |
|
#include <sound/driver.h> |
9 |
|
#include <linux/time.h> |
10 |
|
#include <linux/init.h> |
11 |
|
#include <sound/core.h> |
12 |
|
#include "au88x0.h" |
13 |
|
|
14 |
|
int __devinit snd_vortex_mixer(vortex_t *vortex) { |
15 |
|
ac97_t ac97; |
16 |
|
memset(&ac97, 0, sizeof(ac97)); |
17 |
|
// Intialize AC97 codec stuff. |
18 |
|
ac97.write = vortex_codec_write; |
19 |
|
ac97.read = vortex_codec_read; |
20 |
|
ac97.private_data = vortex; |
21 |
|
|
22 |
|
return snd_ac97_mixer(vortex->card, &ac97, &vortex->codec); |
23 |
|
} |