Skip to content

Commit f9afe3a

Browse files
dengxiangsmb49
authored andcommitted
ALSA: hda/realtek: Add quirks for Unis H3C Desktop B760 & Q760
BugLink: https://bugs.launchpad.net/bugs/2038486 [ Upstream commit 73f1c75 ] These models use NSIWAY amplifiers for internal speaker, but cannot put sound outside from these amplifiers. So eapd verbs are needed to initialize the amplifiers. They can be added during boot to get working sound out of internal speaker. Signed-off-by: dengxiang <dengxiang@nfschina.com> Link: https://lore.kernel.org/r/20230703021751.2945750-1-dengxiang@nfschina.com Signed-off-by: Takashi Iwai <tiwai@suse.de> Signed-off-by: Sasha Levin <sashal@kernel.org> Signed-off-by: Kamal Mostafa <kamal@canonical.com> Signed-off-by: Stefan Bader <stefan.bader@canonical.com>
1 parent c519d0a commit f9afe3a

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

sound/pci/hda/patch_realtek.c

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11051,6 +11051,7 @@ enum {
1105111051
ALC897_FIXUP_HP_HSMIC_VERB,
1105211052
ALC897_FIXUP_LENOVO_HEADSET_MODE,
1105311053
ALC897_FIXUP_HEADSET_MIC_PIN2,
11054+
ALC897_FIXUP_UNIS_H3C_X500S,
1105411055
};
1105511056

1105611057
static const struct hda_fixup alc662_fixups[] = {
@@ -11490,6 +11491,13 @@ static const struct hda_fixup alc662_fixups[] = {
1149011491
.chained = true,
1149111492
.chain_id = ALC897_FIXUP_LENOVO_HEADSET_MODE
1149211493
},
11494+
[ALC897_FIXUP_UNIS_H3C_X500S] = {
11495+
.type = HDA_FIXUP_VERBS,
11496+
.v.verbs = (const struct hda_verb[]) {
11497+
{ 0x14, AC_VERB_SET_EAPD_BTLENABLE, 0 },
11498+
{}
11499+
},
11500+
},
1149311501
};
1149411502

1149511503
static const struct snd_pci_quirk alc662_fixup_tbl[] = {
@@ -11651,6 +11659,7 @@ static const struct hda_model_fixup alc662_fixup_models[] = {
1165111659
{.id = ALC662_FIXUP_USI_HEADSET_MODE, .name = "usi-headset"},
1165211660
{.id = ALC662_FIXUP_LENOVO_MULTI_CODECS, .name = "dual-codecs"},
1165311661
{.id = ALC669_FIXUP_ACER_ASPIRE_ETHOS, .name = "aspire-ethos"},
11662+
{.id = ALC897_FIXUP_UNIS_H3C_X500S, .name = "unis-h3c-x500s"},
1165411663
{}
1165511664
};
1165611665

0 commit comments

Comments
 (0)