diff options
author | David Henningsson <david.henningsson@canonical.com> | 2010-09-16 04:07:53 -0400 |
---|---|---|
committer | Takashi Iwai <tiwai@suse.de> | 2010-09-16 04:18:54 -0400 |
commit | 145a902bfeb1f89a41165bd2d1e633ce070bcb73 (patch) | |
tree | c4745645ba16a05280139f5539097c452c4d8ccc /sound/pci | |
parent | 3894335876a6257ac46e14845bd37ae6fb0f7c87 (diff) |
ALSA: HDA: Enable internal speaker on Dell M101z
BugLink: http://launchpad.net/bugs/640254
In some cases a magic processing coefficient is needed to enable
the internal speaker on Dell M101z. According to Realtek, this
processing coefficient is only present on ALC269vb.
Cc: stable@kernel.org
Signed-off-by: David Henningsson <david.henningsson@canonical.com>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Diffstat (limited to 'sound/pci')
-rw-r--r-- | sound/pci/hda/patch_realtek.c | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/sound/pci/hda/patch_realtek.c b/sound/pci/hda/patch_realtek.c index bcbf9160ed81..a1312a6c8af2 100644 --- a/sound/pci/hda/patch_realtek.c +++ b/sound/pci/hda/patch_realtek.c | |||
@@ -14453,6 +14453,7 @@ static void alc269_auto_init(struct hda_codec *codec) | |||
14453 | 14453 | ||
14454 | enum { | 14454 | enum { |
14455 | ALC269_FIXUP_SONY_VAIO, | 14455 | ALC269_FIXUP_SONY_VAIO, |
14456 | ALC269_FIXUP_DELL_M101Z, | ||
14456 | }; | 14457 | }; |
14457 | 14458 | ||
14458 | static const struct hda_verb alc269_sony_vaio_fixup_verbs[] = { | 14459 | static const struct hda_verb alc269_sony_vaio_fixup_verbs[] = { |
@@ -14464,11 +14465,20 @@ static const struct alc_fixup alc269_fixups[] = { | |||
14464 | [ALC269_FIXUP_SONY_VAIO] = { | 14465 | [ALC269_FIXUP_SONY_VAIO] = { |
14465 | .verbs = alc269_sony_vaio_fixup_verbs | 14466 | .verbs = alc269_sony_vaio_fixup_verbs |
14466 | }, | 14467 | }, |
14468 | [ALC269_FIXUP_DELL_M101Z] = { | ||
14469 | .verbs = (const struct hda_verb[]) { | ||
14470 | /* Enables internal speaker */ | ||
14471 | {0x20, AC_VERB_SET_COEF_INDEX, 13}, | ||
14472 | {0x20, AC_VERB_SET_PROC_COEF, 0x4040}, | ||
14473 | {} | ||
14474 | } | ||
14475 | }, | ||
14467 | }; | 14476 | }; |
14468 | 14477 | ||
14469 | static struct snd_pci_quirk alc269_fixup_tbl[] = { | 14478 | static struct snd_pci_quirk alc269_fixup_tbl[] = { |
14470 | SND_PCI_QUIRK(0x104d, 0x9071, "Sony VAIO", ALC269_FIXUP_SONY_VAIO), | 14479 | SND_PCI_QUIRK(0x104d, 0x9071, "Sony VAIO", ALC269_FIXUP_SONY_VAIO), |
14471 | SND_PCI_QUIRK(0x104d, 0x9077, "Sony VAIO", ALC269_FIXUP_SONY_VAIO), | 14480 | SND_PCI_QUIRK(0x104d, 0x9077, "Sony VAIO", ALC269_FIXUP_SONY_VAIO), |
14481 | SND_PCI_QUIRK(0x1028, 0x0470, "Dell M101z", ALC269_FIXUP_DELL_M101Z), | ||
14472 | {} | 14482 | {} |
14473 | }; | 14483 | }; |
14474 | 14484 | ||