Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 316132
b: refs/heads/master
c: ccfcf7d
h: refs/heads/master
v: v3
  • Loading branch information
Takashi Iwai committed Jun 20, 2012
1 parent 2dc59af commit e1de4c1
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 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: 21cd683d318041c63876b4acbebb3f6d9d80597b
refs/heads/master: ccfcf7d151c01969133b5555eed635537c41c944
8 changes: 5 additions & 3 deletions trunk/sound/pci/hda/patch_hdmi.c
Original file line number Diff line number Diff line change
Expand Up @@ -1415,13 +1415,15 @@ static int simple_playback_init(struct hda_codec *codec)
int i;

for (i = 0; i < spec->num_pins; i++) {
snd_hda_codec_write(codec, spec->pins[i].pin_nid, 0,
hda_nid_t pin = spec->pins[i].pin_nid;
snd_hda_codec_write(codec, pin, 0,
AC_VERB_SET_PIN_WIDGET_CONTROL, PIN_OUT);
/* some codecs require to unmute the pin */
if (get_wcaps(codec, spec->pins[i].pin_nid) & AC_WCAP_OUT_AMP)
snd_hda_codec_write(codec, spec->pins[i].pin_nid, 0,
if (get_wcaps(codec, pin) & AC_WCAP_OUT_AMP)
snd_hda_codec_write(codec, pin, 0,
AC_VERB_SET_AMP_GAIN_MUTE,
AMP_OUT_UNMUTE);
snd_hda_jack_detect_enable(codec, pin, pin);
}
snd_hda_jack_report_sync(codec);
return 0;
Expand Down

0 comments on commit e1de4c1

Please sign in to comment.