Commit 45f0e571 authored by Philippe Michaud-Boudreault's avatar Philippe Michaud-Boudreault Committed by Ed Maste
Browse files

sound: add patch for Lenovo Legion 5 AMD

MFC after:	1 week
Differential Revision:	https://reviews.freebsd.org/D30333
parent 8a5b4859
......@@ -312,6 +312,16 @@ hdac_pin_patch(struct hdaa_widget *w)
patch_str = "as=1 seq=15";
break;
}
} else if (id == HDA_CODEC_ALC257 &&
(subid == LENOVO_L5AMD_SUBVENDOR)) {
switch (nid) {
case 20:
patch_str = "as=1 seq=0";
break;
case 33:
patch_str = "as=1 seq=15";
break;
}
} else {
/*
* loop over hdaa_model_pin_patch
......
......@@ -360,6 +360,7 @@
#define LENOVO_X230T_SUBVENDOR HDA_MODEL_CONSTRUCT(LENOVO, 0x2203)
#define LENOVO_T431S_SUBVENDOR HDA_MODEL_CONSTRUCT(LENOVO, 0x2208)
#define LENOVO_G580_SUBVENDOR HDA_MODEL_CONSTRUCT(LENOVO, 0x3977)
#define LENOVO_L5AMD_SUBVENDOR HDA_MODEL_CONSTRUCT(LENOVO, 0x381b)
#define LENOVO_3000_SUBVENDOR HDA_MODEL_CONSTRUCT(LENOVO, 0x384e)
#define LENOVO_ALL_SUBVENDOR HDA_MODEL_CONSTRUCT(LENOVO, 0xffff)
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment