Comment 143 for bug 1516025

Revision history for this message
In , superquad.vortex2 (superquad.vortex2-linux-kernel-bugs) wrote :

enum {
 ALC662_FIXUP_ASPIRE,
 ALC662_FIXUP_LED_GPIO1,
 ALC662_FIXUP_IDEAPAD,
 ALC272_FIXUP_MARIO,
 ALC662_FIXUP_CZC_P10T,
 ALC662_FIXUP_SKU_IGNORE,
 ALC662_FIXUP_HP_RP5800,
 ALC662_FIXUP_ASUS_MODE1,
 ALC662_FIXUP_ASUS_MODE2,
 ALC662_FIXUP_ASUS_MODE3,
 ALC662_FIXUP_ASUS_MODE4,
 ALC662_FIXUP_ASUS_MODE5,
 ALC662_FIXUP_ASUS_MODE6,
 ALC662_FIXUP_ASUS_MODE7,
 ALC662_FIXUP_ASUS_MODE8,
 ALC662_FIXUP_NO_JACK_DETECT,
 ALC662_FIXUP_ZOTAC_Z68,
 ALC662_FIXUP_INV_DMIC,
 ALC662_FIXUP_DELL_MIC_NO_PRESENCE,
 ALC668_FIXUP_DELL_MIC_NO_PRESENCE,
 ALC662_FIXUP_HEADSET_MODE,
 ALC668_FIXUP_HEADSET_MODE,
 ALC662_FIXUP_BASS_MODE4_CHMAP,
 ALC662_FIXUP_BASS_16,
 ALC662_FIXUP_BASS_1A,
 ALC662_FIXUP_BASS_CHMAP,
 ALC668_FIXUP_AUTO_MUTE,
 ALC668_FIXUP_DELL_DISABLE_AAMIX,
 ALC668_FIXUP_DELL_XPS13,
 ALC662_FIXUP_ASUS_Nx50,
 ALC668_FIXUP_ASUS_Nx51,
        ALC668_FIXUP_DELL_ALIENWARE.
        A:C668_FIXUP_DELL_ALIENWARE_51,
};

 [ALC668_FIXUP_DELL_ALIENWARE] = {
  .type = HDA_FIXUP_PINS,
  .v.pins = (const struct hda_pintbl[]) {
                        { 0x16 , 0x411111f0 },
                        { 0x1a , 0x90100111 },
   { 0x1b, 0x03a1113c }, /* use as headset mic, without its own jack detect */
   { }
  },
  .chained = true,
  .chain_id = ALC668_FIXUP_HEADSET_MODE
 },

 [ALC668_FIXUP_DELL_ALIENWARE_51] = {
  .type = HDA_FIXUP_PINS,
  .v.pins = (const struct hda_pintbl[]) {
                   {0x15, 0x02014010},
                   {0x16, 0x02014011},
                   {0x19, 0x02014012},
   { }
  },

 },

static const struct hda_model_fixup alc662_fixup_models[] = {
 {.id = ALC272_FIXUP_MARIO, .name = "mario"},
 {.id = ALC662_FIXUP_ASUS_MODE1, .name = "asus-mode1"},
 {.id = ALC662_FIXUP_ASUS_MODE2, .name = "asus-mode2"},
 {.id = ALC662_FIXUP_ASUS_MODE3, .name = "asus-mode3"},
 {.id = ALC662_FIXUP_ASUS_MODE4, .name = "asus-mode4"},
 {.id = ALC662_FIXUP_ASUS_MODE5, .name = "asus-mode5"},
 {.id = ALC662_FIXUP_ASUS_MODE6, .name = "asus-mode6"},
 {.id = ALC662_FIXUP_ASUS_MODE7, .name = "asus-mode7"},
 {.id = ALC662_FIXUP_ASUS_MODE8, .name = "asus-mode8"},
        {.id = ALC668_FIXUP_DELL_MIC_NO_PRESENCE, .name = "dell-headset-multi"},
 {.id = ALC668_FIXUP_DELL_ALIENWARE, .name = "dell-alienware"},
 {.id = ALC668_FIXUP_DELL_ALIENWARE_51, .name = "dell-51"},
 {}
};