]> git.ipfire.org Git - ipfire-2.x.git/blame - src/patches/suse-2.6.27.39/patches.drivers/alsa-post-ga-hda-stac927x-dell-volknob-fix
Fix oinkmaster patch.
[ipfire-2.x.git] / src / patches / suse-2.6.27.39 / patches.drivers / alsa-post-ga-hda-stac927x-dell-volknob-fix
CommitLineData
82094b55
AF
1From ccca7cdc1b8dd2e7b67e9289a6abf117b11cbe6b Mon Sep 17 00:00:00 2001
2From: Takashi Iwai <tiwai@suse.de>
3Date: Tue, 13 Oct 2009 15:32:21 +0200
4Subject: ALSA: hda - Fix volume-knob setup for Dell laptops with STAC9228
5Patch-mainline:
6References: bnc#545013
7
8The volume-knob widget needs to be set with 0x7f instead of 0xff
9for Dell laptops with STAC9228 codec, too, like the previous commit.
10
11Reference: Novell bnc#545013
12 http://bugzilla.novell.com/show_bug.cgi?id=545013
13
14Signed-off-by: Takashi Iwai <tiwai@suse.de>
15
16---
17 sound/pci/hda/patch_sigmatel.c | 12 +++++++++++-
18 1 file changed, 11 insertions(+), 1 deletion(-)
19
20--- a/sound/pci/hda/patch_sigmatel.c
21+++ b/sound/pci/hda/patch_sigmatel.c
22@@ -814,6 +814,16 @@
23 {}
24 };
25
26+static struct hda_verb dell_3st_core_init[] = {
27+ /* don't set delta bit */
28+ {0x24, AC_VERB_SET_VOLUME_KNOB_CONTROL, 0x7f},
29+ /* unmute node 0x1b */
30+ {0x1b, AC_VERB_SET_AMP_GAIN_MUTE, 0xb000},
31+ /* select node 0x03 as DAC */
32+ {0x0b, AC_VERB_SET_CONNECT_SEL, 0x01},
33+ {}
34+};
35+
36 static struct hda_verb stac927x_core_init[] = {
37 /* set master volume and direct control */
38 { 0x24, AC_VERB_SET_VOLUME_KNOB_CONTROL, 0xff},
39@@ -5342,7 +5352,7 @@
40 spec->dmic_nids = stac927x_dmic_nids;
41 spec->num_dmics = STAC927X_NUM_DMICS;
42
43- spec->init = d965_core_init;
44+ spec->init = dell_3st_core_init;
45 spec->dmux_nids = stac927x_dmux_nids;
46 spec->num_dmuxes = ARRAY_SIZE(stac927x_dmux_nids);
47 break;