Rev 3083 | Rev 4320 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 3083 | Rev 3496 | ||
---|---|---|---|
Line 152... | Line 152... | ||
152 | proc snd_hda_sequence_write stdcall, seq:dword |
152 | proc snd_hda_sequence_write stdcall, seq:dword |
153 | push eax ebx ecx esi |
153 | push eax ebx ecx esi |
154 | mov esi, [seq] |
154 | mov esi, [seq] |
155 | @@: |
155 | @@: |
156 | mov ecx, [esi + hda_verb.nid] |
156 | ;mov ecx, [esi + hda_verb.nid] |
157 | mov ebx, [esi + hda_verb.verb] |
157 | ;mov ebx, [esi + hda_verb.verb] |
158 | mov eax, [esi + hda_verb.param] |
158 | ;mov eax, [esi + hda_verb.param] |
159 | stdcall snd_hda_codec_write, ecx, 0, ebx, eax |
159 | ;stdcall snd_hda_codec_write, ecx, 0, ebx, eax |
- | 160 | ;add esi, hda_verb.sizeof |
|
- | 161 | ;test ecx, ecx |
|
- | 162 | ;jnz @b |
|
- | 163 | ;______________________________________ |
|
- | 164 | cmp dword [esi], 0 |
|
- | 165 | je .out |
|
- | 166 | movzx ecx, word [esi] ; NID |
|
- | 167 | movzx ebx, word [esi+2] ; verb |
|
- | 168 | and bx, 0x0FFF |
|
- | 169 | movzx eax, word [esi + 4] ; sizeof(param) = 4 bytes |
|
- | 170 | stdcall snd_hda_codec_write, ecx, 0, ebx, eax |
|
160 | add esi, hda_verb.sizeof |
171 | add esi, 6 |
161 | test ecx, ecx |
- | |
162 | jnz @b |
172 | jmp @b |
163 | pop esi ecx ebx eax |
173 | .out: |
- | 174 | pop esi ecx ebx eax |
|
164 | ret |
175 | ret |
165 | endp |
176 | endp |
166 | 177 | ||
Line 545... | Line 556... | ||
545 | 556 | ||
Line 546... | Line 557... | ||
546 | @@: |
557 | @@: |
Line 547... | Line 558... | ||
547 | 558 | ||
548 | ; power up all before initialization |
559 | ; power up all before initialization |
Line 549... | Line 560... | ||
549 | ; stdcall snd_hda_set_power_state, ebx, AC_PWRST_D0 |
560 | stdcall snd_hda_set_power_state, ebx, AC_PWRST_D0 |
550 | 561 | ||
551 | pop ebx |
562 | pop ebx |
Line 565... | Line 576... | ||
565 | call get_codec_name |
576 | call get_codec_name |
566 | @@: |
577 | @@: |
567 | ; call the default parser |
578 | ; call the default parser |
568 | stdcall snd_hda_parse_generic_codec ;entry point to generic tree parser!!! |
579 | stdcall snd_hda_parse_generic_codec ;entry point to generic tree parser!!! |
569 | ;Asper+:patch for HP Elitebook 8730w [ |
580 | |
570 | ; push eax ebx |
- | |
571 | ; mov ebx, [codec.afg] |
- | |
572 | ; stdcall snd_hda_codec_write, ebx, 0, AC_VERB_SET_GPIO_MASK, 0x02 |
- | |
573 | ; stdcall snd_hda_codec_write, ebx, 0, AC_VERB_SET_GPIO_DIRECTION, 0x02 |
- | |
574 | ; stdcall snd_hda_codec_write, ebx, 0, AC_VERB_SET_GPIO_DATA, 0x02 ; first muted |
- | |
575 | ; pop ebx eax |
- | |
576 | ;Asper+ ] |
- | |
577 | test eax, eax |
581 | test eax, eax |
578 | jz @f |
582 | jz @f |
579 | if DEBUG |
583 | if DEBUG |
580 | push esi |
584 | push esi |
581 | mov esi, emsgNoParserAvailable |
585 | mov esi, emsgNoParserAvailable |
582 | call SysMsgBoardStr |
586 | call SysMsgBoardStr |