xref: /openbmc/qemu/hw/audio/ac97.h (revision f8ed3648)
1 /*
2  * Copyright (C) 2006 InnoTek Systemberatung GmbH
3  *
4  * This file is part of VirtualBox Open Source Edition (OSE), as
5  * available from http://www.virtualbox.org. This file is free software;
6  * you can redistribute it and/or modify it under the terms of the GNU
7  * General Public License as published by the Free Software Foundation,
8  * in version 2 as it comes in the "COPYING" file of the VirtualBox OSE
9  * distribution. VirtualBox OSE is distributed in the hope that it will
10  * be useful, but WITHOUT ANY WARRANTY of any kind.
11  *
12  * If you received this file as part of a commercial VirtualBox
13  * distribution, then only the terms of your commercial VirtualBox
14  * license agreement apply instead of the previous paragraph.
15  *
16  * Contributions after 2012-01-13 are licensed under the terms of the
17  * GNU GPL, version 2 or (at your option) any later version.
18  */
19 
20 #ifndef AC97_H
21 #define AC97_H
22 
23 enum {
24     AC97_Reset                     = 0x00,
25     AC97_Master_Volume_Mute        = 0x02,
26     AC97_Headphone_Volume_Mute     = 0x04,
27     AC97_Master_Volume_Mono_Mute   = 0x06,
28     AC97_Master_Tone_RL            = 0x08,
29     AC97_PC_BEEP_Volume_Mute       = 0x0A,
30     AC97_Phone_Volume_Mute         = 0x0C,
31     AC97_Mic_Volume_Mute           = 0x0E,
32     AC97_Line_In_Volume_Mute       = 0x10,
33     AC97_CD_Volume_Mute            = 0x12,
34     AC97_Video_Volume_Mute         = 0x14,
35     AC97_Aux_Volume_Mute           = 0x16,
36     AC97_PCM_Out_Volume_Mute       = 0x18,
37     AC97_Record_Select             = 0x1A,
38     AC97_Record_Gain_Mute          = 0x1C,
39     AC97_Record_Gain_Mic_Mute      = 0x1E,
40     AC97_General_Purpose           = 0x20,
41     AC97_3D_Control                = 0x22,
42     AC97_AC_97_RESERVED            = 0x24,
43     AC97_Powerdown_Ctrl_Stat       = 0x26,
44     AC97_Extended_Audio_ID         = 0x28,
45     AC97_Extended_Audio_Ctrl_Stat  = 0x2A,
46     AC97_PCM_Front_DAC_Rate        = 0x2C,
47     AC97_PCM_Surround_DAC_Rate     = 0x2E,
48     AC97_PCM_LFE_DAC_Rate          = 0x30,
49     AC97_PCM_LR_ADC_Rate           = 0x32,
50     AC97_MIC_ADC_Rate              = 0x34,
51     AC97_6Ch_Vol_C_LFE_Mute        = 0x36,
52     AC97_6Ch_Vol_L_R_Surround_Mute = 0x38,
53     AC97_Vendor_Reserved           = 0x58,
54     AC97_Sigmatel_Analog           = 0x6c, /* We emulate a Sigmatel codec */
55     AC97_Sigmatel_Dac2Invert       = 0x6e, /* We emulate a Sigmatel codec */
56     AC97_Vendor_ID1                = 0x7c,
57     AC97_Vendor_ID2                = 0x7e
58 };
59 
60 #define EACS_VRA 1
61 #define EACS_VRM 8
62 
63 #define MUTE_SHIFT 15
64 
65 #endif /* AC97_H */
66