Skip to content

Commit

Permalink
WIP: Support for oryp5
Browse files Browse the repository at this point in the history
This adds the oryp5 to the patchset for the oryp4 that enables speaker 
output, and also attempts to fix headset microphone input
  • Loading branch information
jackpot51 committed Jan 30, 2019
1 parent 0feec64 commit 9ff7bd8
Showing 1 changed file with 27 additions and 1 deletion.
28 changes: 27 additions & 1 deletion sound/pci/hda/patch_realtek.c
Original file line number Diff line number Diff line change
Expand Up @@ -1847,6 +1847,8 @@ enum {
ALC887_FIXUP_BASS_CHMAP,
ALC1220_FIXUP_GB_DUAL_CODECS,
ALC1220_FIXUP_CLEVO_P950,
ALC1220_FIXUP_CLEVO_P960,
ALC1220_FIXUP_CLEVO_P960_PINS,
};

static void alc889_fixup_coef(struct hda_codec *codec,
Expand Down Expand Up @@ -2048,6 +2050,16 @@ static void alc1220_fixup_clevo_p950(struct hda_codec *codec,
snd_hda_override_conn_list(codec, 0x1b, 1, conn1);
}

static void alc_fixup_headset_mode_no_hp_mic(struct hda_codec *codec,
const struct hda_fixup *fix, int action);

static void alc1220_fixup_clevo_p960(struct hda_codec *codec,
const struct hda_fixup *fix, int action)
{
alc1220_fixup_clevo_p950(codec, fix, action);
alc_fixup_headset_mode_no_hp_mic(codec, fix, action);
}

static const struct hda_fixup alc882_fixups[] = {
[ALC882_FIXUP_ABIT_AW9D_MAX] = {
.type = HDA_FIXUP_PINS,
Expand Down Expand Up @@ -2292,6 +2304,19 @@ static const struct hda_fixup alc882_fixups[] = {
.type = HDA_FIXUP_FUNC,
.v.func = alc1220_fixup_clevo_p950,
},
[ALC1220_FIXUP_CLEVO_P960] = {
.type = HDA_FIXUP_FUNC,
.v.func = alc1220_fixup_clevo_p960,
.chained = true,
.chain_id = ALC1220_FIXUP_CLEVO_P960_PINS,
},
[ALC1220_FIXUP_CLEVO_P960_PINS] = {
.type = HDA_FIXUP_PINS,
.v.pins = (const struct hda_pintbl[]) {
{ 0x1a, 0x01a1913c }, /* use as headset mic, without its own jack detect */
{ }
},
},
};

static const struct snd_pci_quirk alc882_fixup_tbl[] = {
Expand Down Expand Up @@ -2368,6 +2393,7 @@ static const struct snd_pci_quirk alc882_fixup_tbl[] = {
SND_PCI_QUIRK(0x1558, 0x9501, "Clevo P950HR", ALC1220_FIXUP_CLEVO_P950),
SND_PCI_QUIRK(0x1558, 0x95e1, "Clevo P95xER", ALC1220_FIXUP_CLEVO_P950),
SND_PCI_QUIRK(0x1558, 0x95e2, "Clevo P950ER", ALC1220_FIXUP_CLEVO_P950),
SND_PCI_QUIRK(0x1558, 0x96e1, "Clevo P960ED", ALC1220_FIXUP_CLEVO_P960),
SND_PCI_QUIRK_VENDOR(0x1558, "Clevo laptop", ALC882_FIXUP_EAPD),
SND_PCI_QUIRK(0x161f, 0x2054, "Medion laptop", ALC883_FIXUP_EAPD),
SND_PCI_QUIRK(0x17aa, 0x3a0d, "Lenovo Y530", ALC882_FIXUP_LENOVO_Y530),
Expand Down Expand Up @@ -4902,7 +4928,7 @@ static void alc_fixup_headset_mode_alc255_no_hp_mic(struct hda_codec *codec,
struct alc_spec *spec = codec->spec;
spec->parse_flags |= HDA_PINCFG_HEADSET_MIC;
alc255_set_default_jack_type(codec);
}
}
else
alc_fixup_headset_mode(codec, fix, action);
}
Expand Down

0 comments on commit 9ff7bd8

Please sign in to comment.