Subversion Repositories Kolibri OS

Rev

Rev 3498 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 3498 Rev 3594
Line 804... Line 804...
804
restore   out_size
804
restore   out_size
Line 805... Line 805...
805
 
805
 
806
 
806
 
807
align 4
807
align 4
808
proc hda_irq   ;+
808
proc hda_irq   ;+
809
	   spin_lock
809
	   ;spin_lock
810
     if DEBUG_IRQ
810
     if DEBUG_IRQ
811
	   push eax esi
811
	   push eax esi
812
	   ;mov esi, msgIRQ
812
	   ;mov esi, msgIRQ
Line 818... Line 818...
818
     end if
818
     end if
819
	   mov	 edx, ICH6_REG_INTSTS
819
	   mov	 edx, ICH6_REG_INTSTS
820
	   call  azx_readl
820
	   call  azx_readl
821
	   test  eax, eax
821
	   test  eax, eax
822
	   jnz	 @f
822
	   jnz	 @f
823
	   spin_unlock
823
	   ;spin_unlock
824
	   ret
824
	   ret
825
  @@:
825
  @@:
826
	   mov	 ebx, eax ; status
826
	   mov	 ebx, eax ; status
827
	   mov	 eax, SDO_INT
827
	   mov	 eax, SDO_INT
828
	   test  ebx, eax
828
	   test  ebx, eax
Line 884... Line 884...
884
	   mov	 edx, ICH6_REG_STATESTS
884
	   mov	 edx, ICH6_REG_STATESTS
885
	   call  azx_writeb
885
	   call  azx_writeb
886
  @@:
886
  @@:
887
;end if
887
;end if
888
	   or	 eax, 1
888
	   or	 eax, 1
889
	   spin_unlock
889
	   ;spin_unlock
890
	   ret
890
	   ret
891
endp
891
endp
Line 892... Line 892...
892
 
892
 
Line 1332... Line 1332...
1332
endp
1332
endp
Line 1333... Line 1333...
1333
 
1333
 
1334
 
1334
 
1335
align 4
1335
align 4
1336
play:
1336
play:
1337
	   spin_lock
1337
	   ;spin_lock
1338
	   mov	 edx, ICH6_REG_WALLCLK
1338
	   mov	 edx, ICH6_REG_WALLCLK
Line 1339... Line 1339...
1339
	   call  azx_readl
1339
	   call  azx_readl
1340
	   mov	 [ctrl.start_wallclk], eax
1340
	   mov	 [ctrl.start_wallclk], eax
1341
 
1341
 
1342
	   call  azx_stream_start
1342
	   call  azx_stream_start
Line 1343... Line 1343...
1343
	   xor	 eax, eax
1343
	   xor	 eax, eax
1344
	   spin_unlock
1344
	   ;spin_unlock
1345
	   ret
1345
	   ret
1346
 
1346
 
1347
align 4
1347
align 4
1348
stop:
1348
stop:
1349
	     spin_lock
1349
	     ;spin_lock
1350
;*           call  azx_stream_stop        ;Asper: Hangs system
1350
;*           call  azx_stream_stop        ;Asper: Hangs system
Line 1384... Line 1384...
1384
;*
1384
;*
1385
;*           pop   edx ecx ebx
1385
;*           pop   edx ecx ebx
1386
;Asper ]
1386
;Asper ]
Line 1387... Line 1387...
1387
 
1387
 
1388
	   xor	 eax, eax
1388
	   xor	 eax, eax
1389
	   spin_unlock
1389
	   ;spin_unlock
Line 1390... Line 1390...
1390
	   ret
1390
	   ret
1391
 
1391
 
1392
;align 4
1392
;align 4