aboutsummaryrefslogtreecommitdiffstats
path: root/sound/pci
diff options
context:
space:
mode:
authorTakashi Iwai <tiwai@suse.de>2012-11-23 02:26:58 -0500
committerTakashi Iwai <tiwai@suse.de>2012-11-23 02:37:32 -0500
commit98415eacb35df0ebce6b9b2d52af1af66ee0b72f (patch)
tree7303c9eb6643979524221460372cba4e40b580fc /sound/pci
parent829e87e04cb5052f5748aba2788eee13ea7c2773 (diff)
ALSA: hda - Add missing verb applications in patch_cirrus.c
We forgot to apply the fixup verbs in cs_init(). But adding the fixup verbs will break mbp101 fixup that has been fixed recently again, since the mbp101 fixup contains the wrong verbs to override. So these bogus verbs must be removed, too. Signed-off-by: Takashi Iwai <tiwai@suse.de>
Diffstat (limited to 'sound/pci')
-rw-r--r--sound/pci/hda/patch_cirrus.c17
1 files changed, 2 insertions, 15 deletions
diff --git a/sound/pci/hda/patch_cirrus.c b/sound/pci/hda/patch_cirrus.c
index 3fb02ecd82a5..6e1e711585ff 100644
--- a/sound/pci/hda/patch_cirrus.c
+++ b/sound/pci/hda/patch_cirrus.c
@@ -85,7 +85,6 @@ enum {
85 CS420X_GPIO_13, 85 CS420X_GPIO_13,
86 CS420X_GPIO_23, 86 CS420X_GPIO_23,
87 CS420X_MBP101, 87 CS420X_MBP101,
88 CS420X_MBP101_COEF,
89 CS420X_AUTO, 88 CS420X_AUTO,
90 /* aliases */ 89 /* aliases */
91 CS420X_IMAC27_122 = CS420X_GPIO_23, 90 CS420X_IMAC27_122 = CS420X_GPIO_23,
@@ -1177,14 +1176,6 @@ static const struct hda_verb cs_errata_init_verbs[] = {
1177 {} /* terminator */ 1176 {} /* terminator */
1178}; 1177};
1179 1178
1180static const struct hda_verb mbp101_init_verbs[] = {
1181 {0x11, AC_VERB_SET_COEF_INDEX, 0x0002},
1182 {0x11, AC_VERB_SET_PROC_COEF, 0x100a},
1183 {0x11, AC_VERB_SET_COEF_INDEX, 0x0004},
1184 {0x11, AC_VERB_SET_PROC_COEF, 0x000f},
1185 {}
1186};
1187
1188/* SPDIF setup */ 1179/* SPDIF setup */
1189static void init_digital(struct hda_codec *codec) 1180static void init_digital(struct hda_codec *codec)
1190{ 1181{
@@ -1209,6 +1200,8 @@ static int cs_init(struct hda_codec *codec)
1209 1200
1210 snd_hda_sequence_write(codec, cs_coef_init_verbs); 1201 snd_hda_sequence_write(codec, cs_coef_init_verbs);
1211 1202
1203 snd_hda_gen_apply_verbs(codec);
1204
1212 if (spec->gpio_mask) { 1205 if (spec->gpio_mask) {
1213 snd_hda_codec_write(codec, 0x01, 0, AC_VERB_SET_GPIO_MASK, 1206 snd_hda_codec_write(codec, 0x01, 0, AC_VERB_SET_GPIO_MASK,
1214 spec->gpio_mask); 1207 spec->gpio_mask);
@@ -1423,12 +1416,6 @@ static const struct hda_fixup cs420x_fixups[] = {
1423 .type = HDA_FIXUP_PINS, 1416 .type = HDA_FIXUP_PINS,
1424 .v.pins = mbp101_pincfgs, 1417 .v.pins = mbp101_pincfgs,
1425 .chained = true, 1418 .chained = true,
1426 .chain_id = CS420X_MBP101_COEF,
1427 },
1428 [CS420X_MBP101_COEF] = {
1429 .type = HDA_FIXUP_VERBS,
1430 .v.verbs = mbp101_init_verbs,
1431 .chained = true,
1432 .chain_id = CS420X_GPIO_13, 1419 .chain_id = CS420X_GPIO_13,
1433 }, 1420 },
1434}; 1421};