Lines Matching +full:pcm +full:- +full:interface +full:- +full:rate

1 /* SPDX-License-Identifier: GPL-2.0+
4 * Universal interface for Audio Codec '97
25 #define AC97_PCM 0x18 /* PCM Volume */
33 /* range 0x28-0x3a - AUDIO AC'97 2.0 extensions */
36 #define AC97_PCM_FRONT_DAC_RATE 0x2c /* PCM Front DAC Rate */
37 #define AC97_PCM_SURR_DAC_RATE 0x2e /* PCM Surround DAC Rate */
38 #define AC97_PCM_LFE_DAC_RATE 0x30 /* PCM LFE DAC Rate */
39 #define AC97_PCM_LR_ADC_RATE 0x32 /* PCM LR ADC Rate */
40 #define AC97_PCM_MIC_ADC_RATE 0x34 /* PCM MIC ADC Rate */
44 /* range 0x3c-0x58 - MODEM */
47 #define AC97_LINE1_RATE 0x40 /* Line1 DAC/ADC Rate */
48 #define AC97_LINE2_RATE 0x42 /* Line2 DAC/ADC Rate */
49 #define AC97_HANDSET_RATE 0x44 /* Handset DAC/ADC Rate */
59 /* range 0x5a-0x7b - Vendor Specific */
62 /* range 0x60-0x6f (page 1) - extended codec registers */
85 #define AC97_SLOT_PCM_LEFT_0 7 /* double rate operation */
88 #define AC97_SLOT_PCM_RIGHT_0 8 /* double rate operation */
93 #define AC97_SLOT_PCM_LEFT_1 10 /* double rate operation */
96 #define AC97_SLOT_PCM_RIGHT_1 11 /* double rate operation */
99 #define AC97_SLOT_PCM_CENTER_1 12 /* double rate operation */
102 #define AC97_BC_DEDICATED_MIC 0x0001 /* Dedicated Mic PCM In Channel */
108 #define AC97_BC_16BIT_DAC 0x0000 /* 16-bit DAC resolution */
109 #define AC97_BC_18BIT_DAC 0x0040 /* 18-bit DAC resolution */
110 #define AC97_BC_20BIT_DAC 0x0080 /* 20-bit DAC resolution */
112 #define AC97_BC_16BIT_ADC 0x0000 /* 16-bit ADC resolution */
113 #define AC97_BC_18BIT_ADC 0x0100 /* 18-bit ADC resolution */
114 #define AC97_BC_20BIT_ADC 0x0200 /* 20-bit ADC resolution */
116 #define AC97_BC_3D_TECH_ID_MASK 0x7c00 /* Per-vendor ID of 3D enhancement */
119 #define AC97_GP_DRSS_MASK 0x0c00 /* double rate slot select */
128 #define AC97_PD_PR0 0x0100 /* Power down PCM ADCs and input MUX */
129 #define AC97_PD_PR1 0x0200 /* Power down PCM front DAC */
132 #define AC97_PD_PR4 0x1000 /* Power down AC-Link */
138 #define AC97_EI_VRA 0x0001 /* Variable bit rate supported */
139 #define AC97_EI_DRA 0x0002 /* Double rate supported */
141 #define AC97_EI_VRM 0x0008 /* Variable bit rate supported for MIC */
144 #define AC97_EI_CDAC 0x0040 /* PCM Center DAC available */
145 #define AC97_EI_SDAC 0x0080 /* PCM Surround DACs available */
146 #define AC97_EI_LDAC 0x0100 /* PCM LFE DAC available */
156 #define AC97_EA_VRA 0x0001 /* Variable bit rate enable bit */
157 #define AC97_EA_DRA 0x0002 /* Double-rate audio enable bit */
159 #define AC97_EA_VRM 0x0008 /* Variable bit rate for MIC enable bit */
166 #define AC97_EA_CDAC 0x0040 /* PCM Center DAC is ready (Read only) */
167 #define AC97_EA_SDAC 0x0080 /* PCM Surround DACs are ready (Read only) */
168 #define AC97_EA_LDAC 0x0100 /* PCM LFE DAC is ready (Read only) */
171 #define AC97_EA_PRI 0x0800 /* Turns the PCM Center DAC off */
172 #define AC97_EA_PRJ 0x1000 /* Turns the PCM Surround DACs off */
173 #define AC97_EA_PRK 0x2000 /* Turns the PCM LFE DAC off */
184 #define AC97_SC_SPSR_MASK 0x3000 /* S/PDIF Sample Rate bits */
186 #define AC97_SC_SPSR_44K 0x0000 /* Use 44.1kHz Sample rate */
187 #define AC97_SC_SPSR_48K 0x2000 /* Use 48kHz Sample rate */
188 #define AC97_SC_SPSR_32K 0x3000 /* Use 32kHz Sample rate */
189 #define AC97_SC_DRS 0x4000 /* Double Rate S/PDIF */
194 #define AC97_PAGE_VENDOR 0 /* Vendor-specific registers */