sound/pci/au88x0/au88x0_a3d.c
Source file repositories/reference/linux-study-clean/sound/pci/au88x0/au88x0_a3d.c
File Facts
- System
- Linux kernel
- Corpus path
sound/pci/au88x0/au88x0_a3d.c- Extension
.c- Size
- 24520 bytes
- Lines
- 907
- Domain
- Driver Families
- Bucket
- sound/pci
- Inferred role
- Driver Families: implementation source
- Status
- source implementation candidate
Why This File Exists
Repeatable hardware-adapter layer. Deep compatibility for every driver is out of scope; this atlas records patterns, probe lifecycles, bus glue, IRQ/DMA usage, and links back to core abstractions.
- Repeatable hardware-adapter layer. Deep compatibility for every driver is out of scope; this atlas records patterns, probe lifecycles, bus glue, IRQ/DMA usage, and links back to core abstractions.
- Defines or uses C structs; map object ownership, embedded links, reference counts, and lock ownership.
Dependency Surface
au88x0_a3d.hau88x0_a3ddata.cau88x0_xtalk.hau88x0.h
Detected Declarations
function a3dsrc_SetTimeConstsfunction a3dsrc_GetTimeConstsfunction a3dsrc_SetAtmosCurrentfunction a3dsrc_SetAtmosStatefunction a3dsrc_GetAtmosTargetfunction a3dsrc_GetAtmosStatefunction a3dsrc_SetHrtfCurrentfunction a3dsrc_SetHrtfStatefunction a3dsrc_SetHrtfOutputfunction a3dsrc_GetHrtfTargetfunction a3dsrc_GetHrtfCurrentfunction a3dsrc_GetHrtfStatefunction a3dsrc_GetHrtfOutputfunction Differencefunction a3dsrc_SetItdCurrentfunction a3dsrc_SetItdDlinefunction a3dsrc_GetItdTargetfunction a3dsrc_GetItdCurrentfunction a3dsrc_GetItdDlinefunction a3dsrc_SetGainTargetfunction a3dsrc_SetGainCurrentfunction a3dsrc_GetGainTargetfunction a3dsrc_GetGainCurrentfunction CA3dIO_WriteRegfunction a3dsrc_SetA3DSampleRatefunction a3dsrc_EnableA3Dfunction a3dsrc_DisableA3Dfunction a3dsrc_SetA3DControlRegfunction a3dsrc_SetA3DPointerRegfunction a3dsrc_GetA3DSampleRatefunction a3dsrc_GetA3DControlRegfunction a3dsrc_GetA3DPointerRegfunction a3dsrc_ZeroSliceIOfunction a3dsrc_ZeroStatefunction a3dsrc_ZeroStateA3Dfunction a3dsrc_ProgramPipefunction a3dsrc_ClearVDBDatafunction vortex_A3dSourceHw_Initializefunction Vort3DRend_Initializefunction vortex_Vort3D_enablefunction vortex_Vort3D_disablefunction vortex_Vort3D_connectfunction vortex_Vort3D_InitializeSourcefunction vortex_a3d_coord2hrtffunction snd_vortex_a3d_itd_infofunction snd_vortex_a3d_ild_infofunction snd_vortex_a3d_filter_infofunction snd_vortex_a3d_get
Annotated Snippet
// SPDX-License-Identifier: GPL-2.0-or-later
/***************************************************************************
* au88x0_a3d.c
*
* Fri Jul 18 14:16:22 2003
* Copyright 2003 mjander
* mjander@users.sourceforge.net
*
* A3D. You may think i'm crazy, but this may work someday. Who knows...
****************************************************************************/
/*
*/
#include "au88x0_a3d.h"
#include "au88x0_a3ddata.c"
#include "au88x0_xtalk.h"
#include "au88x0.h"
static void
a3dsrc_SetTimeConsts(a3dsrc_t * a, short HrtfTrack, short ItdTrack,
short GTrack, short CTrack)
{
vortex_t *vortex = (vortex_t *) (a->vortex);
hwwrite(vortex->mmio,
a3d_addrA(a->slice, a->source, A3D_A_HrtfTrackTC), HrtfTrack);
hwwrite(vortex->mmio,
a3d_addrA(a->slice, a->source, A3D_A_ITDTrackTC), ItdTrack);
hwwrite(vortex->mmio,
a3d_addrA(a->slice, a->source, A3D_A_GainTrackTC), GTrack);
hwwrite(vortex->mmio,
a3d_addrA(a->slice, a->source, A3D_A_CoeffTrackTC), CTrack);
}
#if 0
static void
a3dsrc_GetTimeConsts(a3dsrc_t * a, short *HrtfTrack, short *ItdTrack,
short *GTrack, short *CTrack)
{
// stub!
}
#endif
/* Atmospheric absorption. */
static void
a3dsrc_SetAtmosTarget(a3dsrc_t * a, short aa, short b, short c, short d,
short e)
{
vortex_t *vortex = (vortex_t *) (a->vortex);
hwwrite(vortex->mmio,
a3d_addrB(a->slice, a->source, A3D_B_A21Target),
(e << 0x10) | d);
hwwrite(vortex->mmio,
a3d_addrB(a->slice, a->source, A3D_B_B10Target),
(b << 0x10) | aa);
hwwrite(vortex->mmio,
a3d_addrB(a->slice, a->source, A3D_B_B2Target), c);
}
static void
a3dsrc_SetAtmosCurrent(a3dsrc_t * a, short aa, short b, short c, short d,
short e)
{
vortex_t *vortex = (vortex_t *) (a->vortex);
hwwrite(vortex->mmio,
a3d_addrB(a->slice, a->source, A3D_B_A12Current),
(e << 0x10) | d);
hwwrite(vortex->mmio,
a3d_addrB(a->slice, a->source, A3D_B_B01Current),
(b << 0x10) | aa);
hwwrite(vortex->mmio,
a3d_addrB(a->slice, a->source, A3D_B_B2Current), c);
}
static void
a3dsrc_SetAtmosState(a3dsrc_t * a, short x1, short x2, short y1, short y2)
{
vortex_t *vortex = (vortex_t *) (a->vortex);
hwwrite(vortex->mmio, a3d_addrA(a->slice, a->source, A3D_A_x1), x1);
hwwrite(vortex->mmio, a3d_addrA(a->slice, a->source, A3D_A_x2), x2);
hwwrite(vortex->mmio, a3d_addrA(a->slice, a->source, A3D_A_y1), y1);
hwwrite(vortex->mmio, a3d_addrA(a->slice, a->source, A3D_A_y2), y2);
}
#if 0
static void
a3dsrc_GetAtmosTarget(a3dsrc_t * a, short *aa, short *b, short *c,
short *d, short *e)
{
Annotation
- Immediate include surface: `au88x0_a3d.h`, `au88x0_a3ddata.c`, `au88x0_xtalk.h`, `au88x0.h`.
- Detected declarations: `function a3dsrc_SetTimeConsts`, `function a3dsrc_GetTimeConsts`, `function a3dsrc_SetAtmosCurrent`, `function a3dsrc_SetAtmosState`, `function a3dsrc_GetAtmosTarget`, `function a3dsrc_GetAtmosState`, `function a3dsrc_SetHrtfCurrent`, `function a3dsrc_SetHrtfState`, `function a3dsrc_SetHrtfOutput`, `function a3dsrc_GetHrtfTarget`.
- Atlas domain: Driver Families / sound/pci.
- Implementation status: source implementation candidate.
Implementation Notes
- This generated page is the file-by-file coverage layer; curated subsystem chapters should link here when they synthesize a multi-file control flow.
- Core OS pages should be promoted from atlas-only to deep-reviewed when they explain data structures, invariants, locking, lifecycle, and C implementation snippets.
- Driver-family pages are intentionally pattern-oriented unless they are part of the selected PCIe/NVMe representative device path.