aboutsummaryrefslogtreecommitdiffstats
path: root/sound/pci/hda/patch_conexant.c
diff options
context:
space:
mode:
Diffstat (limited to 'sound/pci/hda/patch_conexant.c')
-rw-r--r--sound/pci/hda/patch_conexant.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/sound/pci/hda/patch_conexant.c b/sound/pci/hda/patch_conexant.c
index 5b4dbcec6de8..dbf9910c5269 100644
--- a/sound/pci/hda/patch_conexant.c
+++ b/sound/pci/hda/patch_conexant.c
@@ -588,6 +588,7 @@ static void cxt_fixup_olpc_xo(struct hda_codec *codec,
588 const struct hda_fixup *fix, int action) 588 const struct hda_fixup *fix, int action)
589{ 589{
590 struct conexant_spec *spec = codec->spec; 590 struct conexant_spec *spec = codec->spec;
591 struct snd_kcontrol_new *kctl;
591 int i; 592 int i;
592 593
593 if (action != HDA_FIXUP_ACT_PROBE) 594 if (action != HDA_FIXUP_ACT_PROBE)
@@ -606,9 +607,7 @@ static void cxt_fixup_olpc_xo(struct hda_codec *codec,
606 snd_hda_codec_set_pin_target(codec, 0x1a, PIN_VREF50); 607 snd_hda_codec_set_pin_target(codec, 0x1a, PIN_VREF50);
607 608
608 /* override mic boost control */ 609 /* override mic boost control */
609 for (i = 0; i < spec->gen.kctls.used; i++) { 610 snd_array_for_each(&spec->gen.kctls, i, kctl) {
610 struct snd_kcontrol_new *kctl =
611 snd_array_elem(&spec->gen.kctls, i);
612 if (!strcmp(kctl->name, "Mic Boost Volume")) { 611 if (!strcmp(kctl->name, "Mic Boost Volume")) {
613 kctl->put = olpc_xo_mic_boost_put; 612 kctl->put = olpc_xo_mic_boost_put;
614 break; 613 break;
@@ -965,6 +964,7 @@ static const struct snd_pci_quirk cxt5066_fixups[] = {
965 SND_PCI_QUIRK(0x103c, 0x822e, "HP ProBook 440 G4", CXT_FIXUP_MUTE_LED_GPIO), 964 SND_PCI_QUIRK(0x103c, 0x822e, "HP ProBook 440 G4", CXT_FIXUP_MUTE_LED_GPIO),
966 SND_PCI_QUIRK(0x103c, 0x8299, "HP 800 G3 SFF", CXT_FIXUP_HP_MIC_NO_PRESENCE), 965 SND_PCI_QUIRK(0x103c, 0x8299, "HP 800 G3 SFF", CXT_FIXUP_HP_MIC_NO_PRESENCE),
967 SND_PCI_QUIRK(0x103c, 0x829a, "HP 800 G3 DM", CXT_FIXUP_HP_MIC_NO_PRESENCE), 966 SND_PCI_QUIRK(0x103c, 0x829a, "HP 800 G3 DM", CXT_FIXUP_HP_MIC_NO_PRESENCE),
967 SND_PCI_QUIRK(0x103c, 0x8455, "HP Z2 G4", CXT_FIXUP_HP_MIC_NO_PRESENCE),
968 SND_PCI_QUIRK(0x1043, 0x138d, "Asus", CXT_FIXUP_HEADPHONE_MIC_PIN), 968 SND_PCI_QUIRK(0x1043, 0x138d, "Asus", CXT_FIXUP_HEADPHONE_MIC_PIN),
969 SND_PCI_QUIRK(0x152d, 0x0833, "OLPC XO-1.5", CXT_FIXUP_OLPC_XO), 969 SND_PCI_QUIRK(0x152d, 0x0833, "OLPC XO-1.5", CXT_FIXUP_OLPC_XO),
970 SND_PCI_QUIRK(0x17aa, 0x20f2, "Lenovo T400", CXT_PINCFG_LENOVO_TP410), 970 SND_PCI_QUIRK(0x17aa, 0x20f2, "Lenovo T400", CXT_PINCFG_LENOVO_TP410),
@@ -998,6 +998,7 @@ static const struct hda_model_fixup cxt5066_fixup_models[] = {
998 { .id = CXT_FIXUP_MUTE_LED_EAPD, .name = "mute-led-eapd" }, 998 { .id = CXT_FIXUP_MUTE_LED_EAPD, .name = "mute-led-eapd" },
999 { .id = CXT_FIXUP_HP_DOCK, .name = "hp-dock" }, 999 { .id = CXT_FIXUP_HP_DOCK, .name = "hp-dock" },
1000 { .id = CXT_FIXUP_MUTE_LED_GPIO, .name = "mute-led-gpio" }, 1000 { .id = CXT_FIXUP_MUTE_LED_GPIO, .name = "mute-led-gpio" },
1001 { .id = CXT_FIXUP_HP_MIC_NO_PRESENCE, .name = "hp-mic-fix" },
1001 {} 1002 {}
1002}; 1003};
1003 1004