[SRU][OEM-B][PATCH 1/1] UBUNTU: SAUCE: ALSA: hda - don't forcibly resume the codec on two DELL machines
Hui Wang
hui.wang at canonical.com
Tue Sep 24 07:25:42 UTC 2019
BugLink: https://bugs.launchpad.net/bugs/1845140
Signed-off-by: Hui Wang <hui.wang at canonical.com>
---
sound/pci/hda/patch_realtek.c | 14 ++++++++++++++
1 file changed, 14 insertions(+)
diff --git a/sound/pci/hda/patch_realtek.c b/sound/pci/hda/patch_realtek.c
index 6d8779afafe3..fdbd8a558796 100644
--- a/sound/pci/hda/patch_realtek.c
+++ b/sound/pci/hda/patch_realtek.c
@@ -550,6 +550,13 @@ static void alc_fixup_sku_ignore(struct hda_codec *codec,
}
}
+static void alc_fixup_skip_force_resume(struct hda_codec *codec,
+ const struct hda_fixup *fix, int action)
+{
+ if (action == HDA_FIXUP_ACT_PRE_PROBE)
+ codec->relaxed_resume = 1;
+}
+
static void alc_fixup_no_depop_delay(struct hda_codec *codec,
const struct hda_fixup *fix, int action)
{
@@ -5735,6 +5742,7 @@ enum {
ALC286_FIXUP_ACER_AIO_HEADSET_MIC,
ALC256_FIXUP_ASUS_MIC_NO_PRESENCE,
ALC299_FIXUP_PREDATOR_SPK,
+ ALC256_FIXUP_SKIP_FORCE_RESUME,
};
static const struct hda_fixup alc269_fixups[] = {
@@ -6748,6 +6756,10 @@ static const struct hda_fixup alc269_fixups[] = {
{ }
}
},
+ [ALC256_FIXUP_SKIP_FORCE_RESUME] = {
+ .type = HDA_FIXUP_FUNC,
+ .v.func = alc_fixup_skip_force_resume,
+ },
};
static const struct snd_pci_quirk alc269_fixup_tbl[] = {
@@ -6817,7 +6829,9 @@ static const struct snd_pci_quirk alc269_fixup_tbl[] = {
SND_PCI_QUIRK(0x1028, 0x0873, "Dell Precision 3930", ALC255_FIXUP_DUMMY_LINEOUT_VERB),
SND_PCI_QUIRK(0x1028, 0x08ad, "Dell WYSE AIO", ALC225_FIXUP_DELL_WYSE_AIO_MIC_NO_PRESENCE),
SND_PCI_QUIRK(0x1028, 0x08ae, "Dell WYSE NB", ALC225_FIXUP_DELL1_MIC_NO_PRESENCE),
+ SND_PCI_QUIRK(0x1028, 0x091b, "Dell", ALC256_FIXUP_SKIP_FORCE_RESUME),
SND_PCI_QUIRK(0x1028, 0x0935, "Dell", ALC274_FIXUP_DELL_AIO_LINEOUT_VERB),
+ SND_PCI_QUIRK(0x1028, 0x097f, "Dell", ALC256_FIXUP_SKIP_FORCE_RESUME),
SND_PCI_QUIRK(0x1028, 0x164a, "Dell", ALC293_FIXUP_DELL1_MIC_NO_PRESENCE),
SND_PCI_QUIRK(0x1028, 0x164b, "Dell", ALC293_FIXUP_DELL1_MIC_NO_PRESENCE),
SND_PCI_QUIRK(0x103c, 0x1586, "HP", ALC269_FIXUP_HP_MUTE_LED_MIC2),
--
2.17.1
More information about the kernel-team
mailing list