Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 157832
b: refs/heads/master
c: 3a38516
h: refs/heads/master
v: v3
  • Loading branch information
Stelian Pop authored and Takashi Iwai committed Jul 30, 2009
1 parent 823386d commit c577ef8
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 5 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 63b2413b2ff446e30286c2bd775fd10b12d188c6
refs/heads/master: 3a38516750e176a18f76d605b401fbab2c72d648
13 changes: 9 additions & 4 deletions trunk/sound/pci/hda/patch_cirrus.c
Original file line number Diff line number Diff line change
Expand Up @@ -832,6 +832,11 @@ static void cs_automute(struct hda_codec *codec)
AC_VERB_SET_PIN_WIDGET_CONTROL,
hp_present ? 0 : PIN_OUT);
}
if (spec->board_config == CS420X_MBP55) {
unsigned int gpio = hp_present ? 0x02 : 0x08;
snd_hda_codec_write(codec, 0x01, 0,
AC_VERB_SET_GPIO_DATA, gpio);
}
}

static void cs_automic(struct hda_codec *codec)
Expand Down Expand Up @@ -1133,10 +1138,10 @@ static int patch_cs420x(struct hda_codec *codec)

switch (spec->board_config) {
case CS420X_MBP55:
/* GPIO3 = EAPD? */
spec->gpio_mask = 0x08;
spec->gpio_dir = 0x08;
spec->gpio_data = 0x08;
/* GPIO1 = headphones */
/* GPIO3 = speakers */
spec->gpio_mask = 0x0a;
spec->gpio_dir = 0x0a;
break;
}

Expand Down

0 comments on commit c577ef8

Please sign in to comment.