diff options
author | Sudip Mukherjee <sudipm.mukherjee@gmail.com> | 2014-10-13 08:07:18 +0200 |
---|---|---|
committer | Takashi Iwai <tiwai@suse.de> | 2014-10-15 12:03:05 +0200 |
commit | 6a40dc5ab5036722d8102ba7190dbd9d72982637 (patch) | |
tree | 2b2e432db50cda8eabf52f937ddda4af4dd7b7ab /sound/pci/au88x0/au88x0_a3d.c | |
parent | ALSA: hda_intel: Add Device IDs for Intel Sunrise Point PCH (diff) | |
download | linux-6a40dc5ab5036722d8102ba7190dbd9d72982637.tar.xz linux-6a40dc5ab5036722d8102ba7190dbd9d72982637.zip |
ALSA: au88x0: added reference of vortex_t
added a pointer of the vortex in the following functions :
vortex_alsafmt_aspfmt
vortex_Vort3D_InitializeSource
a3dsrc_ZeroStateA3D
so that we can have a reference of the vortex in the function.
this reference of the vortex will actually be used in a later patch
to convert the pr_* macro to dev_*.
Signed-off-by: Sudip Mukherjee <sudip@vectorindia.org>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Diffstat (limited to 'sound/pci/au88x0/au88x0_a3d.c')
-rw-r--r-- | sound/pci/au88x0/au88x0_a3d.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/sound/pci/au88x0/au88x0_a3d.c b/sound/pci/au88x0/au88x0_a3d.c index 30f760e3d2c0..bc9cda3aa725 100644 --- a/sound/pci/au88x0/au88x0_a3d.c +++ b/sound/pci/au88x0/au88x0_a3d.c @@ -484,7 +484,7 @@ static void a3dsrc_ZeroState(a3dsrc_t * a) } /* Reset entire A3D engine */ -static void a3dsrc_ZeroStateA3D(a3dsrc_t * a) +static void a3dsrc_ZeroStateA3D(a3dsrc_t *a, vortex_t *v) { int i, var, var2; @@ -601,7 +601,7 @@ static void vortex_Vort3D_enable(vortex_t *v) Vort3DRend_Initialize(v, XT_HEADPHONE); for (i = 0; i < NR_A3D; i++) { vortex_A3dSourceHw_Initialize(v, i % 4, i >> 2); - a3dsrc_ZeroStateA3D(&(v->a3d[0])); + a3dsrc_ZeroStateA3D(&v->a3d[0], v); } /* Register ALSA controls */ vortex_a3d_register_controls(v); @@ -676,7 +676,7 @@ static void vortex_Vort3D_connect(vortex_t * v, int en) } /* Initialize one single A3D source. */ -static void vortex_Vort3D_InitializeSource(a3dsrc_t * a, int en) +static void vortex_Vort3D_InitializeSource(a3dsrc_t *a, int en, vortex_t *v) { if (a->vortex == NULL) { pr_warn |