Subversion Repositories Kolibri OS

Rev

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

Rev 4321 Rev 4324
Line 510... Line 510...
510
     mov     eax, [codec.afg]
510
     mov     eax, [codec.afg]
511
     test    eax, eax
511
     test    eax, eax
512
     jnz     @f
512
     jnz     @f
Line -... Line 513...
-
 
513
 
-
 
514
     ;Asper+: try to use another codec if possible [
-
 
515
  if DEBUG
-
 
516
     push    esi
-
 
517
     mov     esi, msgNoAFGFound
-
 
518
     call    SysMsgBoardStr
-
 
519
     pop     esi
-
 
520
  end  if
-
 
521
     push    ecx
-
 
522
     inc     eax
-
 
523
     mov     ecx, [codec.addr]
-
 
524
     shl     eax, cl
-
 
525
     pop     ecx
-
 
526
     cmp     eax, [ctrl.codec_mask]
-
 
527
     jl      .skip_codec
-
 
528
     ;Asper+]
513
 
529
 
514
     mov     eax, [codec.mfg]
530
     mov     eax, [codec.mfg]
515
     test    eax, eax
531
     test    eax, eax
516
     jnz     @f
532
     jnz     @f
517
  if DEBUG
533
  if DEBUG
518
     push    esi
534
     push    esi
519
     mov     esi, emsgNoAFGorMFGFound
535
     mov     esi, emsgNoAFGorMFGFound
520
     call    SysMsgBoardStr
536
     call    SysMsgBoardStr
521
     pop     esi
537
     pop     esi
-
 
538
  end  if
522
  end  if
539
  .skip_codec:
523
     mov     eax, -1
540
     mov     eax, -1
524
     ret
541
     ret
Line 525... Line 542...
525
  @@:
542
  @@:
Line 558... Line 575...
558
 
575
 
Line 559... Line 576...
559
     ; power up all before initialization
576
     ; power up all before initialization
560
     stdcall snd_hda_set_power_state, ebx, AC_PWRST_D0
577
     stdcall snd_hda_set_power_state, ebx, AC_PWRST_D0
Line -... Line 578...
-
 
578
 
561
 
579
     xor     eax, eax
562
     pop     ebx
580
     pop     ebx
563
     ret
581
     ret