Skip to content
This repository has been archived by the owner on Dec 17, 2021. It is now read-only.

Commit

Permalink
alc257 T480 - try #1
Browse files Browse the repository at this point in the history
  • Loading branch information
xma committed Dec 13, 2020
1 parent 7cc1aef commit 910d205
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
Binary file modified ComboJack_Installer/ComboJack
Binary file not shown.
6 changes: 4 additions & 2 deletions ComboJack_Source/Combo Jack/hda-verb.m
Original file line number Diff line number Diff line change
Expand Up @@ -150,7 +150,8 @@
long codecID = 0;
uint32_t subVendor = 0;
uint32_t subDevice = 0;
long codecIDArr[3] = {0x10ec0256, 0x10ec0255, 0x10ec0298};
#define codecIDArr_len 4
long codecIDArr[codecIDArr_len] = {0x10ec0257, 0x10ec0256, 0x10ec0255, 0x10ec0298};
int xps13SubDev[3] = {0x0704, 0x075b, 0x082a};

//dialog text
Expand Down Expand Up @@ -739,6 +740,7 @@ void alcInit()
WRITE_COEF(0x46, 0x0004);
WRITE_COEF(0x1b, 0x0c4b);
break;
case 0x10ec0257:
case 0x10ec0255:
ALC255_COMMON:
VerbCommand(HDA_VERB(0x19, AC_VERB_SET_PIN_WIDGET_CONTROL, 0x24));
Expand Down Expand Up @@ -885,7 +887,7 @@ int main()
// Get audio device info, exit if no compatible device found
getAudioID();
//long codecIDArr[3] = {0x10ec0256, 0x10ec0255, 0x10ec0298};
if (indexOf_L(codecIDArr, 3, codecID) == -1 || ! subVendor || !subDevice)
if (indexOf_L(codecIDArr, codecIDArr_len, codecID) == -1 || ! subVendor || !subDevice)
{
fprintf(stderr, "No compatible audio device found! Exit now.\n");
return 1;
Expand Down

0 comments on commit 910d205

Please sign in to comment.