au88x0_a3d.c (94bd217e2d683719ab21a4ac117d8a1b91cbedc9) au88x0_a3d.c (e23e7a1436207217000c2854214bc908936af3cb)
1/***************************************************************************
2 * au88x0_a3d.c
3 *
4 * Fri Jul 18 14:16:22 2003
5 * Copyright 2003 mjander
6 * mjander@users.sourceforge.net
7 *
8 * A3D. You may think i'm crazy, but this may work someday. Who knows...

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

589 return 0;
590}
591
592/* 3D Sound entry points. */
593
594static int vortex_a3d_register_controls(vortex_t * vortex);
595static void vortex_a3d_unregister_controls(vortex_t * vortex);
596/* A3D base support init/shudown */
1/***************************************************************************
2 * au88x0_a3d.c
3 *
4 * Fri Jul 18 14:16:22 2003
5 * Copyright 2003 mjander
6 * mjander@users.sourceforge.net
7 *
8 * A3D. You may think i'm crazy, but this may work someday. Who knows...

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

589 return 0;
590}
591
592/* 3D Sound entry points. */
593
594static int vortex_a3d_register_controls(vortex_t * vortex);
595static void vortex_a3d_unregister_controls(vortex_t * vortex);
596/* A3D base support init/shudown */
597static void __devinit vortex_Vort3D_enable(vortex_t * v)
597static void vortex_Vort3D_enable(vortex_t *v)
598{
599 int i;
600
601 Vort3DRend_Initialize(v, XT_HEADPHONE);
602 for (i = 0; i < NR_A3D; i++) {
603 vortex_A3dSourceHw_Initialize(v, i % 4, i >> 2);
604 a3dsrc_ZeroStateA3D(&(v->a3d[0]));
605 }

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

840 a->filter[1], a->filter[2],
841 a->filter[3], a->filter[4]);
842 a3dsrc_SetAtmosCurrent(a, a->filter[0],
843 a->filter[1], a->filter[2],
844 a->filter[3], a->filter[4]);
845 return changed;
846}
847
598{
599 int i;
600
601 Vort3DRend_Initialize(v, XT_HEADPHONE);
602 for (i = 0; i < NR_A3D; i++) {
603 vortex_A3dSourceHw_Initialize(v, i % 4, i >> 2);
604 a3dsrc_ZeroStateA3D(&(v->a3d[0]));
605 }

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

840 a->filter[1], a->filter[2],
841 a->filter[3], a->filter[4]);
842 a3dsrc_SetAtmosCurrent(a, a->filter[0],
843 a->filter[1], a->filter[2],
844 a->filter[3], a->filter[4]);
845 return changed;
846}
847
848static struct snd_kcontrol_new vortex_a3d_kcontrol __devinitdata = {
848static struct snd_kcontrol_new vortex_a3d_kcontrol = {
849 .iface = SNDRV_CTL_ELEM_IFACE_PCM,
850 .name = "Playback PCM advanced processing",
851 .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
852 .info = snd_vortex_a3d_hrtf_info,
853 .get = snd_vortex_a3d_get,
854 .put = snd_vortex_a3d_hrtf_put,
855};
856
857/* Control (un)registration. */
849 .iface = SNDRV_CTL_ELEM_IFACE_PCM,
850 .name = "Playback PCM advanced processing",
851 .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
852 .info = snd_vortex_a3d_hrtf_info,
853 .get = snd_vortex_a3d_get,
854 .put = snd_vortex_a3d_hrtf_put,
855};
856
857/* Control (un)registration. */
858static int __devinit vortex_a3d_register_controls(vortex_t * vortex)
858static int vortex_a3d_register_controls(vortex_t *vortex)
859{
860 struct snd_kcontrol *kcontrol;
861 int err, i;
862 /* HRTF controls. */
863 for (i = 0; i < NR_A3D; i++) {
864 if ((kcontrol =
865 snd_ctl_new1(&vortex_a3d_kcontrol, &vortex->a3d[i])) == NULL)
866 return -ENOMEM;

--- 48 unchanged lines hidden ---
859{
860 struct snd_kcontrol *kcontrol;
861 int err, i;
862 /* HRTF controls. */
863 for (i = 0; i < NR_A3D; i++) {
864 if ((kcontrol =
865 snd_ctl_new1(&vortex_a3d_kcontrol, &vortex->a3d[i])) == NULL)
866 return -ENOMEM;

--- 48 unchanged lines hidden ---