Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Applying HDA pin fixes specific for the Loki MiniPro #12

Merged
merged 2 commits into from
Jul 30, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 17 additions & 1 deletion sound/pci/hda/patch_realtek.c
Original file line number Diff line number Diff line change
Expand Up @@ -7306,6 +7306,7 @@ enum {
ALC269VB_FIXUP_ASUS_ZENBOOK_UX31A,
ALC269VB_FIXUP_ASUS_MIC_NO_PRESENCE,
ALC269VB_FIXUP_AYANEO_SPKR_PIN_FIX,
ALC269VB_FIXUP_AYN_SPKR_PIN_FIX,
ALC269_FIXUP_LIMIT_INT_MIC_BOOST_MUTE_LED,
ALC269VB_FIXUP_ORDISSIMO_EVE2,
ALC283_FIXUP_CHROME_BOOK,
Expand Down Expand Up @@ -7551,14 +7552,20 @@ static void alc269_fixup_match_via_dmi(struct hda_codec *codec,
const char *board_name = dmi_get_system_info(DMI_BOARD_NAME);

if (dmi_name_in_vendors("AYANEO") || dmi_name_in_vendors("AYADEVICE") || dmi_name_in_vendors("AYA DEVICE")) {
codec_dbg(codec, "Board Vendor: Ayaneo\n");
if (board_name && (strcmp(board_name, "AYANEO 2") || strcmp(board_name, "AYANEO 2S") || strcmp(board_name, "GEEK") || strcmp(board_name, "GEEK 1S"))) {
codec_dbg(codec, "Applying: ALC269_FIXUP_AYA_HEADSET_VOLUME\n");
alc269_fix_id = ALC269_FIXUP_AYA_HEADSET_VOLUME;
} else {
codec_dbg(codec, "No matching board found. Applying default settings.\n");
return;
}
} else if (dmi_name_in_vendors("ayn") && strcmp(board_name, "Loki MiniPro")) {
alc269_fix_id = ALC269VB_FIXUP_AYANEO_SPKR_PIN_FIX;
codec_dbg(codec, "Board Vendor: Ayn\n");
codec_dbg(codec, "Applying: ALC269VB_FIXUP_AYN_SPKR_PIN_FIX\n");
alc269_fix_id = ALC269VB_FIXUP_AYN_SPKR_PIN_FIX;
} else {
codec_dbg(codec, "No matching board found. Applying default settings.\n");
return;
}
__snd_hda_apply_fixup(codec, alc269_fix_id, action, 0);
Expand Down Expand Up @@ -8050,6 +8057,14 @@ static const struct hda_fixup alc269_fixups[] = {
{ }
},
},
[ALC269VB_FIXUP_AYN_SPKR_PIN_FIX] = {
.type = HDA_FIXUP_PINS,
.v.pins = (const struct hda_pintbl[]) {
{ 0x14, 0x40f000f0 }, /* not connected */
{ 0x1a, 0x90170150 }, /* speaker */
{ }
},
},
[ALC269_FIXUP_LIMIT_INT_MIC_BOOST_MUTE_LED] = {
.type = HDA_FIXUP_FUNC,
.v.func = alc269_fixup_limit_int_mic_boost,
Expand Down Expand Up @@ -10801,6 +10816,7 @@ static const struct hda_model_fixup alc269_fixup_models[] = {
{.id = ALC269VB_FIXUP_ASUS_ZENBOOK_UX31A, .name = "asus-zenbook-ux31a"},
{.id = ALC269VB_FIXUP_ORDISSIMO_EVE2, .name = "ordissimo"},
{.id = ALC269VB_FIXUP_AYANEO_SPKR_PIN_FIX, .name = "ayaneo-speaker-pin-fix"},
{.id = ALC269VB_FIXUP_AYN_SPKR_PIN_FIX, .name = "ayn-speaker-pin-fix"},
{.id = ALC282_FIXUP_ASUS_TX300, .name = "asus-tx300"},
{.id = ALC283_FIXUP_INT_MIC, .name = "alc283-int-mic"},
{.id = ALC290_FIXUP_MONO_SPEAKERS_HSJACK, .name = "mono-speakers"},
Expand Down