diff options
Diffstat (limited to 'sound/ppc/awacs.h')
-rw-r--r-- | sound/ppc/awacs.h | 21 |
1 files changed, 17 insertions, 4 deletions
diff --git a/sound/ppc/awacs.h b/sound/ppc/awacs.h index 1b2cc44eda57..c33e6a531cf7 100644 --- a/sound/ppc/awacs.h +++ b/sound/ppc/awacs.h | |||
@@ -116,6 +116,11 @@ struct awacs_regs { | |||
116 | #define MASK_HDMUTE MASK_AMUTE | 116 | #define MASK_HDMUTE MASK_AMUTE |
117 | #define SHIFT_HDMUTE 9 | 117 | #define SHIFT_HDMUTE 9 |
118 | #define MASK_PAROUT (0x3 << 10) /* Parallel Out (???) */ | 118 | #define MASK_PAROUT (0x3 << 10) /* Parallel Out (???) */ |
119 | #define MASK_PAROUT0 (0x1 << 10) /* Parallel Out (???) */ | ||
120 | #define MASK_PAROUT1 (0x1 << 11) /* Parallel Out (enable speaker) */ | ||
121 | #define SHIFT_PAROUT 10 | ||
122 | #define SHIFT_PAROUT0 10 | ||
123 | #define SHIFT_PAROUT1 11 | ||
119 | 124 | ||
120 | #define SAMPLERATE_48000 (0x0 << 3) /* 48 or 44.1 kHz */ | 125 | #define SAMPLERATE_48000 (0x0 << 3) /* 48 or 44.1 kHz */ |
121 | #define SAMPLERATE_32000 (0x1 << 3) /* 32 or 29.4 kHz */ | 126 | #define SAMPLERATE_32000 (0x1 << 3) /* 32 or 29.4 kHz */ |
@@ -139,7 +144,7 @@ struct awacs_regs { | |||
139 | #define VOLLEFT(x) (((~(x)) << 6) & MASK_OUTVOLLEFT) | 144 | #define VOLLEFT(x) (((~(x)) << 6) & MASK_OUTVOLLEFT) |
140 | 145 | ||
141 | /* address 6 */ | 146 | /* address 6 */ |
142 | #define MASK_MIC_BOOST (0x4) /* screamer mic boost */ | 147 | #define MASK_MIC_BOOST (0x4) /* screamer mic boost */ |
143 | #define SHIFT_MIC_BOOST 2 | 148 | #define SHIFT_MIC_BOOST 2 |
144 | 149 | ||
145 | /* Audio Codec Status Reg Bit Masks */ | 150 | /* Audio Codec Status Reg Bit Masks */ |
@@ -152,8 +157,15 @@ struct awacs_regs { | |||
152 | #define MASK_REVISION (0xf << 12) /* Revision Number */ | 157 | #define MASK_REVISION (0xf << 12) /* Revision Number */ |
153 | #define MASK_MFGID (0xf << 8) /* Mfg. ID */ | 158 | #define MASK_MFGID (0xf << 8) /* Mfg. ID */ |
154 | #define MASK_CODSTATRES (0xf << 4) /* bits 4 - 7 reserved */ | 159 | #define MASK_CODSTATRES (0xf << 4) /* bits 4 - 7 reserved */ |
155 | #define MASK_INPPORT (0xf) /* Input Port */ | 160 | #define MASK_INSENSE (0xf) /* port sense bits: */ |
156 | #define MASK_HDPCONN 8 /* headphone plugged in */ | 161 | #define MASK_HDPCONN 8 /* headphone plugged in */ |
162 | #define MASK_LOCONN 4 /* line-out plugged in */ | ||
163 | #define MASK_LICONN 2 /* line-in plugged in */ | ||
164 | #define MASK_MICCONN 1 /* microphone plugged in */ | ||
165 | #define MASK_LICONN_IMAC 8 /* line-in plugged in */ | ||
166 | #define MASK_HDPRCONN_IMAC 4 /* headphone right plugged in */ | ||
167 | #define MASK_HDPLCONN_IMAC 2 /* headphone left plugged in */ | ||
168 | #define MASK_LOCONN_IMAC 1 /* line-out plugged in */ | ||
157 | 169 | ||
158 | /* Clipping Count Reg Bit Masks */ | 170 | /* Clipping Count Reg Bit Masks */ |
159 | /* -------- ----- --- --- ----- */ | 171 | /* -------- ----- --- --- ----- */ |
@@ -163,7 +175,8 @@ struct awacs_regs { | |||
163 | /* DBDMA ChannelStatus Bit Masks */ | 175 | /* DBDMA ChannelStatus Bit Masks */ |
164 | /* ----- ------------- --- ----- */ | 176 | /* ----- ------------- --- ----- */ |
165 | #define MASK_CSERR (0x1 << 7) /* Error */ | 177 | #define MASK_CSERR (0x1 << 7) /* Error */ |
166 | #define MASK_EOI (0x1 << 6) /* End of Input -- only for Input Channel */ | 178 | #define MASK_EOI (0x1 << 6) /* End of Input -- |
179 | only for Input Channel */ | ||
167 | #define MASK_CSUNUSED (0x1f << 1) /* bits 1-5 not used */ | 180 | #define MASK_CSUNUSED (0x1f << 1) /* bits 1-5 not used */ |
168 | #define MASK_WAIT (0x1) /* Wait */ | 181 | #define MASK_WAIT (0x1) /* Wait */ |
169 | 182 | ||