Rev 579 | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 579 | Rev 708 | ||
---|---|---|---|
Line 585... | Line 585... | ||
585 | call [ctrl.ctrl_read32] |
585 | call [ctrl.ctrl_read32] |
586 | and eax, not 0x000000C0 |
586 | and eax, not 0x000000C0 |
587 | mov edx, GLOB_CTRL |
587 | mov edx, GLOB_CTRL |
588 | call [ctrl.ctrl_write32] |
588 | call [ctrl.ctrl_write32] |
Line 589... | Line -... | ||
589 | - | ||
590 | 589 | ||
591 | ret |
590 | ret |
Line 592... | Line 591... | ||
592 | endp |
591 | endp |
593 | 592 | ||
Line 804... | Line 803... | ||
804 | pop eax |
803 | pop eax |
805 | cmp eax, 0xFFFFFFFF |
804 | cmp eax, 0xFFFFFFFF |
806 | je .err |
805 | je .err |
Line 807... | Line 806... | ||
807 | 806 | ||
808 | test eax, CTRL_ST_CREADY |
807 | test eax, CTRL_ST_CREADY |
Line 809... | Line 808... | ||
809 | jnz .ready |
808 | jnz .done ;;;;;.ready |
810 | 809 | ||
811 | call reset_codec |
810 | call reset_codec |
Line 827... | Line 826... | ||
827 | 826 | ||
828 | mov edx, CODEC_REG_POWERDOWN |
827 | mov edx, CODEC_REG_POWERDOWN |
829 | call [ctrl.codec_read16] |
828 | call [ctrl.codec_read16] |
830 | and eax, 0x0F |
829 | and eax, 0x0F |
831 | cmp eax, 0x0F |
830 | cmp eax, 0x0F |
Line 832... | Line 831... | ||
832 | jz .done |
831 | je .done |
833 | 832 | ||
834 | sub [counter] , 1 |
833 | sub [counter] , 1 |
835 | jnz .wait |
834 | jnz .wait |