[alsa-devel] [PATCH] ALSA: hda - limit mic boost on Asus UX31[A, E]
Takashi Iwai
tiwai at suse.de
Wed Nov 27 17:18:47 CET 2013
At Wed, 27 Nov 2013 17:12:03 +0100,
Oleksij Rempel wrote:
>
> This both devices need limit for internal dmic.
>
> Signed-off-by: Oleksij Rempel <linux at rempel-privat.de>
Ah, you have this Zenbook. While I'll take your patch, yet a
counter-question to you:
I got a bug report complaining that the output level on this (or
similar) machine is too low compared with Windows. Is it so on yours,
too?
If so, does the patch below make the level equivalent?
The reporter isn't responsive, so need more better testing...
BTW, I'd suggest to name the new fixup in your patch as
ALC269VB_FIXUP_ZENBOOK (or ALC269VB_FIXUP_ASUS_ZENBOOK) as my patch
does.
thanks,
Takashi
---
diff --git a/sound/pci/hda/patch_realtek.c b/sound/pci/hda/patch_realtek.c
index c4ad9d198068..cb004359f926 100644
--- a/sound/pci/hda/patch_realtek.c
+++ b/sound/pci/hda/patch_realtek.c
@@ -3778,6 +3778,7 @@ enum {
ALC269_FIXUP_DMIC,
ALC269VB_FIXUP_AMIC,
ALC269VB_FIXUP_DMIC,
+ ALC269VB_FIXUP_ZENBOOK,
ALC269_FIXUP_HP_MUTE_LED,
ALC269_FIXUP_HP_MUTE_LED_MIC1,
ALC269_FIXUP_HP_MUTE_LED_MIC2,
@@ -3933,6 +3934,17 @@ static const struct hda_fixup alc269_fixups[] = {
{ }
},
},
+ [ALC269VB_FIXUP_ZENBOOK] = {
+ .type = HDA_FIXUP_VERBS,
+ .v.verbs = (const struct hda_verb[]) {
+ /* class-D output boost +6dB */
+ {0x20, AC_VERB_SET_COEF_INDEX, 0x12},
+ {0x20, AC_VERB_SET_PROC_COEF, 0x3000},
+ { }
+ },
+ .chained = true,
+ .chain_id = ALC269VB_FIXUP_DMIC,
+ },
[ALC269_FIXUP_HP_MUTE_LED] = {
.type = HDA_FIXUP_FUNC,
.v.func = alc269_fixup_hp_mute_led,
@@ -4189,8 +4201,8 @@ static const struct snd_pci_quirk alc269_fixup_tbl[] = {
SND_PCI_QUIRK(0x1043, 0x103f, "ASUS TX300", ALC282_FIXUP_ASUS_TX300),
SND_PCI_QUIRK(0x1043, 0x106d, "Asus K53BE", ALC269_FIXUP_LIMIT_INT_MIC_BOOST),
SND_PCI_QUIRK(0x1043, 0x115d, "Asus 1015E", ALC269_FIXUP_LIMIT_INT_MIC_BOOST),
- SND_PCI_QUIRK(0x1043, 0x1427, "Asus Zenbook UX31E", ALC269VB_FIXUP_DMIC),
- SND_PCI_QUIRK(0x1043, 0x1517, "Asus Zenbook UX31A", ALC269VB_FIXUP_DMIC),
+ SND_PCI_QUIRK(0x1043, 0x1427, "Asus Zenbook UX31E", ALC269VB_FIXUP_ZENBOOK),
+ SND_PCI_QUIRK(0x1043, 0x1517, "Asus Zenbook UX31A", ALC269VB_FIXUP_ZENBOOK),
SND_PCI_QUIRK(0x1043, 0x16e3, "ASUS UX50", ALC269_FIXUP_STEREO_DMIC),
SND_PCI_QUIRK(0x1043, 0x1a13, "Asus G73Jw", ALC269_FIXUP_ASUS_G73JW),
SND_PCI_QUIRK(0x1043, 0x1b13, "Asus U41SV", ALC269_FIXUP_INV_DMIC),
More information about the Alsa-devel
mailing list