Subversion Repositories Kolibri OS

Rev

Rev 563 | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 563 Rev 572
Line 3... Line 3...
3
;; Copyright (C) KolibriOS team 2004-2007. All rights reserved. ;;
3
;; Copyright (C) KolibriOS team 2004-2007. All rights reserved. ;;
4
;; Distributed under terms of the GNU General Public License    ;;
4
;; Distributed under terms of the GNU General Public License    ;;
5
;;                                                              ;;
5
;;                                                              ;;
6
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
6
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
Line -... Line 7...
-
 
7
 
-
 
8
 
-
 
9
AD_LOSEL   equ BIT5
-
 
10
AD_HPSEL   equ BIT10
7
 
11
 
8
align 4
12
align 4
9
proc detect_codec
13
proc detect_codec
10
           locals
14
           locals
11
             codec_id dd ?
15
             codec_id dd ?
Line 160... Line 164...
160
           mov eax, [rate]
164
           mov eax, [rate]
161
           stdcall codec_write, dword CODEC_PCM_FRONT_DACRATE_REG
165
           stdcall codec_write, dword CODEC_PCM_FRONT_DACRATE_REG
162
           ret
166
           ret
163
endp
167
endp
Line -... Line 168...
-
 
168
 
-
 
169
patch_AD:
-
 
170
           stdcall codec_read, 0x76
-
 
171
           or ax, BIT5+BIT10
-
 
172
           stdcall codec_write, 0x76
-
 
173
           ret
-
 
174
 
-
 
175
 
164
 
176
 
165
align 16
177
align 16
166
ac_unknown     db 'unknown manufacturer',13,10,0
178
ac_unknown     db 'unknown manufacturer',13,10,0
167
ac_Realtek     db 'Realtek Semiconductor',13,10,0
179
ac_Realtek     db 'Realtek Semiconductor',13,10,0
168
ac_Analog      db 'Analog Devices',13,10,0
180
ac_Analog      db 'Analog Devices',13,10,0